diff --git a/cmd/migrate/migration/models/sys_api.go b/cmd/migrate/migration/models/sys_api.go index 1c749e1..8d75170 100644 --- a/cmd/migrate/migration/models/sys_api.go +++ b/cmd/migrate/migration/models/sys_api.go @@ -5,8 +5,8 @@ type SysApi struct { Handle string `json:"handle" gorm:"size:128;comment:handle"` Title string `json:"title" gorm:"size:128;comment:标题"` Path string `json:"path" gorm:"size:128;comment:地址"` - Action string `json:"action" gorm:"size:16;comment:请求类型"` Type string `json:"type" gorm:"size:16;comment:接口类型"` + Action string `json:"action" gorm:"size:16;comment:请求类型"` ModelTime ControlBy } diff --git a/cmd/migrate/migration/models/sys_china_area_data.go b/cmd/migrate/migration/models/sys_china_area_data.go index 277e678..1f59678 100644 --- a/cmd/migrate/migration/models/sys_china_area_data.go +++ b/cmd/migrate/migration/models/sys_china_area_data.go @@ -2,7 +2,7 @@ package models type SysChinaAreaData struct { Id int `json:"id" gorm:"primaryKey;comment:主键编码"` - PId int `json:"p_id" gorm:"size:11;comment:上级编码"` + PId int `json:"pId" gorm:"size:11;comment:上级编码"` Name string `json:"name" gorm:"size:128;comment:名称"` ControlBy ModelTime