refactor(model):固化用户类型为枚举。

This commit is contained in:
徐涛
2022-08-23 22:39:42 +08:00
parent 1c4132e2e7
commit 14ffd0e9fb
3 changed files with 11 additions and 5 deletions

View File

@@ -1,5 +1,11 @@
package model
const (
USER_TYPE_ENT int8 = iota
USER_TYPE_SUP
USER_TYPE_OPS
)
type User struct {
Created `xorm:"extends"`
Id string `xorm:"varchar(120) pk not null" json:"id"`