完善资源隔离和授权管理

This commit is contained in:
dushixiang
2021-01-16 17:29:20 +08:00
parent 44110722b2
commit 11c1ac23e4
16 changed files with 120 additions and 50 deletions

View File

@ -7,8 +7,8 @@ import (
)
const (
RoleUser = "user"
RoleAdmin = "admin"
TypeUser = "user"
TypeAdmin = "admin"
)
type User struct {
@ -20,7 +20,7 @@ type User struct {
Online bool `json:"online"`
Enabled bool `json:"enabled"`
Created utils.JsonTime `json:"created"`
Role string `json:"role"`
Type string `json:"type"`
}
func (r *User) TableName() string {