Files
kami_backend/internal/model/merchant.go
danial 9c272981ea feat(restriction): 优化限制策略并添加新功能
- 重命名并更新了数据库表结构,增加了新字段以支持更多限制策略
- 新增了检查设备是否被限制、保存设备IP关系等功能
- 更新了限制策略的获取和应用逻辑,支持更灵活的限制条件
- 优化了代码结构,提高了可维护性和扩展性
2024-11-29 23:23:45 +08:00

31 lines
702 B
Go

package model
import (
v1 "kami/api/merchant/v1"
)
type MerchantListParamsInput struct {
v1.MerchantListParamsReq
}
type MerchantDeployRecord struct {
v1.MerchantDeployRecord
}
type MerchantSimpleInfoRecord struct {
v1.MerchantSimpleInfoRecord
}
type MerchantInfoRecord struct {
v1.MerchantInfoRecord
}
type MerchantDeployInfoStrategyOutput struct {
RestrictArea []string `json:"restrictArea"`
IsRestrictAgent bool `json:"isRestrictAgent"`
IsRestrictCardPass bool `json:"isRestrictCardPass"`
IsRestrictDevice bool `json:"isRestrictDevice"`
IsRestrictIp bool `json:"isRestrictIp"`
IsRestrictInternalIp bool `json:"isRestrictInternalIp"`
}