mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-21 18:20:50 +00:00
efactor🎨:修改行政区域数据结构
主键不需要自增
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
type SysChinaAreaData struct {
|
type SysChinaAreaData struct {
|
||||||
Model
|
Id int `json:"id" gorm:"primaryKey;comment:主键编码"`
|
||||||
PId string `json:"p_id" gorm:"size:11;comment:上级编码"`
|
PId int `json:"p_id" gorm:"size:11;comment:上级编码"`
|
||||||
Name string `json:"name" gorm:"size:128;comment:名称"`
|
Name string `json:"name" gorm:"size:128;comment:名称"`
|
||||||
ControlBy
|
ControlBy
|
||||||
ModelTime
|
ModelTime
|
||||||
|
|||||||
Reference in New Issue
Block a user