feat: sale manager
This commit is contained in:
@@ -67,10 +67,10 @@ func (l *VerifyLogic) Verify(in *product.VerifyReq) (*product.Response, error) {
|
||||
|
||||
items := make([]*product.VerifyItem, 0)
|
||||
if len(rows) == 0 {
|
||||
return okResponse(utils.StructToJson(&product.VerifyItemsData{
|
||||
return okResponse(&product.VerifyItemsData{
|
||||
Count: result.Count,
|
||||
Items: items,
|
||||
})), nil
|
||||
}), nil
|
||||
}
|
||||
|
||||
ids := make([]string, 0, len(rows))
|
||||
@@ -142,8 +142,8 @@ func (l *VerifyLogic) Verify(in *product.VerifyReq) (*product.Response, error) {
|
||||
})
|
||||
}
|
||||
|
||||
return okResponse(utils.StructToJson(&product.VerifyItemsData{
|
||||
return okResponse(&product.VerifyItemsData{
|
||||
Count: result.Count,
|
||||
Items: items,
|
||||
})), nil
|
||||
}), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user