This commit is contained in:
ziming 2025-03-25 15:37:54 +08:00
parent 35eb9f28f8
commit eba81c7ee0
1 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ import (
"voucher/internal/biz/vo" "voucher/internal/biz/vo"
) )
func (c *CmbService) QueryProductsuccess(ctx context.Context, bizReply *v1.CmbQueryProductReply) (*v1.CmbReply, error) { func (c *CmbService) QueryProductSuccess(ctx context.Context, bizReply *v1.CmbQueryProductReply) (*v1.CmbReply, error) {
replyBizContent, _ := json.Marshal(bizReply) replyBizContent, _ := json.Marshal(bizReply)
@ -37,15 +37,15 @@ func (c *CmbService) QueryProductFail(ctx context.Context, err error) (*v1.CmbRe
func (c *CmbService) QueryProduct(ctx context.Context, request *v1.CmbRequest) (*v1.CmbReply, error) { func (c *CmbService) QueryProduct(ctx context.Context, request *v1.CmbRequest) (*v1.CmbReply, error) {
bizReply, err := c.qaueryProduct(ctx, request) bizReply, err := c.queryProduct(ctx, request)
if err != nil { if err != nil {
return c.QueryProductFail(ctx, err) return c.QueryProductFail(ctx, err)
} }
return c.QueryProductsuccess(ctx, bizReply) return c.QueryProductSuccess(ctx, bizReply)
} }
func (c *CmbService) qaueryProduct(ctx context.Context, request *v1.CmbRequest) (*v1.CmbQueryProductReply, error) { func (c *CmbService) queryProduct(ctx context.Context, request *v1.CmbRequest) (*v1.CmbQueryProductReply, error) {
bizContent, err := c.CmbMixRepo.ProductQueryVerify(ctx, request) bizContent, err := c.CmbMixRepo.ProductQueryVerify(ctx, request)
if err != nil { if err != nil {