瀏覽代碼

修改bug

yjp 1 年之前
父節點
當前提交
b2a908ca9e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      convenient/domain/auth/user/entity.go

+ 1 - 1
convenient/domain/auth/user/entity.go

@@ -49,7 +49,7 @@ type Entity struct {
 	Token         string    `sqlmapping:"column:token;notUpdate" sqlresult:"column:token"`
 	LastLoginTime time.Time `sqlmapping:"column:last_login_time;notUpdate" sqlresult:"column:last_login_time" check:"required,timezero"`
 
-	RoleIDs []string
+	RoleIDs []string `sqlmapping:"-" sqlresult:"-"`
 
 	entity.TimeFields
 }