123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- <?php
- /*
- * This file is part of the Jiannei/lumen-api-starter.
- *
- * (c) Jiannei <longjian.huang@foxmail.com>
- *
- * This source file is subject to the MIT license that is bundled
- * with this source code in the file LICENSE.
- */
- use App\Repositories\Enums\ResponseCodeEnum;
- use App\Repositories\Enums\ModelStatusEnum;
- use App\Repositories\Enums\CourseCommentStatusEnum;
- use App\Repositories\Enums\CourseRecEnum;
- use App\Repositories\Enums\CourseTypeEnum;
- use App\Repositories\Enums\VideoWatchEnum;
- use App\Repositories\Enums\SexEnum;
- use App\Repositories\Enums\Course\StudentTypeEnum;
- use App\Repositories\Enums\Base\BannerPositionEnum;
- use App\Repositories\Enums\Base\BannerClickTypeEnum;
- use App\Repositories\Enums\CMS\SettingTypeEnum;
- use App\Repositories\Enums\CMS\CategorySingleEnum;
- use App\Repositories\Enums\Base\RoleEnum;
- use App\Repositories\Enums\Exam\IsOpenEnum;
- use App\Repositories\Enums\Exam\TypeEnum;
- use App\Repositories\Enums\Exam\LevelEnum;
- use App\Repositories\Enums\Area\AreaTypeEnum;
- return [
- //区域
- AreaTypeEnum::class => [
- AreaTypeEnum::AREA => '区',
- AreaTypeEnum::VILLAGE => '村'
- ],
- // //课程
- // StudentTypeEnum::class => [
- // StudentTypeEnum::XY => '学员',
- // StudentTypeEnum::ZJ => '助教',
- // ],
- // //试题
- // IsOpenEnum::class => [
- // IsOpenEnum::P => '私有',
- // IsOpenEnum::GG => '公共',
- // ],
- // TypeEnum::class => [
- // TypeEnum::XUANZE => '选择题',
- // TypeEnum::PANDUAN => '判断题',
- // TypeEnum::TIANKONG => '填空题',
- // TypeEnum::JIANDA => '简单题',
- // TypeEnum::DUOXUAN => '多选题',
- // ],
- // LevelEnum::class => [
- // LevelEnum::JIANDAN => '简单',
- // LevelEnum::SHIZHONG => '一般',
- // LevelEnum::KUNNAN => '困难',
- // ],
- //
- // //CMS
- // SettingTypeEnum::class => [
- // SettingTypeEnum::STARING => '字符串',
- // SettingTypeEnum::IMG => '图片',
- // SettingTypeEnum::TEXT => '文本'
- // ],
- // CategorySingleEnum::class => [
- // CategorySingleEnum::ARTICLE => '单文章',
- // CategorySingleEnum::ARTICLES => '文章列表',
- // CategorySingleEnum::OTHER => '其他'
- // ],
- // 基础
- SexEnum::class => [
- SexEnum::NO => '未知',
- SexEnum::MAN => '男',
- SexEnum::WOMAN => '女'
- ],
- ModelStatusEnum::class => [
- ModelStatusEnum::PAUSE => '隐藏',
- ModelStatusEnum::OK => '显示',
- ],
- BannerPositionEnum::class => [
- BannerPositionEnum::HOME => '首页轮播图'
- ],
- BannerClickTypeEnum::class => [
- BannerClickTypeEnum::NO => '无操作',
- BannerClickTypeEnum::LINK => '连接跳转',
- ],
- // RoleEnum::class => [
- // RoleEnum::STUDENT => '学生',
- // RoleEnum::TEACHER => '老师',
- // ],
- RoleEnum::class => [
- RoleEnum::USER => '用户',
- RoleEnum::ADMIN => '管理员',
- RoleEnum::PROJECT => '项目管理员',
- ],
- // 响应状态码
- ResponseCodeEnum::class => [
- // 成功
- ResponseCodeEnum::HTTP_OK => '操作成功', // 自定义 HTTP 状态码返回消息
- ResponseCodeEnum::HTTP_UNAUTHORIZED => '授权失败',
- // 业务操作成功
- ResponseCodeEnum::SERVICE_REGISTER_SUCCESS => '注册成功',
- ResponseCodeEnum::SERVICE_LOGIN_SUCCESS => '登录成功',
- // 客户端错误
- ResponseCodeEnum::CLIENT_PARAMETER_ERROR => '参数错误',
- ResponseCodeEnum::CLIENT_CREATED_ERROR => '数据已存在',
- ResponseCodeEnum::CLIENT_DELETED_ERROR => '数据不存在',
- ResponseCodeEnum::CLIENT_VALIDATION_ERROR => '表单验证错误',
- // 服务端错误
- ResponseCodeEnum::SYSTEM_ERROR => '服务器错误',
- ResponseCodeEnum::SYSTEM_UNAVAILABLE => '服务器正在维护,暂不可用',
- ResponseCodeEnum::SYSTEM_CACHE_CONFIG_ERROR => '缓存配置错误',
- ResponseCodeEnum::SYSTEM_CACHE_MISSED_ERROR => '缓存未命中',
- ResponseCodeEnum::SYSTEM_CONFIG_ERROR => '系统配置错误',
- // 业务操作失败:授权业务
- ResponseCodeEnum::SERVICE_REGISTER_ERROR => '注册失败',
- ResponseCodeEnum::SERVICE_LOGIN_ERROR => '登录失败',
- ],
- // 课程
- VideoWatchEnum::class => [
- VideoWatchEnum::OK => '已看完',
- VideoWatchEnum::NO => '未看完'
- ],
- CourseRecEnum::class => [
- CourseRecEnum::NO => '普通',
- CourseRecEnum::OK => '推荐'
- ],
- CourseCommentStatusEnum::class => [
- CourseCommentStatusEnum::OK => '打开评论',
- CourseCommentStatusEnum::NO => '关闭评论',
- ],
- CourseTypeEnum::class => [
- CourseTypeEnum::RECORDED => '录播课'
- ],
- // VisitEnum::class => [
- // VisitEnum::NO => '初诊',
- // VisitEnum::YES => '复诊'
- // ],
- // // 角色
- // RoleEnum::class => [
- // RoleEnum::SUPER_ADMIN => '超级管理员',
- // RoleEnum::GUEST => '游客',
- // RoleEnum::ADMIN => '管理员',
- // ],
- // // 权限
- // PermissionEnum::class => [
- // PermissionEnum::SYSTEM_ACTIVITY_LOG_CLEAN => '清理活动日志',
- // PermissionEnum::SYSTEM_CACHE_CLEAR => '清理缓存',
- //
- // PermissionEnum::ROUTE_USERS => '用户管理',
- // PermissionEnum::ROUTE_USERS_CREATE => '创建用户',
- // PermissionEnum::ROUTE_USERS_DELETE => '删除用户',
- // PermissionEnum::ROUTE_USERS_UPDATE => '更新用户资料',
- // PermissionEnum::ROUTE_USERS_VIEW => '查询用户资料',
- // PermissionEnum::ROUTE_USERS_VIEW_ANY => '查询用户列表',
- //
- // PermissionEnum::ROUTE_POSTS => ' 文章管理',
- // PermissionEnum::ROUTE_POSTS_CREATE => '发布文章',
- // PermissionEnum::ROUTE_POSTS_DELETE => '删除文章',
- // PermissionEnum::ROUTE_POSTS_UPDATE => '更新文章',
- // PermissionEnum::ROUTE_POSTS_VIEW => '查看文章',
- // PermissionEnum::ROUTE_POSTS_VIEW_ANY => '查询文章列表',
- // ],
- ];
|