fix
add pageInfo, keyword to serverContract return list
| | |
| | | |
| | | ServiceContractSearch struct { |
| | | ServiceContract |
| | | |
| | | Orm *gorm.DB |
| | | Keyword string |
| | | OrderBy string |
| | | PageNum int |
| | | PageSize int |
| | | } |
| | | ) |
| | | |
| | |
| | | slf.Id = id |
| | | return slf |
| | | } |
| | | |
| | | func (slf *ServiceContractSearch) SetKeyword(keyword string) *ServiceContractSearch { |
| | | slf.Keyword = keyword |
| | | return slf |
| | | } |
| | | |
| | | func (slf *ServiceContractSearch) SetPage(page, size int) *ServiceContractSearch { |
| | | slf.PageNum, slf.PageSize = page, size |
| | | return slf |
| | | } |
| | | |
| | | func (slf *ServiceContractSearch) SetOrder(order string) *ServiceContractSearch { |
| | | slf.OrderBy = order |
| | | return slf |
| | | } |