mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-10-16 06:53:44 +08:00
模块化上传驱动,使用泛型优化工具库降低冗余
This commit is contained in:
@@ -25,7 +25,7 @@ type OrderAcceptRefundInp struct {
|
||||
}
|
||||
|
||||
func (in *OrderAcceptRefundInp) Filter(ctx context.Context) (err error) {
|
||||
if !validate.InSliceInt64(consts.OrderStatusSlice, in.Status) {
|
||||
if !validate.InSlice(consts.OrderStatusSlice, in.Status) {
|
||||
err = gerror.Newf("订单状态不正确")
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user