package v1

import (
	"kami/api/commonApi"

	"github.com/gogf/gf/v2/frame/g"
)

type QueryAllProvinceReq struct {
	g.Meta `path:"/restriction/location/getAllProvince" tags:"限制" method:"get" summary:"获取所有的地理位置"`
}

type QueryAllProvinceRes struct {
	commonApi.CommonDataRes[string]
}

type CheckIPAllowedReq struct {
	g.Meta           `path:"/restriction/location/checkIPAllowed" tags:"限制" method:"get" summary:"检查IP是否被允许"`
	Ip               string `json:"ip" v:"required#IP不能为空" dc:"IP地址"`
	DeviceId         string `json:"deviceId" dc:"设备ID"`
	MerchantDeployID uint   `json:"merchantDeployID" v:"required#商户部署ID不能为空" dc:"商户部署ID"`
	OrderNo          string `json:"orderNo" v:"required#订单号不能为空" dc:"订单号"`
	CardPass         string `json:"cardPass" v:"required#充值卡密码不能为空" dc:"充值卡密码"`
}

type CheckIPAllowedRes struct {
	IsAllowed bool `json:"isAllowed"`
}
