efactor🎨:修改行政区域数据结构
主键不需要自增
This commit is contained in:
1 parent
992d892523
commit
af7a3e99a8
1 file changed
+2
-2
@@ -1,8 +1,8 @@
|
||||
package models
|
||||
|
||||
type SysChinaAreaData struct {
|
||||
Model
|
||||
PId string `json:"p_id" gorm:"size:11;comment:上级编码"`
|
||||
Id int `json:"id" gorm:"primaryKey;comment:主键编码"`
|
||||
PId int `json:"p_id" gorm:"size:11;comment:上级编码"`
|
||||
Name string `json:"name" gorm:"size:128;comment:名称"`
|
||||
ControlBy
|
||||
ModelTime
|
||||
|
||||
Reference in new issue
Block a user