mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 22:10:49 +00:00
更新路由
This commit is contained in:
parent
9198850c70
commit
6fe81abf3d
@ -51,7 +51,7 @@ Route::group('cms', function () {
|
||||
//修改状态
|
||||
Route::put('category/set_status/:id/:status', 'v1.cms.ArticleCategory/set_status')->name('CategoryStatus')->option(['real_name' => '修改文章分类状态']);
|
||||
//分类列表
|
||||
Route::get('category_list', 'v1.cms.ArticleCategory/categoryList')->name('categoryList')->option(['real_name' => '分类列表', 'is_common' => true]);
|
||||
Route::get('category_list', 'v1.cms.ArticleCategory/categoryList')->name('categoryList')->option(['real_name' => '分类列表']);
|
||||
//分类树形列表
|
||||
Route::get('category_tree_list', 'v1.cms.ArticleCategory/getTreeList')->name('getTreeList')->option(['real_name' => '分类树形列表']);
|
||||
})->option(['parent' => 'cms', 'cate_name' => '文章分类']);
|
||||
|
||||
@ -25,19 +25,19 @@ Route::group(function () {
|
||||
//首页交易额排行
|
||||
Route::get('home/rank', 'Common/purchaseRanking')->option(['real_name' => '首页交易额排行']);
|
||||
//消息提醒
|
||||
Route::get('jnotice', 'Common/jnotice')->option(['real_name' => '消息提醒', 'is_common' => true]);
|
||||
Route::get('jnotice', 'Common/jnotice')->option(['real_name' => '消息提醒']);
|
||||
//验证授权
|
||||
Route::get('check_auth', 'Common/auth')->option(['real_name' => '验证授权']);
|
||||
//申请授权
|
||||
Route::post('auth_apply', 'Common/auth_apply')->option(['real_name' => '申请授权']);
|
||||
//授权
|
||||
Route::get('auth', 'Common/auth')->option(['real_name' => '授权信息', 'is_common' => true]);
|
||||
Route::get('auth', 'Common/auth')->option(['real_name' => '授权信息']);
|
||||
//获取左侧菜单
|
||||
Route::get('menus', 'v1.setting.SystemMenus/menus')->option(['real_name' => '左侧菜单', 'is_common' => true]);
|
||||
Route::get('menus', 'v1.setting.SystemMenus/menus')->option(['real_name' => '左侧菜单']);
|
||||
//获取搜索菜单列表
|
||||
Route::get('menusList', 'Common/menusList')->option(['real_name' => '搜索菜单列表', 'is_common' => true]);
|
||||
Route::get('menusList', 'Common/menusList')->option(['real_name' => '搜索菜单列表']);
|
||||
//获取logo
|
||||
Route::get('logo', 'Common/getLogo')->option(['real_name' => '获取logo', 'is_common' => true]);
|
||||
Route::get('logo', 'Common/getLogo')->option(['real_name' => '获取logo']);
|
||||
//查询版权
|
||||
Route::get('copyright', 'Common/copyright')->option(['real_name' => '申请版权']);
|
||||
//保存版权
|
||||
|
||||
@ -15,17 +15,17 @@ use think\facade\Route;
|
||||
*/
|
||||
Route::group('file', function () {
|
||||
//附件列表
|
||||
Route::get('file', 'v1.file.SystemAttachment/index')->option(['real_name' => '图片附件列表', 'is_common' => true]);
|
||||
Route::get('file', 'v1.file.SystemAttachment/index')->option(['real_name' => '图片附件列表']);
|
||||
//删除图片和数据记录
|
||||
Route::post('file/delete', 'v1.file.SystemAttachment/delete')->option(['real_name' => '删除图片', 'is_common' => true]);
|
||||
Route::post('file/delete', 'v1.file.SystemAttachment/delete')->option(['real_name' => '删除图片']);
|
||||
//移动图片分来表单
|
||||
Route::get('file/move', 'v1.file.SystemAttachment/move')->option(['real_name' => '移动图片分类表单', 'is_common' => true]);
|
||||
Route::get('file/move', 'v1.file.SystemAttachment/move')->option(['real_name' => '移动图片分类表单']);
|
||||
//移动图片分类
|
||||
Route::put('file/do_move', 'v1.file.SystemAttachment/moveImageCate')->option(['real_name' => '移动图片分类', 'is_common' => true]);
|
||||
Route::put('file/do_move', 'v1.file.SystemAttachment/moveImageCate')->option(['real_name' => '移动图片分类']);
|
||||
//修改图片名称
|
||||
Route::put('file/update/:id', 'v1.file.SystemAttachment/update')->option(['real_name' => '修改图片名称', 'is_common' => true]);
|
||||
Route::put('file/update/:id', 'v1.file.SystemAttachment/update')->option(['real_name' => '修改图片名称']);
|
||||
//上传图片
|
||||
Route::post('upload/[:upload_type]', 'v1.file.SystemAttachment/upload')->option(['real_name' => '上传图片', 'is_common' => true]);
|
||||
Route::post('upload/[:upload_type]', 'v1.file.SystemAttachment/upload')->option(['real_name' => '上传图片']);
|
||||
//附件分类管理资源路由
|
||||
Route::resource('category', 'v1.file.SystemAttachmentCategory')->except(['read'])->option([
|
||||
'real_name' => [
|
||||
@ -36,12 +36,12 @@ Route::group('file', function () {
|
||||
'update' => '修改附件分类管理',
|
||||
'delete' => '删除附件分类管理'
|
||||
],
|
||||
'is_common' => true
|
||||
|
||||
]);
|
||||
//获取上传类型
|
||||
Route::get('upload_type', 'v1.file.SystemAttachment/uploadType')->option(['real_name' => '上传类型', 'is_common' => true]);
|
||||
Route::get('upload_type', 'v1.file.SystemAttachment/uploadType')->option(['real_name' => '上传类型']);
|
||||
//分片上传本地视频
|
||||
Route::post('video_upload', 'v1.file.SystemAttachment/videoUpload')->option(['real_name' => '分片上传本地视频', 'is_common' => true]);
|
||||
Route::post('video_upload', 'v1.file.SystemAttachment/videoUpload')->option(['real_name' => '分片上传本地视频']);
|
||||
})->middleware([
|
||||
\app\http\middleware\AllowOriginMiddleware::class,
|
||||
\app\adminapi\middleware\AdminAuthTokenMiddleware::class,
|
||||
|
||||
@ -16,9 +16,9 @@ Route::group('product', function () {
|
||||
Route::group(function () {
|
||||
Route::get('category', 'v1.product.StoreCategory/index')->option(['real_name' => '商品分类列表']);
|
||||
//商品树形列表
|
||||
Route::get('category/tree/:type', 'v1.product.StoreCategory/tree_list')->option(['real_name' => '商品分类树形列表', 'is_common' => true]);
|
||||
Route::get('category/tree/:type', 'v1.product.StoreCategory/tree_list')->option(['real_name' => '商品分类树形列表']);
|
||||
//商品分类树形列表
|
||||
Route::get('category/cascader/:type', 'v1.product.StoreCategory/cascader_list')->option(['real_name' => '商品分类树形列表', 'is_common' => true]);
|
||||
Route::get('category/cascader/:type', 'v1.product.StoreCategory/cascader_list')->option(['real_name' => '商品分类树形列表']);
|
||||
//商品分类新增表单
|
||||
Route::get('category/create', 'v1.product.StoreCategory/create')->option(['real_name' => '商品分类新增表单']);
|
||||
//商品分类新增
|
||||
@ -44,7 +44,7 @@ Route::group('product', function () {
|
||||
//1分钟保存一次数据
|
||||
Route::post('cache', 'v1.product.StoreProduct/saveCacheData')->option(['real_name' => '保存还未提交数据']);
|
||||
//获取所有商品列表
|
||||
Route::get('product/list', 'v1.product.StoreProduct/search_list')->option(['real_name' => '获取所有商品列表', 'is_common' => true]);
|
||||
Route::get('product/list', 'v1.product.StoreProduct/search_list')->option(['real_name' => '获取所有商品列表']);
|
||||
//获取商品规格
|
||||
Route::get('product/attrs/:id/:type', 'v1.product.StoreProduct/get_attrs')->option(['real_name' => '获取商品规格']);
|
||||
//商品列表头
|
||||
|
||||
@ -33,13 +33,10 @@ Route::group(function () {
|
||||
//一次验证
|
||||
Route::post('ajcheck', 'Login/ajcheck')->name('ajcheck')->option(['real_name' => '一次验证']);
|
||||
//获取客服数据
|
||||
Route::get('get_workerman_url', 'PublicController/getWorkerManUrl')->option([
|
||||
'real_name' => '获取客服数据',
|
||||
'is_common' => true,
|
||||
]);
|
||||
Route::get('get_workerman_url', 'PublicController/getWorkerManUrl')->option(['real_name' => '获取客服数据']);
|
||||
//测试
|
||||
Route::get('index', 'Test/index')->option(['real_name' => '测试地址']);
|
||||
})->middleware(AllowOriginMiddleware::class)->option(['is_common' => true]);
|
||||
})->middleware(AllowOriginMiddleware::class)->option(['name' => 'login', 'cate_name' => '登录']);
|
||||
|
||||
/**
|
||||
* miss 路由
|
||||
|
||||
@ -165,7 +165,7 @@ Route::group('system', function () {
|
||||
//保存CRUD修改的文件
|
||||
Route::post('crud/save_file/:id', 'v1.setting.SystemCrud/savefile')->option(['real_name' => '保存CRUD修改的文件']);
|
||||
//获取CRUD配置
|
||||
Route::get('crud/config/:tableName', 'v1.setting.SystemCrud/getRouteList')->option(['real_name' => '获取CRUD配置', 'is_common' => true]);
|
||||
Route::get('crud/config/:tableName', 'v1.setting.SystemCrud/getRouteList')->option(['real_name' => '获取CRUD配置']);
|
||||
//下载生成的文件
|
||||
Route::get('crud/download/:id', 'v1.setting.SystemCrud/download')->option(['real_name' => '下载生成的文件']);
|
||||
//获取CRUD列表
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user