提交服务端基础框架

This commit is contained in:
wanghao
2025-03-12 12:58:14 +08:00
parent 8e19156555
commit f4e36f1921
7 changed files with 78 additions and 11 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace app\common\model;
use think\Model;
class ProductModel extends Model {
const IS_USED_NO = 0;
const IS_USED_YES = 10;
protected $json = ['cb', 'images', 'labels', 'themes', 'opts'];
protected $jsonAssoc = TRUE;
/**
* 获取是否使用
*
* @return string[]
*/
static public function isUsedAssoc() {
return [
static::IS_USED_NO => '未使用',
static::IS_USED_YES => '已使用',
];
}
}