feat:完善后台经纪人审核信息
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package search
|
||||
|
||||
import (
|
||||
"SciencesServer/app/basic/config"
|
||||
"SciencesServer/app/basic/controller"
|
||||
"errors"
|
||||
)
|
||||
@ -16,12 +17,14 @@ var instanceHandle = map[int]func(int, int, string, string, map[string]interface
|
||||
|
||||
// Launch 发起搜索
|
||||
func (c *Instance) Launch(mode int, keyword, industry string, params map[string]interface{}, page, pageSize int) (interface{}, error) {
|
||||
_industry := config.GetIndustryInfo(industry, "-", "-").Value
|
||||
|
||||
handle, has := instanceHandle[mode]
|
||||
|
||||
if !has {
|
||||
return nil, errors.New("操作错误,未知的搜索模式")
|
||||
}
|
||||
return handle(page, pageSize, keyword, industry, params)
|
||||
return handle(page, pageSize, keyword, _industry, params)
|
||||
}
|
||||
|
||||
func NewInstance() InstanceHandle {
|
||||
|
Reference in New Issue
Block a user