Initial commit
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
package proto
|
||||
|
||||
import (
|
||||
"stat/common"
|
||||
"time"
|
||||
)
|
||||
|
||||
type RoleListReq struct {
|
||||
common.Page
|
||||
}
|
||||
|
||||
type RoleInfo struct {
|
||||
RoleId int64 `json:"roleId"` // id
|
||||
Role string `json:"role"` // 角色
|
||||
AuthJson string `json:"authJson"` // 权限json数据
|
||||
CreatedAt time.Time `json:"createdAt"` // 创建时间
|
||||
UpdatedAt time.Time `json:"updatedAt"` // 修改时间
|
||||
}
|
||||
|
||||
type RoleListRes struct {
|
||||
Total int64 `json:"total"`
|
||||
List []RoleInfo `json:"list"`
|
||||
}
|
||||
|
||||
type AddRoleReq struct {
|
||||
Role *string `form:"role" json:"role" binding:"required"` // 角色
|
||||
AuthJson *string `form:"authJson" json:"authJson" binding:"required"` // 权限json数据
|
||||
}
|
||||
|
||||
type UpdateRoleReq struct {
|
||||
RoleId *int64 `form:"roleId" json:"roleId" binding:"required"` // id
|
||||
Role *string `form:"role" json:"role" binding:"omitempty"` // 角色
|
||||
AuthJson *string `form:"authJson" json:"authJson" binding:"omitempty"` // 权限json数据
|
||||
}
|
||||
|
||||
type DelRoleReq struct {
|
||||
RoleId *int64 `form:"roleId" json:"roleId" binding:"required"` // id
|
||||
}
|
||||
Reference in New Issue
Block a user