Browse Source

配置管理后台接口2

master
wanghongjun 12 months ago
parent
commit
c33086e36f
  1. 2
      app/controller/admin/Config.php
  2. 2
      app/model/AdminConfig.php
  3. 2
      app/validate/ConfigValidate.php

2
app/controller/admin/Config.php

@ -2,7 +2,7 @@
namespace app\controller\admin;
use app\model\Config as ConfigModel;
use app\model\AdminConfig as ConfigModel;
use app\util\ReturnCode;
use app\validate\ConfigValidate;
use think\Response;

2
app/model/Config.php → app/model/AdminConfig.php

@ -4,7 +4,7 @@ namespace app\model;
use think\Model;
class Config extends Model
class AdminConfig extends Model
{
}

2
app/validate/ConfigValidate.php

@ -18,7 +18,7 @@ class ConfigValidate extends Validate
protected $scene = [
'add' => ['title', 'name', 'content'],
'edit' => ['id', 'title', 'name', 'content'],
'edit' => ['id', 'content'],
];
}

Loading…
Cancel
Save