test_lgq/niucloud/app/adminapi/route/site.php
2024-01-24 17:36:08 +08:00

91 lines
3.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
use app\adminapi\middleware\AdminCheckRole;
use app\adminapi\middleware\AdminCheckToken;
use app\adminapi\middleware\AdminLog;
use think\facade\Route;
/**
* 站点相关平台0
*/
Route::group('site', function () {
/***************************************************** 站点管理 ****************************************************/
//站点列表
Route::get('site', 'site.Site/lists');
//站点信息
Route::get('site/:id', 'site.Site/info');
//添加站点
Route::post('site', 'site.Site/add');
//更新站点
Route::put('site/:id', 'site.Site/edit');
//删除站点
Route::delete('site/:id', 'site.Site/del');
//关闭站点
Route::put('closesite/:id', 'site.Site/closeSite');
//开启站点
Route::put('opensite/:id', 'site.Site/openSite');
//站点状态
Route::get('statuslist', 'site.Site/getStatuList');
/***************************************************** 站点分组 *************************************************/
//站点分组
Route::get('group', 'site.SiteGroup/lists');
//站点分组详情
Route::get('group/:group_id', 'site.SiteGroup/info');
//站点分组新增
Route::post('group', 'site.SiteGroup/add');
//站点分组编辑
Route::put('group/:group_id', 'site.SiteGroup/edit');
//站点分组删除
Route::delete('group/:group_id', 'site.SiteGroup/del');
//获取所有分组
Route::get('group/all', 'site.SiteGroup/all');
/***************************************************** 当前站点用户 *************************************************/
//站点用户列表
Route::get('user', 'site.User/lists');
//站点用户详情
Route::get('user/:uid', 'site.User/info');
//站点用户新增
Route::post('user', 'site.User/add');
//站点用户锁定
Route::put('user/lock/:uid', 'site.User/lock');
//站点用户解锁
Route::put('user/unlock/:uid', 'site.User/unlock');
//站点编辑用户
Route::put('user/:uid', 'site.User/edit');
//站点修改用户属性
Route::put('user/:uid/:field', 'site.User/modify');
/***************************************************** 操作日志 **************************************************/
//操作日志列表
Route::get('log', 'site.UserLog/lists');
//操作日志详情
Route::get('log/:id', 'site.UserLog/info');
/***************************************************** 站点菜单 **************************************************/
Route::get('site/menu', 'site.Site/menu');
/***************************************************** 站点账单 *************************************************/
//站点账单列表
Route::get('account', 'site.SiteAccount/lists');
//站点账单详情
Route::get('account/:id', 'site.SiteAccount/info');
//账单统计
Route::get('account/stat', 'site.SiteAccount/stat');
//账单类型
Route::get('account/type', 'site.SiteAccount/accountType');
// 获取店铺包含的插件
Route::get('addons', 'site.Site/addons');
})->middleware([
AdminCheckToken::class,
AdminCheckRole::class,
AdminLog::class
]);