This commit is contained in:
邹宗楠
2023-10-12 15:30:41 +08:00
parent 12f87bccc7
commit 16dc42708e
2 changed files with 16 additions and 1 deletions

View File

@@ -62,3 +62,19 @@ func CallBackResultSign(err error) *CallBackResult {
ErrMsg: err.Error(),
}
}
// CallBackResultOnSaleCancel 售中取消允许开关
func CallBackResultOnSaleCancel(err error) *CallBackResult {
if err == nil {
return &CallBackResult{
Success: true,
ErrCode: "SUCCESS",
ErrMsg: "成功",
}
}
return &CallBackResult{
Success: false,
ErrCode: "NOT_SUPPORT_INSALE_CANCEL",
ErrMsg: "不支持售中取消。",
}
}