19 lines
417 B
Go
19 lines
417 B
Go
package web
|
|
|
|
import (
|
|
"context"
|
|
"encoding/json"
|
|
"net/url"
|
|
|
|
"go-common/app/interface/main/web-goblin/model/web"
|
|
"go-common/library/log"
|
|
)
|
|
|
|
// Recruit .
|
|
func (s *Service) Recruit(ctx context.Context, param url.Values, route *web.Params) (res json.RawMessage, err error) {
|
|
if res, err = s.dao.Recruit(ctx, param, route); err != nil {
|
|
log.Error("s.dao.Recruit route(%s) error(%v)", route.Route, err)
|
|
}
|
|
return
|
|
}
|