refactor🎨:调整接口和行政区结构体

This commit is contained in:
wenjianzhang
2021-06-15 17:54:46 +08:00
parent 3a688c06a1
commit 1c9d2075d7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -5,8 +5,8 @@ type SysApi struct {
Handle string `json:"handle" gorm:"size:128;comment:handle"` Handle string `json:"handle" gorm:"size:128;comment:handle"`
Title string `json:"title" gorm:"size:128;comment:标题"` Title string `json:"title" gorm:"size:128;comment:标题"`
Path string `json:"path" 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:接口类型"` Type string `json:"type" gorm:"size:16;comment:接口类型"`
Action string `json:"action" gorm:"size:16;comment:请求类型"`
ModelTime ModelTime
ControlBy ControlBy
} }
@@ -2,7 +2,7 @@ package models
type SysChinaAreaData struct { type SysChinaAreaData struct {
Id int `json:"id" gorm:"primaryKey;comment:主键编码"` 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:名称"` Name string `json:"name" gorm:"size:128;comment:名称"`
ControlBy ControlBy
ModelTime ModelTime