go_dreamfactory/modules/friend/api.go
2022-08-18 11:32:33 +08:00

34 lines
880 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"
FriendSubTypeZan = "zan"
FriendSubTypeZanreceive = "zanreceive"
FriendSubTypeZanList = "zanlist"
FriendSubTypeRandList = "randlist"
)
type apiComp struct {
modules.MCompGate
moduleFriend *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.moduleFriend = module.(*Friend)
return
}