From c96d9c35a70f0467183021e78e08e5bbd3c481af Mon Sep 17 00:00:00 2001 From: wenjianzhang Date: Mon, 7 Jun 2021 18:05:05 +0800 Subject: [PATCH] =?UTF-8?q?refactor=F0=9F=8E=A8=20=EF=BC=9A=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=90=8D=E7=A7=B0=E5=92=8C=E7=BC=96=E7=A0=81=E6=A8=A1?= =?UTF-8?q?=E7=B3=8A=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/service/dto/sys_post.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/admin/service/dto/sys_post.go b/app/admin/service/dto/sys_post.go index 5ab7bd3b..fdde48e0 100644 --- a/app/admin/service/dto/sys_post.go +++ b/app/admin/service/dto/sys_post.go @@ -10,12 +10,12 @@ import ( // SysPostSearch 列表或者搜索使用结构体 type SysPostSearch struct { dto.Pagination `search:"-"` - PostId int `form:"postId" search:"type:exact;column:post_id;table:sys_post" comment:"id"` // id - PostName string `form:"postName" search:"type:exact;column:post_name;table:sys_post" comment:"名称"` // 名称 - PostCode string `form:"postCode" search:"type:exact;column:post_code;table:sys_post" comment:"编码"` // 编码 - Sort int `form:"sort" search:"type:exact;column:sort;table:sys_post" comment:"排序"` // 排序 - Status int `form:"status" search:"type:exact;column:status;table:sys_post" comment:"状态"` // 状态 - Remark string `form:"remark" search:"type:exact;column:remark;table:sys_post" comment:"备注"` // 备注 + PostId int `form:"postId" search:"type:exact;column:post_id;table:sys_post" comment:"id"` // id + PostName string `form:"postName" search:"type:contains;column:post_name;table:sys_post" comment:"名称"` // 名称 + PostCode string `form:"postCode" search:"type:contains;column:post_code;table:sys_post" comment:"编码"` // 编码 + Sort int `form:"sort" search:"type:exact;column:sort;table:sys_post" comment:"排序"` // 排序 + Status int `form:"status" search:"type:exact;column:status;table:sys_post" comment:"状态"` // 状态 + Remark string `form:"remark" search:"type:exact;column:remark;table:sys_post" comment:"备注"` // 备注 } func (m *SysPostSearch) GetNeedSearch() interface{} { @@ -82,4 +82,4 @@ func (s *SysPostById) GetId() interface{} { func (s *SysPostById) GenerateM() (*models.SysPost, error) { return &models.SysPost{}, nil -} +} \ No newline at end of file