fix(删除写死的权限枚举类):
This commit is contained in:
parent
194a62d09e
commit
85e717da17
@ -1,30 +0,0 @@
|
||||
package com.zsc.edu.bill.common.enums;
|
||||
|
||||
import org.springframework.security.core.GrantedAuthority;
|
||||
|
||||
/**
|
||||
* @author ftz
|
||||
* 创建时间:11/1/2024 下午1:54
|
||||
* 描述: 审核员权限
|
||||
*/
|
||||
public enum Auditor implements GrantedAuthority {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 用户管理
|
||||
*/
|
||||
USER_QUERY,
|
||||
USER_CREATE,
|
||||
/**
|
||||
* 审核票据
|
||||
|
||||
*/
|
||||
AUDIT_TICKET_QUERY,
|
||||
AUDIT_TICKET_UPDATE;
|
||||
|
||||
@Override
|
||||
public String getAuthority() {
|
||||
return name();
|
||||
}
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
package com.zsc.edu.bill.common.enums;
|
||||
|
||||
import org.springframework.security.core.GrantedAuthority;
|
||||
|
||||
/**
|
||||
* @author ftz
|
||||
* 创建时间:11/1/2024 下午2:04
|
||||
* 描述: TODO
|
||||
*/
|
||||
public enum RegularUsers implements GrantedAuthority {
|
||||
/**
|
||||
* 用户管理
|
||||
*/
|
||||
USER_QUERY,
|
||||
USER_CREATE,
|
||||
USER_UPDATE,
|
||||
/**
|
||||
* 票据管理
|
||||
*/
|
||||
TICKET_QUERY,
|
||||
TICKET_CREATE,
|
||||
TICKET_UPDATE,
|
||||
TICKET_DELETE;
|
||||
|
||||
@Override
|
||||
public String getAuthority() {
|
||||
return name();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user