- 重命名并更新了数据库表结构,增加了新字段以支持更多限制策略 - 新增了检查设备是否被限制、保存设备IP关系等功能 - 更新了限制策略的获取和应用逻辑,支持更灵活的限制条件 - 优化了代码结构,提高了可维护性和扩展性
31 lines
702 B
Go
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"`
|
|
}
|