初始化项目:添加后端代码、ThinkPHP框架、前端资源
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\goods;
|
||||
|
||||
use think\Model;
|
||||
|
||||
use think\Db;
|
||||
/**
|
||||
* 商品信息调度器
|
||||
*/
|
||||
class Goods extends Model
|
||||
{
|
||||
|
||||
public function getTypeList(){
|
||||
return [
|
||||
'article' => __('Article'),
|
||||
'goods' => __('Goods'),
|
||||
'physical' => __('Physical'),
|
||||
'video' => __('Video'),
|
||||
'audio' => __('Audio'),
|
||||
'live' => __('Live'),
|
||||
'column' => __('Column'),
|
||||
'vipcard' => __('Vipcard'),
|
||||
'activity' => __('Activity'),
|
||||
'exercises' => __('Exercises')
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user