<?php
namespace app\admin\controller;
use app\admin\controller\Base;
use app\service\ApiService;
use app\service\ConfigService;
use app\service\ResourcesService;
* 协议管理
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2016-12-01T21:51:08+0800
*/
class Agreement extends Base
{
* 配置列表
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2019-05-16
* @desc description
*/
public function Index()
{
$type = empty($this->data_request['type']) ? 'register' : $this->data_request['type'];
$assign = [
'data' => ConfigService::ConfigList(),
'nav_data' => MyLang('agreement.base_nav_list'),
'editor_path_type' => ResourcesService::EditorPathTypeValue('agreement'),
'type' => $type,
];
MyViewAssign($assign);
return MyView($type);
}
* 配置数据保存
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2019-05-16
* @desc description
*/
public function Save()
{
return ApiService::ApiDataReturn(ConfigService::ConfigSave($this->data_request));
}
}
?>