refactor🎨: 修改请求参数命名

This commit is contained in:
zhangwenjian committed 2021-06-29 16:32:44 +08:00
1 parent 3fd34db3c1
commit f80e64688e
14 files changed
+192 -99

No files matched your search

+2 -2
View File
@@ -8,7 +8,7 @@ import (
common "go-admin/common/models"
)
type SysOperaLogSearch struct {
type SysOperaLogGetPageReq struct {
dto.Pagination `search:"-"`
Title string `form:"title" search:"type:contains;column:title;table:sys_opera_log" comment:"操作模块"`
Method string `form:"method" search:"type:contains;column:method;table:sys_opera_log" comment:"函数"`
@@ -25,7 +25,7 @@ type SysOperaLogOrder struct {
CreatedAtOrder string `search:"type:order;column:created_at;table:sys_opera_log" form:"createdAtOrder"`
}
func (m *SysOperaLogSearch) GetNeedSearch() interface{} {
func (m *SysOperaLogGetPageReq) GetNeedSearch() interface{} {
return *m
}