30 lines
707 B
Go
30 lines
707 B
Go
package friend
|
|
|
|
import (
|
|
"go_dreamfactory/lego/core"
|
|
"go_dreamfactory/modules"
|
|
)
|
|
|
|
const (
|
|
FriendSubTypeList = "list"
|
|
FriendSubTypeApply = "apply"
|
|
FriendSubTypeApplyList = "applylist"
|
|
FriendSubTypeAddBlack = "addblack"
|
|
FriendSubTypeDelBlack = "delblack"
|
|
FriendSubTypeBlacklist = "blacklist"
|
|
FriendSubTypeAgree = "agree"
|
|
FriendSubTypeRefuse = "refuse"
|
|
FriendSubTypeSearch = "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
|
|
}
|