fix
CI / changes (push) Successful in 1m31s
CI / ad (push) Successful in 1s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 0s
CI / chore (push) Successful in 1s
CI / equipment (push) Successful in 32s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 0s
CI / payment (push) Successful in 1s
CI / percutaneous (push) Successful in 0s
CI / record (push) Successful in 0s
CI / product (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / store (push) Successful in 1s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / water (push) Successful in 0s
CI / wecom (push) Successful in 0s

This commit is contained in:
2026-10-22 13:09:59 +08:00
parent 7c650985ce
commit d8756ced1b
2 changed files with 2 additions and 3 deletions
@@ -37,7 +37,7 @@ func (l *AuthorizationStoreItemsLogic) AuthorizationStoreItems(in *equipment.Emp
}
w := modelbase.Params{Eq: map[string]string{
"store_id": strconv.Itoa(int(adminInfo.StoreId))}}
"store_id": strconv.Itoa(int(adminInfo.BizId))}}
var info []dao.AuthorizationRecordInfo
err := model.AuthorizationRecordModel{}.Init().Items(w, &info)
if err != nil {
+1 -2
View File
@@ -28,7 +28,7 @@ func (p CancelBindValidator) GetMessage() validate.ValidatorMessages {
type ControlBindValidator struct {
StoreId int64 `form:"store_id" json:"store_id" validate:"required"`
Open int32 `form:"open" json:"open" validate:"required,oneof:1 2"`
Open int32 `form:"open" json:"open" validate:"required"`
}
// GetMessage 提示消息
@@ -36,6 +36,5 @@ func (p ControlBindValidator) GetMessage() validate.ValidatorMessages {
return validate.ValidatorMessages{
"StoreId.required": "门店ID不能为空",
"Open.required": "开启展示不能为空",
"Open.oneof": "开启展示只能是1或2",
}
}