// +---------------------------------------------------------------------- namespace app\controller\api\user; use think\App; use crmeb\basic\BaseController; use app\common\repositories\user\FeedBackCategoryRepository as repository; class FeedBackCategory extends BaseController { protected $repository; public function __construct(App $app, repository $repository) { parent::__construct($app); $this->repository = $repository; } /** * 用户反馈列表 * @return \think\response\Json * @author wuhaotian * @email 442384644@qq.com * @date 2024/7/10 */ public function lst() { return app('json')->success($this->repository->getFormatList(0,1)); } }