书籍列表接口新增参数
This commit is contained in:
19
internal/controller/activity/activity_v1_rule_del.go
Normal file
19
internal/controller/activity/activity_v1_rule_del.go
Normal file
@ -0,0 +1,19 @@
|
||||
package activity
|
||||
|
||||
import (
|
||||
"context"
|
||||
"server/internal/model"
|
||||
"server/internal/service"
|
||||
|
||||
"server/api/activity/v1"
|
||||
)
|
||||
|
||||
func (c *ControllerV1) RuleDel(ctx context.Context, req *v1.RuleDelReq) (res *v1.RuleDelRes, err error) {
|
||||
out, err := service.SignInRewardRules().Delete(ctx, &model.SignInRewardRulesDeleteIn{
|
||||
Id: req.Id,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &v1.RuleDelRes{Success: out.Success}, nil
|
||||
}
|
||||
Reference in New Issue
Block a user