Skip to content
Snippets Groups Projects
Commit 073de896 authored by wyl's avatar wyl
Browse files

update system struction

parent 3238914f
No related branches found
No related tags found
Loading
package com.cardiff.client_project.constant; package com.cardiff.client_project.constant;
public enum ResponseCode { public enum ResponseCode {
PASSWORD_ERROR(0,"密码错误"), PASSWORD_ERROR(0,"password error"),
USERNAME_ERROR(0,"用户名错误"), USERNAME_ERROR(0,"username error"),
ERROR(0,"操作失败"), ERROR(0,"fail"),
SUCCESS(1,"操作成功"), SUCCESS(1,"success"),
DATA_ERROR(0,"参数异常"), DATA_ERROR(0,"Parameter exception"),
NO_RESPONSE_DATA(0,"无响应数据"), NO_RESPONSE_DATA(0,"Nonresponse data"),
CHECK_CODE_NOT_EMPTY(0,"验证码不能为空"), CHECK_CODE_NOT_EMPTY(0,"The verification code cannot be empty"),
CHECK_CODE_ERROR(0,"验证码错误"), CHECK_CODE_ERROR(0,"Verification code error"),
USERNAME_OR_PASSWORD_ERROR(0,"用户名或密码错误"), USERNAME_OR_PASSWORD_ERROR(0,"The user name or password is incorrect"),
ACCOUNT_EXISTS_ERROR(0,"该账号已存在"), ACCOUNT_EXISTS_ERROR(0,"The account already exists"),
ACCOUNT_NOT_EXISTS(0,"该账号不存在"), ACCOUNT_NOT_EXISTS(0,"The account does not exist"),
TOKEN_ERROR(2,"用户未登录,请先登录"), TOKEN_ERROR(2,"User is not logged in, please log in first"),
NOT_PERMISSION(3,"没有权限访问该资源"), NOT_PERMISSION(3,"No permission to access the resource"),
ANONMOUSE_NOT_PERMISSION(0,"匿名用户没有权限访问"), ANONMOUSE_NOT_PERMISSION(0,"Anonymous users do not have access");
INVALID_TOKEN(0,"无效的票据"),
OPERATION_MENU_PERMISSION_CATALOG_ERROR(0,"操作后的菜单类型是目录,所属菜单必须为默认顶级菜单或者目录"),
OPERATION_MENU_PERMISSION_MENU_ERROR(0,"操作后的菜单类型是菜单,所属菜单必须为目录类型"),
OPERATION_MENU_PERMISSION_BTN_ERROR(0,"操作后的菜单类型是按钮,所属菜单必须为菜单类型"),
OPERATION_MENU_PERMISSION_URL_CODE_NULL(0,"菜单权限的按钮标识不能为空"),
ROLE_PERMISSION_RELATION(0, "该菜单权限存在子集关联,不允许删除");
private int code; private int code;
private String message; private String message;
......
...@@ -29,8 +29,6 @@ public class SuperAdminServiceImp implements SuperAdminService { ...@@ -29,8 +29,6 @@ public class SuperAdminServiceImp implements SuperAdminService {
@Autowired @Autowired
private SuperAdminMapper superAdminMapper; private SuperAdminMapper superAdminMapper;
@Autowired @Autowired
private PatientMapper patientMapper;
@Autowired
PasswordEncoder passwordEncoder; PasswordEncoder passwordEncoder;
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment