2021-10-15 15:01:21 +08:00
|
|
|
package identity
|
|
|
|
|
|
|
|
import (
|
2021-10-15 15:06:02 +08:00
|
|
|
"SciencesServer/app/api/manage/controller"
|
2021-10-15 15:01:21 +08:00
|
|
|
"SciencesServer/app/service"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Instance struct {
|
|
|
|
*service.SessionEnterprise
|
|
|
|
local string
|
|
|
|
}
|
|
|
|
|
|
|
|
type InstanceHandle func(enterprise *service.SessionEnterprise, local string) *Instance
|
|
|
|
|
|
|
|
// Expert 专家列表
|
|
|
|
func (c *Instance) Expert(name, mobile string, page, pageSize int) (*controller.ReturnPages, error) {
|
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewIdentity() InstanceHandle {
|
|
|
|
return func(enterprise *service.SessionEnterprise, local string) *Instance {
|
|
|
|
return &Instance{
|
|
|
|
SessionEnterprise: enterprise,
|
|
|
|
local: local,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|