busniess-user-center/internal/models/role/role.go

31 lines
761 B
Go

package role
import (
appModel "busniess-user-center/internal/models/application"
"time"
)
type Role struct {
ID uint `json:"id"` // id
Code string `json:"code"`
Name string `json:"name"` // 名称
CreatedOn time.Time `json:"created_on"` // 记录创建时间
}
type OrgRoleAuthor struct {
ID uint `json:"id"` // id
OrgId uint `json:"org_id"`
OrgName string `json:"org_name"`
RoleId uint `json:"role_id"`
RoleName string `json:"role_name"`
Option int `json:"option"` //选择:0-选择组织,1-选择组织含下级
}
type RoleMenu struct {
appModel.Menu
RoleId uint `json:"role_id"`
RoleName uint `json:"role_name"`
RoleCode uint `json:"role_code"`
Author bool `json:"author"`
}