bizBytes
This commit is contained in:
parent
35eb9f28f8
commit
eba81c7ee0
|
|
@ -9,7 +9,7 @@ import (
|
|||
"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)
|
||||
|
||||
|
|
@ -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) {
|
||||
|
||||
bizReply, err := c.qaueryProduct(ctx, request)
|
||||
bizReply, err := c.queryProduct(ctx, request)
|
||||
if err != nil {
|
||||
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)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue