init commit

This commit is contained in:
2026-03-17 09:56:00 +08:00
commit e2c8ae752d
6827 changed files with 1211784 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
<?php
// +----------------------------------------------------------------------
// | 麦沃德科技赋能开发者,助力中小企业发展
// +----------------------------------------------------------------------
// | Copyright (c) 20172024 www.wdadmin.cn All rights reserved.
// +----------------------------------------------------------------------
// | Wdadmin系统产品软件并不是自由软件不加密并不代表开源未经许可不可自由转售和商用
// +----------------------------------------------------------------------
// | Author: MY WORLD Team <bd@maiwd.cn> www.wdadmin.cn
// +----------------------------------------------------------------------
namespace app\api\controller\wdsxh\questionnaire;
use app\common\controller\Api;
class Category extends Api
{
protected $noNeedLogin = ['index'];
protected $noNeedRight = ['*'];
protected $model = null;
protected $topicModel = null;
protected $renderModel = null;
public function _initialize()
{
parent::_initialize();
$this->model = new \app\api\model\wdsxh\questionnaire\Category();
}
/**
* 查看分类列表
*/
public function index()
{
$list = $this->model
->where('status', '1')
->order('weigh', 'asc')
->order('id', 'asc')
->field('id,name')
->select();
$this->success('', $list);
}
}