feat: 新增文章分类增/删/改/查接口

This commit is contained in:
2025-01-04 18:09:26 +08:00
parent 621706f79f
commit 5197bfd841
15 changed files with 473 additions and 5 deletions

View File

@@ -0,0 +1,22 @@
<?php
// +----------------------------------------------------------------------
// | api 返回状态配置
// +----------------------------------------------------------------------
return [
'status_var' => 'code',
'message_var' => 'msg',
'data_var' => 'data',
'states' => [
'success' => [
'code' => 0,
'msg' => '操作成功!',
'data' => []
],
'error' => [
'code' => 1,
'msg' => '操作错误!',
'data' => []
],
]
];

View File

@@ -0,0 +1,9 @@
<?php
// +----------------------------------------------------------------------
// | 登录验证设置
// +----------------------------------------------------------------------
return [
// 不需要登录验证的接口
'white_list' => env('ADMIN_AUTH.WHITE_LIST', ['v1/user/login','1/user/captcha']),
];