package cc.mrbird.febs.common.exception.code;
/**
* @author :xzyuan
* @date :Created in 2019/5/9 14:08
* @description:状态码枚举类
* @version: 1.0
*/
public enum Code {
/*
OK[GET]:服务器成功返回用户请求的数据,该操作是幂等的(Idempotent)
*/
C200(200, "Success"),
/*
CREATED[POST/PUT/PATCH]:用户新建或修改数据成功
*/
C201(201, "CREATED"),
/*
Accepted[*]:表示一个请求已经进入后台排队(异步任务)
*/
C202(202, "Accepted"),
/*
NO CONTENT - [DELETE]:用户删除数据成功
*/
C204(204, "no content"),
/*
Not Modified:客户端使用缓存数据
*/
C301(304, "Not Modified"),
/*
INVALID REQUEST - [POST/PUT/PATCH]:用户发出的请求有错误,服务器没有进行新建或修改数据的操作,该操作是幂等的。
*/
C400(400, "INVALID REQUEST"),
/*
Unauthorized - [*]:表示用户没有权限(令牌、用户名、密码错误)
*/
C401(401, "Unauthorized"),
/*
Forbidden - [*]:表示用户得到授权(与401错误相对),但是访问是被禁止的
*/
C403(403, "Forbidden"),
/*
NOT FOUND - [*]:用户发出的请求针对的是不存在的记录,服务器没有进行操作,该操作是幂等的
*/
C404(404, "Not Found"),
/*
method not allowed:该http方法不被允许
*/
C405(405, "method not allowed"),
/*
Not Acceptable - [GET]:用户请求的格式不可得(比如用户请求JSON格式,但是只有XML格式)
*/
C406(406, "Not Acceptable"),
/*
*/
C409(409, "请求冲突"),
/*
Gone -[GET]:用户请求的资源被永久删除,且不会再得到的。例如文件下载时,文件不存在。
*/
C410(410, "Gone"),
/*
请求体过大。比如说,服务器要求上传文件不能超过 5M,但是我们 POST 了 10M,这时候就返回 413。
*/
C412(413, "Too Many"),
/*
请求的 URI 太长了。比如说,我们提供了太多的 Query 参数,以至于超过了服务器的限制,这时候可以返回 414。
*/
C414(414, "Error Format"),
/*
不支持的媒体类型。例如上传文件只允许png图片,上传gif文件时,此时返回415
*/
C415(415, "Error Type"),
/*
Unprocesable entity - [POST/PUT/PATCH]:当创建一个对象时,发生一个验证错误。请求格式正确,但语义错误。此时错误描述信息中最好有错误详情。
*/
C422(422, "Unprocesable entity "),
/*
too many request - 请求过多
*/
C429(429, "too many request"),
/*
INTERNAL SERVER ERROR - [*]:服务器发生错误,用户将无法判断发出的请求是否成功
*/
C500(500, "Internal Server Error"),
/*
Token过期
*/
C514(514, "TOKEN_EXPIRE"),
/*
错误码,根据响应信息中的msg参数展示具体错误信息。
*/
C999(999, "Error"),
/*******************************角色,登录,菜单,字典,后台参数配置:4001200*******************************/
/**
* 角色名称不能为空
*/
RoleNameIsNotEmpty(4001201, "Role Name can not Empty"),
/**
* 角色状态不能为空
*/
RoleStatusIsNotEmpty(4001202, "Role status can not Empty"),
/**
* 角色添加失败
*/
RoleAddFailed(4001204, "Role Add Failed"),
/**
* 角色更新失败
*/
RoleUpdateFailed(4001205, "Role Update Failed"),
/**
* RoleName重复
*/
RoleNameIsSame(4001206, "Role name duplication"),
/**
* 更新时RoleId不能为空
*/
UpdateRoleIdIsNotEmpty(4001207, " Update Role roleId must not Empty"),
/**
* 根据userId获取roleTree 失败
*/
GetRoleTreeByUserIDFiled(4001208, "Get Role Info By User Failed"),
/**
* 权限分配时roleId不能为空
*/
PermissionRoleIdIsNotEmpty(4001209, "Set Permission roleId must not Empty"),
/**
* 权限分配时Permissions不能为空
*/
PermissionsIsNotEmpty(4001210, "Permissions must not Empty"),
/**
* 权限分配错误
*/
PermissionsRoleIsFailed(4001211, "Allocation permission error"),
/**
* 删除角色IDS不能为空
*/
RoleDeleteIdsNotEmpty(4001212, "Delete Role roleId can not Empty"),
/**
* 不能删除超级管理员
*/
RoleCanNotDeleteAdmin(4001213, "You can't delete SuperAdmin"),
/**
* 删除角色失败
*/
RoleDeleteFailed(4001214, "Delete Role Failed"),
/**
* 查询角色失败
*/
RoleQueryFailed(4001215, "Query Role Failed"),
/**
* 设置角色
*/
UserOrRoleEmpty(4001216, "user or role is empty."),
/**
* 超级管理员不可修改
*/
NoChangeAdmin(4001217, "No change admin."),
/**
* 用户ids不能为空
*/
UserIdEmpty(4001218, "ids is empty."),
/**
* user已存在
*/
UserExist(4001219, "User is exist."),
/**
* 字典的NUM只能是数字,并且大于0
*/
DictNumberWrong(4001220, "Dict Num must be numeric and greater than 0"),
/**
* 字典的子字典不能为空,并且值和Code不能为空
*/
DictItemWrong(4001221, "Dict Child Node can not Empty and Child Node must have code and value"),
/**
* 新增字典失败
*/
DictAddFailed(4001222, "Dict Add Failed"),
/**
* 字典表名字已经被使用
*/
DictNameHasBeenUser(4001223, "The dictionary name has been used"),
/**
* Dict ID 不能为空,或超过11位
*/
DictIdWrong(4001224, "Dict Id is empty or Dict Id length over 11 "),
/**
* 更新字典失败
*/
DictUpdateFailed(4001225, "Dict Update Failed"),
/**
* 删除字典ID不能为空
*/
DictIdsIsNull(4001226, "Dict ids is Empty"),
/**
* 字典status 只能是0或1
*/
DictStatusWrong(4001227, "Dict Status must 0 or 1"),
/**
* 删除字典失败
*/
DictDeleteFailed(4001228, "Dict Delete Failed"),
/**
* 字典status 不能为空
*/
DictStatusNotEmpty(4001229, "Dict Status can not empty"),
/**
* Dict对象不存在,修改失败
*/
DictObjectIsEmpty(4001230, "Dict Object is empty ,Update Failed"),
/**
* 菜单查询失败
*/
MenuQueryWrong(4001231, "Menu get Failed"),
/**
* 菜单状态只能是0,1
*/
MenuStatusWrong(4001232, "Menu Status must 0 or 1"),
/**
* 账号密码错误
*/
UserLoginFailedUserNameOrPassword(4001240, "Incorrect account or password, please enter again"),
/**
* 登录失败
*/
UserLoginFailed(4001241, "User Login Filed"),
/**
* 当前用户没有许可
*/
UserDoNotHavePermission(4001242, " The user has not configured permissions "),
/**
* 得到用户基本信息失败
*/
UserInformationGetFailed(4001243, " Failed to get user information "),
/**
* 字典的Code 不能为空 或Code值超过了255
*/
DictCodeWrong(4001244, "Dict Code is empty or Dict Code length over 255 "),
/**
* 字典的Value不能为空 value值超过了255
*/
DictValueWrong(4001245, "Dict Value is empty or Dict Value length over 255"),
/**
* 字典的tips不能为空
*/
DictTipsWrong(4001246, "Dict Tips is empty or Dict Tips length over 255"),
/**
* 查询字典失败
*/
DictQueryFailed(4001247, "Query Dict Failed"),
/**
* 当前菜单Code值已经存在
*/
MenuCodeIsExists(4001248, "This Menu Code is Already Exists "),
/**
* 添加新菜单失败
*/
MenuAddFailed(4001249, "Add Menu Failed"),
/**
* 菜单名称不能为空并且不能超过255个字符
*/
MenuNameIsWrong(4001250, "Menu name can not empty and
没有合适的资源?快使用搜索试试~ 我知道了~
java毕业设计 基于SpringBoot+Mybatis的酒店预订系统的设计与实现+详细文档+全部资料(优秀项目).zip
共1091个文件
java:174个
xml:169个
js:142个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 167 浏览量
2024-04-17
10:46:44
上传
评论
收藏 13.57MB ZIP 举报
温馨提示
【资源说明】 java毕业设计 基于SpringBoot+Mybatis的酒店预订系统的设计与实现+详细文档+全部资料(优秀项目).zipjava毕业设计 基于SpringBoot+Mybatis的酒店预订系统的设计与实现+详细文档+全部资料(优秀项目).zip 【备注】 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用! 2、本项目适合计算机相关专业(如软件工程、计科、人工智能、通信工程、自动化、电子信息等)的在校学生、老师或者企业员工下载使用,也可作为毕设项目、课程设计、作业、项目初期立项演示等,当然也适合小白学习进阶。 3、如果基础还行,可以在此代码基础上进行修改,以实现其他功能,也可直接用于毕设、课设、作业等。 欢迎下载,沟通交流,互相学习,共同进步!
资源推荐
资源详情
资源评论
收起资源包目录
java毕业设计 基于SpringBoot+Mybatis的酒店预订系统的设计与实现+详细文档+全部资料(优秀项目).zip (1091个子文件)
.babelrc 402B
ip2region.db 2.6MB
.editorconfig 147B
.eslintignore 51B
entity.java.ftl 4KB
mapper.xml.ftl 1KB
controller.java.ftl 890B
serviceImpl.java.ftl 581B
service.java.ftl 307B
mapper.java.ftl 301B
loading.gif 46KB
.gitattributes 86B
.gitignore 228B
.gitkeep 0B
index.html 3KB
favicon.ico 4KB
febs_shiro_jwt.iml 16KB
frontend.iml 458B
Code.java 26KB
PaginationInterceptorImpl.java 16KB
LoginController.java 10KB
RedisInfo.java 9KB
UserServiceImpl.java 8KB
UserController.java 8KB
CityController.java 7KB
RedisConfig.java 7KB
GlobalExceptionHandler.java 6KB
LogServiceImpl.java 6KB
MenuServiceImpl.java 6KB
CacheServiceImpl.java 6KB
HttpUtil.java 6KB
UserManager.java 6KB
RedisServiceImpl.java 6KB
JobServiceImpl.java 5KB
FebsUtil.java 5KB
SortUtil.java 5KB
CodeGenerator.java 5KB
JWTFilter.java 5KB
ScheduleUtils.java 5KB
RoleServiceImpl.java 5KB
JobController.java 5KB
TestController.java 4KB
DictController.java 4KB
DeptServiceImpl.java 4KB
RoleController.java 4KB
FileUtils.java 4KB
CityServiceImpl.java 4KB
LimitAspect.java 4KB
TreeUtil.java 4KB
ShiroRealm.java 4KB
User.java 4KB
MenuController.java 4KB
FebsConfig.java 4KB
DeptController.java 3KB
CacheService.java 3KB
RedisService.java 3KB
AesEncryptUtil.java 3KB
JobLogServiceImpl.java 3KB
MovieController.java 3KB
DictServiceImpl.java 2KB
ScheduleJob.java 2KB
EncryptUtil.java 2KB
LogController.java 2KB
CacheInitRunner.java 2KB
JWTUtil.java 2KB
WebController.java 2KB
Job.java 2KB
UserService.java 2KB
JobLogController.java 2KB
LogAspect.java 2KB
ShiroConfig.java 2KB
FebsConstant.java 2KB
TestServiceImpl.java 2KB
UserConfigServiceImpl.java 2KB
RoomTypeController.java 2KB
AddressUtil.java 2KB
Menu.java 2KB
Role.java 2KB
ScheduleConfig.java 2KB
City.java 2KB
NotBlank.java 2KB
RoomController.java 2KB
JobLog.java 1KB
UserRoleServiceImpl.java 1KB
ArticleController.java 1KB
FileController.java 1KB
RoleMenuServiceImpl.java 1KB
Dict.java 1KB
R.java 1KB
SysLog.java 1KB
WeatherController.java 1KB
DateUtil.java 1KB
Dept.java 1KB
LoginLogServiceImpl.java 1KB
ScheduleRunnable.java 1KB
FebsResponse.java 1KB
UserConfig.java 1KB
SpringContextUtil.java 1KB
OrderController.java 1KB
RedisController.java 1KB
共 1091 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
资源评论
不走小道
- 粉丝: 3228
- 资源: 5113
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功