jyexportchargeamountlogic.go 808 B

12345678910111213141516171819202122232425262728293031
  1. package logic
  2. import (
  3. "app.yhyue.com/moapp/jyResourcesCenter/service"
  4. "context"
  5. "app.yhyue.com/moapp/jyResourcesCenter/rpc/internal/svc"
  6. "app.yhyue.com/moapp/jyResourcesCenter/rpc/resourcesCenter"
  7. "github.com/zeromicro/go-zero/core/logx"
  8. )
  9. type JyExportChargeAmountLogic struct {
  10. ctx context.Context
  11. svcCtx *svc.ServiceContext
  12. logx.Logger
  13. }
  14. func NewJyExportChargeAmountLogic(ctx context.Context, svcCtx *svc.ServiceContext) *JyExportChargeAmountLogic {
  15. return &JyExportChargeAmountLogic{
  16. ctx: ctx,
  17. svcCtx: svcCtx,
  18. Logger: logx.WithContext(ctx),
  19. }
  20. }
  21. // 剑鱼定制导出扣费方式
  22. func (l *JyExportChargeAmountLogic) JyExportChargeAmount(in *resourcesCenter.ChargeAccountReq) (*resourcesCenter.ChargeAccountResp, error) {
  23. resp := service.ChargeAccount(in)
  24. return resp, nil
  25. }