efactor🎨:修改行政区域数据结构

主键不需要自增
This commit is contained in:
wenjianzhang
2021-06-15 12:22:30 +08:00
parent 992d892523
commit af7a3e99a8
@@ -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