上传活动接口通知
This commit is contained in:
parent
27908f10f0
commit
c38b63a7c6
@ -24,7 +24,10 @@ type (
|
|||||||
}
|
}
|
||||||
// 活动通知
|
// 活动通知
|
||||||
IActivityNotice interface {
|
IActivityNotice interface {
|
||||||
ActivityNotice(hdlist *pb.DBHuodong)
|
//活动开启通知
|
||||||
|
ActivityOpenNotice(hdlist *pb.DBHuodong)
|
||||||
|
//活动关闭通知
|
||||||
|
ActivityCloseNotice(hdlist *pb.DBHuodong)
|
||||||
}
|
}
|
||||||
//支付发布接口
|
//支付发布接口
|
||||||
IPayDelivery interface {
|
IPayDelivery interface {
|
||||||
|
@ -54,7 +54,7 @@ func (this *Activity) Start() (err error) {
|
|||||||
var module core.IModule
|
var module core.IModule
|
||||||
if module, err = this.service.GetModule(comm.ModuleWarorder); err == nil {
|
if module, err = this.service.GetModule(comm.ModuleWarorder); err == nil {
|
||||||
if m, ok := module.(comm.IWarorder); ok {
|
if m, ok := module.(comm.IWarorder); ok {
|
||||||
m.ActivityNotice(rst)
|
m.ActivityOpenNotice(rst)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -63,7 +63,7 @@ func (this *Activity) Start() (err error) {
|
|||||||
var module core.IModule
|
var module core.IModule
|
||||||
if module, err = this.service.GetModule(comm.ModulePay); err == nil {
|
if module, err = this.service.GetModule(comm.ModulePay); err == nil {
|
||||||
if m, ok := module.(comm.IPay); ok {
|
if m, ok := module.(comm.IPay); ok {
|
||||||
m.ActivityNotice(rst)
|
m.ActivityOpenNotice(rst)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -286,7 +286,7 @@ func (this *Pay) ModulePayDelivery(session comm.IUserSession, Productid string,
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *Pay) ActivityNotice(hdlist *pb.DBHuodong) {
|
func (this *Pay) ActivityOpenNotice(hdlist *pb.DBHuodong) {
|
||||||
switch hdlist.Itype {
|
switch hdlist.Itype {
|
||||||
case comm.HdTypePay:
|
case comm.HdTypePay:
|
||||||
this.modelActivity.setopentime(1, hdlist)
|
this.modelActivity.setopentime(1, hdlist)
|
||||||
|
@ -87,7 +87,7 @@ func (this *Warorder) Delivery(session comm.IUserSession, pid string) (errdata *
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 开启战令
|
// 开启战令
|
||||||
func (this *Warorder) ActivityNotice(hdlist *pb.DBHuodong) {
|
func (this *Warorder) ActivityOpenNotice(hdlist *pb.DBHuodong) {
|
||||||
switch hdlist.Itype {
|
switch hdlist.Itype {
|
||||||
case comm.HdTypeWarorder:
|
case comm.HdTypeWarorder:
|
||||||
this.modelWarorder.setopentime(2, hdlist)
|
this.modelWarorder.setopentime(2, hdlist)
|
||||||
|
Loading…
Reference in New Issue
Block a user