1234567891011121314151617181920212223242526272829303132333435 |
- package logic
- import (
- "app.yhyue.com/moapp/jyResourcesCenter/rpc/internal/config"
- "context"
- "app.yhyue.com/moapp/jyResourcesCenter/rpc/internal/svc"
- "app.yhyue.com/moapp/jyResourcesCenter/rpc/resourcesCenter"
- "github.com/tal-tech/go-zero/core/logx"
- )
- type UpdateVipTimeLogic struct {
- ctx context.Context
- svcCtx *svc.ServiceContext
- logx.Logger
- }
- func NewUpdateVipTimeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateVipTimeLogic {
- return &UpdateVipTimeLogic{
- ctx: ctx,
- svcCtx: svcCtx,
- Logger: logx.WithContext(ctx),
- }
- }
- // 超级订阅时间修改
- func (l *UpdateVipTimeLogic) UpdateVipTime(in *resourcesCenter.VipReq) (*resourcesCenter.Response, error) {
- // todo: add your logic here and delete this line
- code, msg := balanceService.UpdateVipTime(in, config.ConfigJson.ProductMap)
- return &resourcesCenter.Response{
- Code: code,
- Message: msg,
- }, nil
- }
|