30 lines
725 B
Go
30 lines
725 B
Go
package friend
|
|
|
|
import (
|
|
"go_dreamfactory/lego/core"
|
|
"go_dreamfactory/modules"
|
|
)
|
|
|
|
const (
|
|
Friend_SubType_List = "list"
|
|
Friend_SubType_Apply = "apply"
|
|
Friend_SubType_ApplyList = "applylist"
|
|
Friend_SubType_AddBlack = "addblack"
|
|
Friend_SubType_DelBlack = "delblack"
|
|
Friend_SubType_Blacklist = "blacklist"
|
|
Friend_SubType_Agree = "agree"
|
|
Friend_SubType_Refuse = "refuse"
|
|
Friend_SubType_Search = "search"
|
|
)
|
|
|
|
type apiComp struct {
|
|
modules.MCompGate
|
|
module *Friend
|
|
}
|
|
|
|
func (this *apiComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
|
this.MCompGate.Init(service, module, comp, options)
|
|
this.module = module.(*Friend)
|
|
return
|
|
}
|