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
@@ -6,7 +6,7 @@ import (
)
type SysContent struct {
Id int `json:"id" gorm:"type:int(11);primary_key;auto_increment"` // id
Id int `json:"id" gorm:"type:int(11);primaryKey;autoIncrement"` // id
CateId string `json:"cateId" gorm:"type:int(11);"` // 分类id
Name string `json:"name" gorm:"type:varchar(255);"` // 名称
Status string `json:"status" gorm:"type:int(1);"` // 状态