package v1

import (
	"github.com/gogf/gf/v2/frame/g"

	"kami/api/commonApi"
)

type MerchantDeployListReq struct {
	g.Meta      `path:"/merchant/deploy/getList" tags:"商户部署信息" method:"get" summary:"获取商户部署通道信息"`
	MerchantUid string `json:"merchantUid"          description:"商户uid"`
}

type MerchantDeployListRes struct {
	g.Meta `mime:"application/json"`
	commonApi.CommonDataRes[*MerchantDeployRecord]
}

type MerchantDeployDeleteReq struct {
	g.Meta      `path:"/merchant/deploy/delete" tags:"商户部署信息" method:"delete" summary:"删除商户部署通道信息"`
	MerchantUid string `json:"merchantUid" v:"required#商户ID不能为空" description:"商户uid"`
	// PayType       string `json:"payType"  v:"required#支付类型不能为空" description:"支付类型"`
	SingleRoadUid string `json:"singleRoadUid"  v:"required#单通道uid不能为空"  description:"单通道uid"`
}

type MerchantDeployDeleteRes struct {
	g.Meta `mime:"application/json"`
}

type MerchantDeployAddReq struct {
	g.Meta `path:"/merchant/deploy/add" tags:"商户部署信息" method:"post" summary:"添加商户部署通道信息"`
	MerchantDeployRateAdd
}

type MerchantDeployAddRes struct {
	g.Meta `mime:"application/json"`
}

type MerchantDeployUpdateReq struct {
	g.Meta `path:"/merchant/deploy/update" tags:"商户部署信息" method:"post" summary:"更新商户部署通道信息"`
	MerchantDeployRateUpdate
}

type MerchantDeployUpdateRes struct {
	g.Meta `mime:"application/json"`
}

type MerchantDeployGetDetailReq struct {
	g.Meta `path:"merchant/deploy/getDetail" tags:"商户部署信息" method:"get" summary:"获取商户部署通道详情"`
	commonApi.CommonIntId
}

type MerchantDeployGetDetailRes struct {
	g.Meta `mime:"application/json"`
	MerchantDeployRecord
}
