updateviptimelogic.go 903 B

1234567891011121314151617181920212223242526272829303132333435
  1. package logic
  2. import (
  3. "app.yhyue.com/moapp/jyResourcesCenter/rpc/internal/config"
  4. "context"
  5. "app.yhyue.com/moapp/jyResourcesCenter/rpc/internal/svc"
  6. "app.yhyue.com/moapp/jyResourcesCenter/rpc/resourcesCenter"
  7. "github.com/tal-tech/go-zero/core/logx"
  8. )
  9. type UpdateVipTimeLogic struct {
  10. ctx context.Context
  11. svcCtx *svc.ServiceContext
  12. logx.Logger
  13. }
  14. func NewUpdateVipTimeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateVipTimeLogic {
  15. return &UpdateVipTimeLogic{
  16. ctx: ctx,
  17. svcCtx: svcCtx,
  18. Logger: logx.WithContext(ctx),
  19. }
  20. }
  21. // 超级订阅时间修改
  22. func (l *UpdateVipTimeLogic) UpdateVipTime(in *resourcesCenter.VipReq) (*resourcesCenter.Response, error) {
  23. // todo: add your logic here and delete this line
  24. code, msg := balanceService.UpdateVipTime(in, config.ConfigJson.ProductMap)
  25. return &resourcesCenter.Response{
  26. Code: code,
  27. Message: msg,
  28. }, nil
  29. }