1 file changed
+6
-5
@@ -9,10 +9,11 @@ import (
|
||||
common "go-admin/common/models"
|
||||
)
|
||||
|
||||
type SysContentSearch struct {
|
||||
dto.Pagination `search:"-"`
|
||||
Name string `form:"name" search:"type:exact;column:name;table:sys_category" comment:"名称"`
|
||||
Status string `form:"status" search:"type:exact;column:status;table:sys_category" comment:"状态"`
|
||||
type SysContentSearch struct {
|
||||
dto.Pagination `search:"-"`
|
||||
CateId string `form:"cateId" search:"type:exact;column:cate_id;table:sys_content" comment:"分类"`
|
||||
Name string `form:"name" search:"type:contains;column:name;table:sys_content" comment:"名称"`
|
||||
Status string `form:"status" search:"type:exact;column:status;table:sys_content" comment:"状态"`
|
||||
}
|
||||
|
||||
func (m *SysContentSearch) GetNeedSearch() interface{} {
|
||||
@@ -91,4 +92,4 @@ func (s *SysContentById) Generate() dto.Control {
|
||||
|
||||
func (s *SysContentById) GenerateM() (common.ActiveRecord, error) {
|
||||
return &models.SysContent{}, nil
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user