feat:完善项目信息
This commit is contained in:
@ -30,11 +30,15 @@ type (
|
||||
func (c *Patent) Instance(title, industry string, page, pageSize int) (*controller.ReturnPages, error) {
|
||||
// TODO:缺少会员判断标准
|
||||
// ES标准判定
|
||||
s := service.NewESPatent(
|
||||
service.WithPatentTitle(title),
|
||||
service.WithPatentIndustry(industry),
|
||||
)
|
||||
out, count1, err := s.Search(page, pageSize)
|
||||
manage := service.NewESPatent()
|
||||
|
||||
if title != "" {
|
||||
service.WithPatentTitle(title)(manage)
|
||||
}
|
||||
if industry != "" {
|
||||
service.WithPatentIndustry(industry)(manage)
|
||||
}
|
||||
out, count1, err := manage.Search(page, pageSize)
|
||||
|
||||
list := make([]*PatentInfo, 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user