format🥚 :调整主键key和自增长tag

This commit is contained in:
zhangwenjian committed 2021-02-24 14:22:33 +08:00
1 parent 561566f172
commit f22f654c91
17 files changed
+21 -21

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ package system
import "go-admin/common/models"
type SysRole struct {
RoleId int `json:"roleId" gorm:"primary_key;AUTO_INCREMENT"` // 角色编码
RoleId int `json:"roleId" gorm:"primaryKey;autoIncrement"` // 角色编码
RoleName string `json:"roleName" gorm:"size:128;"` // 角色名称
Status string `json:"status" gorm:"size:4;"` //
RoleKey string `json:"roleKey" gorm:"size:128;"` //角色代码