github.com/SupenBysz/gf-admin-community@v0.7.4/sys_model/sys_hook/sys_invite.go (about) 1 package sys_hook 2 3 import ( 4 "context" 5 "github.com/SupenBysz/gf-admin-community/sys_model" 6 "github.com/SupenBysz/gf-admin-community/sys_model/sys_enum" 7 ) 8 9 // func(上下文,匹配状态,邀约记录,注册表单) 10 11 type InviteRegisterHookFunc func(ctx context.Context, state sys_enum.InviteType, invite *sys_model.InviteRes, registerInfo *sys_model.SysUser) (bool, error) 12 type InviteRegisterHookInfo struct { 13 Key sys_enum.InviteType 14 Value InviteRegisterHookFunc 15 //Category int `json:"category" dc:"业务类别"` 16 } 17 18 // InviteStateHookFunc 订阅邀约状态 19 type InviteStateHookFunc func(ctx context.Context, state sys_enum.InviteState, invite *sys_model.InviteRes) error