mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-21 10:13:01 +00:00
efactor🎨:修改行政区域数据结构
主键不需要自增
This commit is contained in:
@@ -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