miaofusdk

package module
v0.0.0-...-96bb6c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

README

miaofusdk

秒富的服务端 SDK. 抽离这个 SDK 的目的是 为了分离业务和统一格式而定.. 这个 sdk 用于私有业务中的数据格式统一..

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliAuthInfoBean

type AliAuthInfoBean struct {
	Id                 int
	Appid              string
	AppPid             string
	AppName            string
	Scope              string
	AccessToken        string
	UserId             string
	AuthAppId          string
	ExpiresIn          int64
	ReExpiresIn        int64
	RefreshToken       string
	Avatar             string
	NickName           string
	Province           string
	City               string
	Gender             string
	UserTypeValue      string
	UserStatus         string
	FirmName           string
	RealName           string
	Email              string
	CertNo             string
	Phone              string
	Mobile             string
	IsCertified        string
	IsBankAuth         string
	IsIdAuth           string
	IsMobileAuth       string
	IsLicenceAuth      string
	IsStudentCertified string
	IsCertifyGradeA    string
	CertTypeValue      string
	DeliverPhone       string
	DeliverMobile      string
	DeliverFullname    string
	Area               string
	Address            string
	Zip                string
	AuthType           string
}

* 授权中心的数据.. 这里不做 json 的大小写转换了.. 授权中心是第一个独立出来的服务..当时没考虑到 sdk 的问题.. 授权中心涉及了好几个服务..暂时没时间一个个修改了.

type AliBillBean

type AliBillBean struct {
	Id                          int
	Trade_no                    string
	Out_trade_no                string
	Buyer_logon_id              string
	Trade_status                string
	Total_amount                string
	Receipt_amount              string
	Send_pay_date               string
	Store_id                    string
	Terminal_id                 string
	Store_name                  string
	Buyer_user_id               string
	Discount_goods_detail       string
	Buyer_pay_amount            string
	Fund_bill_list              string
	Fund_bill_list_Amount       string
	Fund_bill_list_Fund_channel string
	Invoice_amount              string
	Open_id                     string
	Point_amount                string
	Industry_sepc_detail        string
	ShoperId                    string
	Time_end                    string
	OrgCode                     string
	ShopCode                    string
	StoreCode                   string
	TerminalCode                string
	DownTradeNo                 string
	RawData                     string
	AuthCode                    string
	OperId                      string
	Trade_type                  string
	Subject                     string
	GoodsDetail                 string
	UndiscountableAmt           string
	Alipay_store_id             string
	AppId                       string
	Pid                         string
	App_auth_token              string
	Gmt_payment                 string
	Card_balance                string
	CodeUrl                     string
	RefundSubject               string
	RefundFee                   string
	RefundChange                string
	RefundTime                  string
	Send_back_fee               string
	RefundDetailItemList        string
	BatchNo                     int
}

type AliItemBean

type AliItemBean struct {
	Id int `json:"id,omitempty"`
	//用户 id....
	UserId string `json:"user_id,omitempty"`
	////口碑体系内部商品的唯一标识 ,后续的增删改查接口都使用 该ID作为主键
	ItemId string `json:"item_id,omitempty"`
	//商品类型为交易凭证类型 :TRADE_VOUCHER
	ItemType string `json:"item_type,omitempty"`
	//商品名称,请勿超过20汉字 ,40个字符
	Subject string `json:"subject,omitempty"`
	//商品顺序权重,必须是整数 ,不传默认为0,权重数值越 大排序越靠前
	Weight int `json:"weight,omitempty"`
	//标准商品:FIX;非标准商品 :FLOAT
	PriceMode string `json:"price_mode,omitempty"`
	//商品库存数量,标准商品必填 ;非标准商品不需要填写,不 填写则默认为:99999999
	Inventory int `json:"inventory,omitempty"`
	//商品描述,列表类型,最多 10项,每一项的key,value的 描述见下面两行
	Descriptions string `json:"descriptions,omitempty"`
	//上架门店id列表,即传入一个 或多个shop_id。多个ID则以 英文,分隔
	ShopIds string `json:"shop_ids,omitempty"`
	//商品生效时间,商品状态有效 并且到达生效时间后才可在客 户端(消费者端)展示出来 ,
	// 如果商品生效时间小于当前 时间,则立即生效。 说明:商品的生效时间不能早 于创建当天的0点
	GmtStart string `json:"gmt_start,omitempty"`
	//商品首图。支持 bmp,png,jpeg,jpg,gif格式的 图片,
	// 建议宽高比16:9,
	// 建议 宽高:1242*698px
	// 图片大小 ≤5M。图片大小超过5M,接口 会报错。
	// 若图片尺寸不对,口碑服务器自身不会做压缩,
	// 但 是口碑把这些图片放到客户端上展现时,自己会做性能优化 (等比缩放,以图片中心为基 准裁剪)。
	Cover string `json:"cover,omitempty"`
	//商品详情图。尺寸大小与 cover一致,最多5张,以英文逗号分隔
	// 端上展现时,自己会做性能优 化(等比缩放,以图片中心为 基准裁剪)
	PictureDetails string `json:"picture_details,omitempty"`
	//标准商品为现价,必填。非标准 商品为最小价格(非标商品为 xx元起)必填。
	// 价格单位为元 。如果现价与原价相等时,则 会以原价售卖,并且客户端只 展示一个价格(原价
	Price string `json:"price,omitempty"`
	//标准商品为原价,必填。非标准商品请勿填写,填写无效。价格单位为元
	OriginalPrice string `json:"original_price,omitempty"`
	//非标准商品详情页url,用户通过此url跳转到非标准商品的商 品详情页,非标准商品必填
	ItemDetailUrl string `json:"item_detail_url,omitempty"`
	//口碑商品所属的后台类目 id,ISV可通过开放接口
	// koubei.item.category.children.batchquery来获得后台类 目树,并选择叶子类目,作为 该值传入
	CategoryId string `json:"category_id,omitempty"`
	//购买有效期:商品自购买起多长时间内有效,
	// 取值范围 7- 360,单位天。
	// 举例,如果是 7的话,是到第七天晚上 23:59:59失效。
	// 商品购买后 ,没有在有效期内核销,则自 动退款给用户。
	// 举例:买了一 个高级造型师洗剪吹的商品 ,有效期一个月,如果一个月 之后,用户没有使用商品来进 行洗剪吹的服务,则自动退款 给用户。
	ValidityPeriod string `json:"validity_period,omitempty"`
	//表示是否支持预定,支持 “T”, 不支持“F”
	SupportBook string `json:"support_book,omitempty"`

	//该商品当前的状态,共有5个 状态:INIT(初始状态 )EFFECTIVE(生效 )PAUSE(暂停)FREEZE(冻 结)INVALID(失效);详见状 态变更图
	ItemStatus string `json:"item_status,omitempty"`

	//可以核销的起始时间
	TicketStartTime string `json:"ticket_start_time,omitempty"`
	//可以核销的结束时间
	TicketEndTime string `json:"ticket_end_time,omitempty"`
	//不可以核销的时间段
	UnTicketStartTimes string `json:"un_ticket_start_times,omitempty"`
	UnTicketEndTimes   string `json:"un_ticket_end_times,omitempty"`
	//不可核销的周
	UnTicketWeekday string `json:"un_ticket_weekday,omitempty"`
	SoldNum         int    `json:"sold_num"`
	ShopName        string `json:"shop_name,omitempty"`
}

type AliShopBean

type AliShopBean struct {
	Id                int    `json:"id,omitempty,string"`
	RequestId         string `json:"request_id,omitempty"`
	BizType           string `json:"biz_type,omitempty"`
	NotifyId          string `json:"notify_id,omitempty"`
	NotifyTime        string `json:"notify_time,omitempty"`
	NotifyType        string `json:"notify_type,omitempty"`
	ApplyId           string `json:"apply_id,omitempty"`
	AuditStatus       string `json:"audit_status,omitempty"`
	AuditDesc         string `json:"audit_desc,omitempty"`
	IsOnline          string `json:"is_online,omitempty"`
	IsShow            string `json:"is_show,omitempty"`
	Version           string `json:"version,omitempty"`
	SignType          string `json:"sign_type,omitempty"`
	Sign              string `json:"sign,omitempty"`
	ShopId            string `json:"shop_id,omitempty"`
	ResultCode        string `json:"result_code,omitempty"`
	ResultDesc        string `json:"result_desc,omitempty"`
	Qr_code           string `json:"qr_code,omitempty"`
	Processed_qr_code string `json:"processed_qr_code,omitempty"`
}

* 口碑门店详细数据.. 暂时先用着..也准备更换掉. 实在是没时间

type AlipayCategoryBean

type AlipayCategoryBean struct {
	Id    int    `json:"id,omitempty"`
	Code  string `json:"code,omitempty"`
	Name  string `json:"name,omitempty"`
	PAdC  string `json:"p_ad_c,omitempty"`
	Other string `json:"other,omitempty"`
	IsFan string `json:"is_fan,omitempty"`
}

type AlipayMchAuthBean

type AlipayMchAuthBean struct {
	Id                 int
	Appid              string
	AppPid             string
	AppName            string
	Scope              string
	AccessToken        string
	UserId             string
	AuthAppId          string
	ExpiresIn          int64
	ReExpiresIn        int64
	RefreshToken       string
	Avatar             string
	NickName           string
	Province           string
	City               string
	Gender             string
	UserTypeValue      string
	UserStatus         string
	FirmName           string
	RealName           string
	Email              string
	CertNo             string
	Phone              string
	Mobile             string
	IsCertified        string
	IsBankAuth         string
	IsIdAuth           string
	IsMobileAuth       string
	IsLicenceAuth      string
	IsStudentCertified string
	IsCertifyGradeA    string
	CertTypeValue      string
	DeliverPhone       string
	DeliverMobile      string
	DeliverFullname    string
	Area               string
	Address            string
	Zip                string
	AuthType           string
}

type BankCodeBean

type BankCodeBean struct {
	Id           int    `json:"id,omitempty"`
	BankBranchNo string `json:"bank_branch_no,omitempty"`
	BankName     string `json:"bank_name,omitempty"`
	BankBranch   string `json:"bank_branch,omitempty"`
	BankNo       string `json:"bank_no,omitempty"`
	BankNameAddr string `json:"bank_name_addr,omitempty"` //简称
}

type BestpayMch

type BestpayMch struct {
	MchCode   string `json:"mch_code,omitempty"`
	StoreCode string `json:"store_code,omitempty"`
	StoreId   int    `json:"store_id,omitempty,string"`
	DataKey   string `json:"data_key,omitempty"`
	PayKey    string `json:"pay_key,omitempty"`
	UserName  string `json:"user_name,omitempty"`
	Password  string `json:"password,omitempty"`
}

type BestpayNewOrder

type BestpayNewOrder struct {
	RequestTradeNo    string `json:"request_trade_no"`
	DownTradeNo       string `json:"down_trade_no"`
	OrderNo           string `json:"order_no"`
	PayAmount         int    `json:"pay_amount"`
	MerchantId        string `json:"merchant_id"`
	Attach            string `json:"attatch"`
	CreateTime        string `json:"create_time"`
	PayTime           string `json:"pay_time"`
	BankType          string `json:"bank_type"`
	PayChannelOrderNo string `json:"pay_channel_order_no"`
	SubAppId          string `json:"sub_app_id"`
	ChnCoupon         int    `json:"chn_coupon"`
	BuyerUserName     string `json:"buyer_user_name"`
	BuyerUserId       string `json:"buyer_user_id"`
	ActualPayAmount   int    `json:"actual_pay_amount"`
	ReceiptAmount     int    `json:"receipt_amount"`
	InvoiceAmount     int    `json:"invoice_amount"`
	PrePayId          string `json:"pre_pay_id"`
	PayInfo           string `json:"pay_info"`
	PayResult         string `json:"pay_result"`
	TradeType         string `json:"trade_type"`
	Subject           string `json:"subject"`
	GoodsDetail       string `json:"goods_detail"`
	GoodsTag          string `json:"goods_tag"`
	TerminalCode      string `json:"terminal_code"`
	OperId            string `json:"oper_id"`
	OrgCode           string `json:"org_code"`
	ShopCode          string `json:"shop_code"`
	StoreCode         string `json:"store_code"`
	BarCode           string `json:"bar_code"`
	StoreName         string `json:"store_name"`
	TradeChannel      string `json:"trade_channel"`
	CodeUrl           string `json:"code_url"`
	CancelTime        string `json:"cancel_time"`
	FrontUrl          string `json:"front_url"`
	BackNotifyUrl     string `json:"back_notify_url"`
	OpenId            string `json:"open_id"`
	SubOpenId         string `json:"sub_open_id"`
}

type BestpayNewRefundOrder

type BestpayNewRefundOrder struct {
	RequestTradeNo       string `json:"request_trade_no"`
	MerchantOrderNo      string `json:"merchant_order_no"`
	RefundTradeNo        string `json:"refund_trade_no"`
	RefundDownTradeNo    string `json:"refund_down_trade_no"`
	TotalAmount          int    `json:"total_amount"`
	RefundAmount         int    `json:"refund_amount"`
	TerminalCode         string `json:"terminal_code"`
	ChannelRefundTradeNo string `json:"channel_refund_trade_no"`
	TimeEnd              string `json:"time_end"`
	RefundTime           string `json:"refund_time"`
	TradeType            string `json:"trade_type"`
	MerchantId           string `json:"merchant_id"`
	StoreCode            string `json:"store_code"`
	ShopCode             string `json:"shop_code"`
	OrgCode              string `json:"org_code"`
	StoreName            string `json:"store_name"`
	TradeChannel         string `json:"trade_channel"`
	TradeStatus          string `json:"trade_status"`
	RefundResult         string `json:"refund_result"`
	RefundOperId         string `json:"refund_oper_id"`
	RefundReason         string `json:"refund_reason"`
	RefundTerminalCode   string `json:"refund_termianl_code"`
}

type BestpayOrder

type BestpayOrder struct {
	Id int `json:"id,omitempty,string"`
	//秒富订单号
	TradeNo string `json:"trade_no,omitempty"`
	//翼支付订单号
	UpTradeNo string `json:"up_trade_no,omitempty"`
	//下游订单号
	DownTradeNo string `json:"down_trade_no,omitempty"`
	//付款人账户
	BuyerId string `json:"buyer_id,omitempty"`
	//收款人账户
	MchAccountId string `json:"mch_account_id,omitempty"`
	//交易状态
	TradeStatus string `json:"trade_status,omitempty"`
	//交易时间
	TimeEnd string `json:"time_end,omitempty"`
	//翼支付商户号
	MchCode string `json:"mch_code,omitempty"`
	//翼支付子商户号
	SubMchCode string `json:"sub_mch_code,omitempty"`
	//秒富门店号
	StoreCode string `json:"store_code,omitempty"`
	//秒富商户号
	ShopCode string `json:"shop_code,omitempty"`
	//秒富机构号
	OrgCode string `json:"org_code,omitempty"`
	//翼支付支付码
	BarCode string `json:"bar_code,omitempty"`
	//订单金额
	TotalAmount int `json:"total_amount,omitempty,string"`
	//产品金额
	ProductAmount int `json:"product_amount,omitempty,string"`
	//附加金额
	AttachAmount int `json:"attach_amount,omitempty,string"`
	//优惠金额
	CouponAmount int `json:"coupon_amount,omitempty,string"`
	//商户营销优惠金额
	ScAmount int `json:"sc_amount,omitempty,string"`
	//订单标题 或商品名称
	Subject string `json:"subject,omitempty"`
	//秒富门店 id
	StoreId string `json:"store_id,omitempty"`
	//分账情况
	LedgerDetail string `json:"ledger_detail,omitempty"`
	//附加信息
	Attach string `json:"attach,omitempty"`
	//商户自定义终端号 50
	TerminalCode string `json:"terminal_code,omitempty"`
	//设备终端号 50
	DeviceTmNum string `json:"device_tm_num,omitempty"`
	//商户营业员 编号 64
	ErpNo string `json:"erp_no,omitempty"`
	//商品详情
	GoodsDetail string `json:"goods_detail,omitempty"`
	//批次号
	BatchNo int `json:"batch_no,omitempty,string"`
	//不可打折金额
	UndiscountableAmt string `json:"un_discountable_amt,omitempty,string"` //不打折金额....只是记录..没有实际意义
	//支付类型
	TradeType string `json:"trade_type,omitempty"` //支付类型....MICROPAY
	//交易门店名字
	StoreName string `json:"store_name,omitempty"`
	//备注
	ProductDesc string `json:"product_desc,omitempty"`
	//付款明细....不知道干啥用的
	PayChannel string `json:"pay_channel,omitempty"`
	//退款标志
	RefundFlag string `json:"refund_flag,omitempty"`
	//客户登录账户名
	CustomerId string `json:"customer_id,omitempty"`
	//交易手机号
	TransPhone string `json:"trans_phone,omitempty"`
	//秒富退款订单号
	RefundTradeNo string `json:"refund_trade_no,omitempty"`
	//交易时间
	RefundTime string `json:"refund_time,omitempty"`
	//交易日期
	TranDate string `json:"tran_date,omitempty"`
	//交易结果码
	ReturnCode string `json:"return_code,omitempty"`
	//交易结果描述
	ReturnInfo string `json:"return_info,omitempty"`
	//银行编码
	BankId string `json:"bank_id,omitempty"`
	//银行流水号: 如果通过银行卡支付可能返回
	BankTradeNo string `json:"bank_trade_no,omitempty"`
	//如果是充值.会返回充值的号码
	ProductNo string `json:"product_no,omitempty"`
	//翼支付平台的流水号?  不知道干啥用的
	UpReqTranSeq string `json:"up_req_tran_seq,omitempty"`
}

* 翼支付的订单数据

type BestpayOriginOrder

type BestpayOriginOrder struct {
	RequestTradeNo    string `json:"request_trade_no"`
	DownTradeNo       string `json:"down_trade_no"`
	PayAmount         int    `json:"pay_amount"`
	MerchantId        string `json:"merchant_id"`
	Attach            string `json:"attatch"`
	CreateTime        string `json:"create_time"`
	PayTime           string `json:"pay_time"`
	BankType          string `json:"bank_type"`
	PayChannelOrderNo string `json:"pay_channel_order_no"`
	SubAppId          string `json:"sub_app_id"`
	ChnCoupon         int    `json:"chn_coupon"`
	BuyerUserName     string `json:"buyer_user_name"`
	BuyerUserId       string `json:"buyer_user_id"`
	ActualPayAmount   int    `json:"actual_pay_amount"`
	ReceiptAmount     int    `json:"receipt_amount"`
	PayResult         string `json:"pay_result"`
	TradeType         string `json:"trade_type"`
	Subject           string `json:"subject"`
	GoodsDetail       string `json:"goods_detail"`
	GoodsTag          string `json:"goods_tag"`
	TerminalCode      string `json:"terminal_code"`
	OperId            string `json:"oper_id"`
	OrgCode           string `json:"org_code"`
	ShopCode          string `json:"shop_code"`
	StoreCode         string `json:"store_code"`
	BarCode           string `json:"bar_code"`
	StoreName         string `json:"store_name"`
	TradeChannel      string `json:"trade_channel"`
	CancelTime        string `json:"cancel_time"`
}

type BestpayOriginRefundOrder

type BestpayOriginRefundOrder struct {
	RequestTradeNo       string `json:"request_trade_no"`
	RefundTradeNo        string `json:"refund_trade_no"`
	RefundDownTradeNo    string `json:"refund_down_trade_no"`
	TotalAmount          int    `json:"total_amount"`
	RefundAmount         int    `json:"refund_amount"`
	TerminalCode         string `json:"terminal_code"`
	ChannelRefundTradeNo string `json:"channel_refund_trade_no"`
	TimeEnd              string `json:"time_end"`
	RefundTime           string `json:"refund_time"`
	TradeType            string `json:"trade_type"`
	MerchantId           string `json:"merchant_id"`
	StoreCode            string `json:"store_code"`
	ShopCode             string `json:"shop_code"`
	OrgCode              string `json:"org_code"`
	StoreName            string `json:"store_name"`
	TradeChannel         string `json:"trade_channel"`
	TradeStatus          string `json:"trade_status"`
	RefundResult         string `json:"refund_result"`
	RefundOperId         string `json:"refund_oper_id"`
	RefundReason         string `json:"refund_reason"`
	RefundTerminalCode   string `json:"refund_termianl_code"`
}

type CardlinkDevice

type CardlinkDevice struct {
	Id                int    `json:"id"`
	MchCode           string `json:"mch_code"`
	StoreCode         string `json:"store_code"`
	TerminalCode      string `json:"terminal_code"`
	UnionTerminalCode string `json:"union_terminal_code"`
	Created           string `json:"created"`
}

type CardlinkMchBean

type CardlinkMchBean struct {
	Id        int    `json:"id,string"`
	MchCode   string `json:"mch_code"`
	StoreCode string `json:"store_code"`
	ShopCode  string `json:"shop_code"`
	OrgCode   string `json:"org_code"`
}

type CibOrder

type CibOrder struct {
	Id               int    `json:"id,omitempty,string"`
	PayChn           string `json:"pay_chn,omitempty,"`
	MchId            string `json:"mch_id,omitempty"`
	DeviceInfo       string `json:"device_info,omitempty"`
	Body             string `json:"body,omitempty"`
	GoodsDetail      string `json:"goods_detail,omitempty"`
	NonceStr         string `json:"nonce_str,omitempty"`
	OpenId           string `json:"open_id,omitempty"`
	SubOpenid        string `json:"sub_openid,omitempty"`
	TradeType        string `json:"trade_type,omitempty"`
	TradeState       string `json:"trade_state,omitempty"`
	IsSubscribe      string `json:"is_subscribe,omitempty"`
	PayInfo          string `json:"pay_info,omitempty"`
	TransactionId    string `json:"transaction_id,omitempty"`
	OutTransactionId string `json:"out_transaction_id,omitempty"`
	SubIsSubscribe   int    `json:"sub_is_subscribe,string,omitempty"`
	SubAppid         string `json:"sub_appid,omitempty"`
	OutTradeNo       string `json:"out_trade_no,omitempty"`
	DownTradeNo      string `json:"down_trade_no,omitempty"`
	TotalFee         int    `json:"total_fee,string,omitempty"`
	CouponFee        int    `json:"coupon_fee,string,omitempty"` //现金券金额
	ReciptFee        int    `json:"recipt_fee,string,omitempty"` //实收
	FundBillList     string `json:"fund_bill_list,omitempty"`
	FeeType          string `json:"fee_type,omitempty"`
	Attach           string `json:"attach,omitempty"`
	BankType         string `json:"bank_type,omitempty"`
	BankBillno       string `json:"bank_billno,omitempty"`
	TimeEnd          string `json:"time_end,omitempty"`
	MchCreateIp      string `json:"mch_create_ip,omitempty"`
	OrgCode          string `json:"org_code,omitempty"`
	ShopCode         string `json:"shop_code,omitempty"`
	StoreCode        string `json:"store_code,omitempty"`
	OpUserId         string `json:"op_user_id,omitempty"`
	Appid            string `json:"appid,omitempty"`
	OutRefundNo      string `json:"out_refund_no,omitempty"`            //退款订单号
	RefundId         string `json:"refund_id,omitempty"`                //平台退款订单号
	RefundOperId     string `json:"refund_oper_id,omitempty"`           //退款额操作员id
	RefundReason     string `json:"refund_reason,omitempty"`            //退款原因
	RefundCount      string `json:"refund_count,omitempty"`             //退款次数
	RefundFee        int    `json:"refund_fee,string,omitempty"`        //退款金额
	CouponRefundFee  int    `json:"coupon_refund_fee,string,omitempty"` //现金券退款金额
	RefundChannel    string `json:"refund_channel,omitempty"`           //退款渠道
	RefundTime       string `json:"refund_time,omitempty"`
	RefundDeviceInfo string `json:"refund_device_info,omitempty"` //退款设备号
	RefundStatus     string `json:"refund_status,omitempty"`      //退款状态
	BuyerUserId      string `json:"buyer_user_id,omitempty"`
	BuyerLogonId     string `json:"buyer_logon_id,omitempty"`
}

type CityCodeBean

type CityCodeBean struct {
	Id     int    `json:"id,omitempty"`
	AdCode string `json:"ad_code,omitempty"`
	Name   string `json:"name,omitempty"`
	PAdC   string `json:"p_ad_c,omitempty"`
}

type CloudUnionMchBean

type CloudUnionMchBean struct {
	Id        int    `json:"id,string"`
	MchCode   string `json:"mch_code"`
	StoreCode string `json:"store_code"`
	ShopCode  string `json:"shop_code"`
	OrgCode   string `json:"org_code"`
	MchKey    string `json:"mch_key"`
	Status    string `json:"status"`
}

type CloudUnionOrder

type CloudUnionOrder struct {
	RequestTradeNo    string `json:"request_trade_no"`
	DownTradeNo       string `json:"down_trade_no"`
	OrderNo           string `json:"order_no"`
	PayAmount         int    `json:"pay_amount"`
	MerchantId        string `json:"merchant_id"`
	Attach            string `json:"attatch"`
	CreateTime        string `json:"create_time"`
	PayTime           string `json:"pay_time"`
	BankType          string `json:"bank_type"`
	PayChannelOrderNo string `json:"pay_channel_order_no"`
	SubAppId          string `json:"sub_app_id"`
	ChnCoupon         int    `json:"chn_coupon"`
	BuyerUserName     string `json:"buyer_user_name"`
	BuyerUserId       string `json:"buyer_user_id"`
	ActualPayAmount   int    `json:"actual_pay_amount"`
	ReceiptAmount     int    `json:"receipt_amount"`
	InvoiceAmount     int    `json:"invoice_amount"`
	PrePayId          string `json:"pre_pay_id"`
	PayInfo           string `json:"pay_info"`
	PayResult         string `json:"pay_result"`
	TradeType         string `json:"trade_type"`
	Subject           string `json:"subject"`
	GoodsDetail       string `json:"goods_detail"`
	GoodsTag          string `json:"goods_tag"`
	TerminalCode      string `json:"terminal_code"`
	OperId            string `json:"oper_id"`
	OrgCode           string `json:"org_code"`
	ShopCode          string `json:"shop_code"`
	StoreCode         string `json:"store_code"`
	BarCode           string `json:"bar_code"`
	StoreName         string `json:"store_name"`
	TradeChannel      string `json:"trade_channel"`
	CodeUrl           string `json:"code_url"`
	CancelTime        string `json:"cancel_time"`
	FrontUrl          string `json:"front_url"`
	BackNotifyUrl     string `json:"back_notify_url"`
	OpenId            string `json:"open_id"`
	SubOpenId         string `json:"sub_open_id"`
}

type CloudUnionRefundOrder

type CloudUnionRefundOrder struct {
	RequestTradeNo       string `json:"request_trade_no"`
	MerchantOrderNo      string `json:"merchant_order_no"`
	RefundTradeNo        string `json:"refund_trade_no"`
	RefundDownTradeNo    string `json:"refund_down_trade_no"`
	TotalAmount          int    `json:"total_amount"`
	RefundAmount         int    `json:"refund_amount"`
	TerminalCode         string `json:"terminal_code"`
	ChannelRefundTradeNo string `json:"channel_refund_trade_no"`
	TimeEnd              string `json:"time_end"`
	RefundTime           string `json:"refund_time"`
	TradeType            string `json:"trade_type"`
	MerchantId           string `json:"merchant_id"`
	StoreCode            string `json:"store_code"`
	ShopCode             string `json:"shop_code"`
	OrgCode              string `json:"org_code"`
	StoreName            string `json:"store_name"`
	TradeChannel         string `json:"trade_channel"`
	TradeStatus          string `json:"trade_status"`
	RefundResult         string `json:"refund_result"`
	RefundOperId         string `json:"refund_oper_id"`
	RefundReason         string `json:"refund_reason"`
	RefundTerminalCode   string `json:"refund_termianl_code"`
	BatchNo              int    `json:"batch_no"`
}

type CmbPayMch

type CmbPayMch struct {
	StoreCode    string `json:"store_code,omitempty"`
	CmbMchId     string `json:"cmb_mch_id,omitempty"`
	CmbStoreId   string `json:"cmb_mch_store_id,omitempty"`
	BankAppId    string `json:"bank_app_id,omitempty"`
	Status       int    `json:"status"`
	StatusMsg    string `json:"status_msg,omitempty"`
	AliStatus    int    `json:"ali_status"`
	AliStatusMsg string `json:"ali_status_msg,omitempty"`
	WxStatus     int    `json:"wx_status"`
	WxStatusMsg  string `json:"wx_status_msg,omitempty"`
	WxConfig     bool   `json:"wx_config"`
}

type CmbpayOrder

type CmbpayOrder struct {
	Id                  int    `json:"id,omitempty,string"`
	OutTradeNo          string `json:"out_trade_no,omitempty"`
	CmbOrder            string `json:"cmb_order,omitempty"`
	DownTradeNo         string `json:"down_trade_no,omitempty"`
	TotalAmount         int    `json:"total_amount"`
	BuyerUserName       string `json:"buyer_user_name,omitempty"`
	BuyerUserId         string `json:"buyer_user_id,omitempty"`
	ActualPayAmount     int    `json:"actual_pay_amount"`
	ReceiptAmount       int    `json:"receipt_amount"`
	PayFee              int    `json:"pay_fee"`
	ChannelTradeNo      string `json:"channel_trade_no,omitempty"`
	RequestTradeNo      string `json:"request_trade_no,omitempty"`
	PayTime             string `json:"pay_time,omitempty"`
	CreateTime          string `json:"create_time,omitempty"`
	PayProductNo        string `json:"pay_product_no,omitempty"`
	DiscountGoodsDetail string `json:"discount_goods_detail,omitempty"`
	VoucherDetailList   string `json:"voucher_detail_list,omitempty"`
	FundBillList        string `json:"fund_bill_list,omitempty"`
	BankType            string `json:"bank_type,omitempty"`
	TradeStatus         string `json:"trade_status,omitempty"`
	CmbMchId            string `json:"cmb_mch_id,omitempty"`
	StoreCode           string `json:"store_code,omitempty"`
	ShopCode            string `json:"shop_code,omitempty"`
	OrgCode             string `json:"org_code,omitempty"`
	BarCode             string `json:"bar_code,omitempty"`
	Subject             string `json:"subject,omitempty"`
	Attach              string `json:"attach,omitempty"`
	TerminalCode        string `json:"terminal_code,omitempty"`
	OperId              string `json:"oper_id,omitempty"`
	GoodsDetail         string `json:"goods_detail,omitempty"`
	BatchNo             int    `json:"batch_no,omitempty"`
	UndiscountableAmt   string `json:"undiscount_amount,omitempty"`
	TradeType           string `json:"trade_type,omitempty"`
	StoreName           string `json:"store_name,omitempty"`
	TradeChannel        string `json:"trade_channel,omitempty"`
	CodeUrl             string `json:"code_url,omitempty"`
	CancelTime          string `json:"cancel_time,omitempty"`
	IsRollBack          bool   `json:"is_roll_back"`
}

type CmbpayRefundOrder

type CmbpayRefundOrder struct {
	Id                   int    `json:"id,omitempty,string"`
	OutTradeNo           string `json:"out_trade_no,omitempty"`
	CmbOrder             string `json:"cmb_order,omitempty"`
	RefundTradeNo        string `json:"refund_trade_no,omitempty"`
	ChannelRefundTradeNo string `json:"channel_refund_trade_no,omitempty"`
	CmbRefundNo          string `json:"cmb_refund_no,omitempty"`
	TotalAmount          int    `json:"total_amount"`
	RefundAmount         int    `json:"refund_amount"`
	RealRefundAmount     int    `json:"real_refund_amount"`
	TimeEnd              string `json:"time_end,omitempty"`
	RefundTime           string `json:"refund_time,omitempty"`
	CmbMchId             string `json:"cmb_mch_id,omitempty"`
	StoreCode            string `json:"store_code,omitempty"`
	ShopCode             string `json:"shop_code,omitempty"`
	OrgCode              string `json:"org_code,omitempty"`
	TradeType            string `json:"trade_type,omitempty"`
	StoreName            string `json:"store_name,omitempty"`
	TradeChannel         string `json:"trade_channel,omitempty"`
	TradeStatus          string `json:"trade_status,omitempty"`
	RefundResult         string `json:"refund_result,omitempty"`
	RefundReason         string `json:"refund_reason,omitempty"`
	RefundOperId         string `json:"refund_oper_id,omitempty"`
	TerminalCode         string `json:"terminal_code,omitempty"`
}

* 招行支付的订单数据

type CouponPolicyItemBean

type CouponPolicyItemBean struct {
	Id                  int    `json:"id"`                     //自增型主键ID
	MainGoodsId         int    `json:"main_goods_id"`          //参与优惠策略的id
	MainGoodsName       string `json:"main_goods_name"`        //参与优惠策略的商品name
	CouponGoodsId       int    `json:"coupon_goods_id"`        //优惠商品的id
	CouponGoodsName     string `json:"coupon_goods_name"`      //优惠商品的name
	CouponGoodsOldPrice string `json:"coupon_goods_old_price"` //优惠的原价
	CouponGoodsNowPrice string `json:"coupon_goods_now_price"` //优惠的现价
	CouponGoodsVipPrice string `json:"coupon_goods_vip_price"` //会员价
}

商品优惠策略

type EmployeeBean

type EmployeeBean struct {
	Id       int    `json:"id"`        //自增型主键ID
	Name     string `json:"name"`      //姓名
	NickName string `json:"nick_name"` //昵称
	SalesTel string `json:"sales_tel"` //业务员手机号
	Postal   string `json:"postal"`    //邮编
	Address  string `json:"address"`   //详细地址
	HeadImg  string `json:"head_img"`  //头像地址
	Sex      string `json:"sex"`       //性别
	Age      string `json:"age"`       //年龄:3位数
	Birthday string `json:"birthday"`  //生日:时间格式yyyy-MM-dd
	Company  string `json:"company"`   //公司名称
	School   string `json:"school"`    //学校名称

	Department int    `json:"department"` //所属部门 	0:总部  1门店
	StoreId    int    `json:"store_id"`   //所属门店Id
	StoreName  string `json:"store_name"` //所属门店
	ShopId     int    `json:"shop_id"`    //所属商户Id
	ShopName   string `json:"shop_name"`  //所属商户
	SysTag     string `json:"sys_tag"`    //区分系统Tag

	GroupId      int    `json:"group_id"`      //员工是属于哪个用户组
	GroupName    string `json:"group_name"`    //员工用户组名称
	MaxCoupon    string `json:"max_coupon"`    //最大签单优惠
	MinDiscounts int    `json:"min_discounts"` //最低能打几折
	OnJob        string `json:"on_job"`        //是否在职  Y、N
	OnWork       string `json:"on_work"`       //工作状态 Y-工作、N-空闲
	Code         string `json:"code"`          //员工编码

	StartTime string `json:"start_time"` //上班时间
	EndTime   string `json:"end_time"`   //下班时间
	IsNext    bool   `json:"is_next"`    //是否隔天
}

type EmployeeWorkBean

type EmployeeWorkBean struct {
	Id          int    `json:"id"` //自增型主键ID
	TradeNo     string `json:"trade_no"`
	Eid         int    `json:"eid"`
	Hand        int    `json:"hand"`
	GoodsId     int    `json:"goods_id"`
	GoodsName   string `json:"goods_name"`
	StartTime   string `json:"start_time"`   //项目开始服务时间
	GoodsTime   string `json:"goods_time"`   //项目默认服务时间
	TotalPrice  string `json:"total_price"`  //总消费金额
	RewardPrice string `json:"reward_price"` //返佣金额
	ShopCode    string `json:"shop_code"`    //商户code
	StoreCode   string `json:"store_code"`   //门店code
	Times       int    `json:"times"`        //次数
}

员工工作状态表

type FileUploadBean

type FileUploadBean struct {
	Response
	MD5 string `json:"md5"`
	URL string `json:"url"`
}

type FuiouMchBean

type FuiouMchBean struct {
	Id        int    `json:"id,string"`
	MchCode   string `json:"mch_code"`
	StoreCode string `json:"store_code"`
	ShopCode  string `json:"shop_code"`
	OrgCode   string `json:"org_code"`
}

type FuiouPayOrder

type FuiouPayOrder struct {
	RequestTradeNo    string `json:"request_trade_no"`
	DownTradeNo       string `json:"down_trade_no"`
	OrderNo           string `json:"order_no"`
	PayAmount         int    `json:"pay_amount"`
	MerchantId        string `json:"merchant_id"`
	Attach            string `json:"attatch"`
	CreateTime        string `json:"create_time"`
	PayTime           string `json:"pay_time"`
	BankType          string `json:"bank_type"`
	PayChannelOrderNo string `json:"pay_channel_order_no"`
	SubAppId          string `json:"sub_app_id"`
	ChnCoupon         int    `json:"chn_coupon"`
	BuyerUserName     string `json:"buyer_user_name"`
	BuyerUserId       string `json:"buyer_user_id"`
	ActualPayAmount   int    `json:"actual_pay_amount"`
	ReceiptAmount     int    `json:"receipt_amount"`
	InvoiceAmount     int    `json:"invoice_amount"`
	PrePayId          string `json:"pre_pay_id"`
	PayInfo           string `json:"pay_info"`
	PayResult         string `json:"pay_result"`
	TradeType         string `json:"trade_type"`
	Subject           string `json:"subject"`
	GoodsDetail       string `json:"goods_detail"`
	GoodsTag          string `json:"goods_tag"`
	TerminalCode      string `json:"terminal_code"`
	OperId            string `json:"oper_id"`
	OrgCode           string `json:"org_code"`
	ShopCode          string `json:"shop_code"`
	StoreCode         string `json:"store_code"`
	BarCode           string `json:"bar_code"`
	StoreName         string `json:"store_name"`
	TradeChannel      string `json:"trade_channel"`
	CodeUrl           string `json:"code_url"`
	CancelTime        string `json:"cancel_time"`
	FrontUrl          string `json:"front_url"`
	BackNotifyUrl     string `json:"back_notify_url"`
	OpenId            string `json:"open_id"`
	SubOpenId         string `json:"sub_open_id"`
}

type FuiouPayRefundOrder

type FuiouPayRefundOrder struct {
	RequestTradeNo       string `json:"request_trade_no"`
	RefundTradeNo        string `json:"refund_trade_no"`
	RefundDownTradeNo    string `json:"refund_down_trade_no"`
	TotalAmount          int    `json:"total_amount"`
	RefundAmount         int    `json:"refund_amount"`
	TerminalCode         string `json:"terminal_code"`
	ChannelRefundTradeNo string `json:"channel_refund_trade_no"`
	TimeEnd              string `json:"time_end"`
	RefundTime           string `json:"refund_time"`
	TradeType            string `json:"trade_type"`
	MerchantId           string `json:"merchant_id"`
	StoreCode            string `json:"store_code"`
	ShopCode             string `json:"shop_code"`
	OrgCode              string `json:"org_code"`
	StoreName            string `json:"store_name"`
	TradeChannel         string `json:"trade_channel"`
	TradeStatus          string `json:"trade_status"`
	RefundResult         string `json:"refund_result"`
	RefundOperId         string `json:"refund_oper_id"`
	RefundReason         string `json:"refund_reason"`
	RefundTerminalCode   string `json:"refund_termianl_code"`
	BatchNo              int    `json:"batch_no"`
}

type GoodsItemBean

type GoodsItemBean struct {
	Id           int    `json:"id,omitempty,string"`
	GoodsCode    string `json:"goods_code,omitempty"`
	GoodsName    string `json:"goods_name,omitempty"`
	ImgUrl       string `json:"img_url,omitempty"`
	OldPrice     string `json:"old_price,omitempty"`
	NowPrice     string `json:"now_price,omitempty"`
	TypeId       int    `json:"type_id,omitempty,string"`
	TypeName     string `json:"type_name,omitempty"`
	SizeName     string `json:"size_name,omitempty"`
	StoreCode    string `json:"store_code,omitempty"`
	StoreName    string `json:"store_name,omitempty"`
	ShopCode     string `json:"shop_code,omitempty"`
	ShopName     string `json:"shop_name,omitempty"`
	OrderTag     int    `json:"order_tag,omitempty"`
	UnderState   string `json:"under_state,omitempty"`
	TodayUnsold  int    `json:"today_unsold"`
	TodaySold    int    `json:"today_sold"`
	DefaultStock int    `json:"default_stock"`
	SysTag       string `json:"sys_tag,omitempty"`
	Desc         string `json:"desc,omitempty"`

	Discounts    string `json:"discounts"` //是否参与打折信息  Y、N
	SizeId       int    `json:"size_id"`
	Coupon       string `json:"coupon"`        //是否参与优惠  Y、N
	VipPrice     string `json:"vip_price"`     //会员价格
	Service      string `json:"service"`       //是否需要技师服务  Y、N
	ServiceTime  int    `json:"service_time"`  //服务时长,默认为60分钟,以秒来保存
	RewardPrice  string `json:"reward_price"`  //技师抽成
	EmployeeId   int    `json:"employee_id"`   //技师id
	EmployeeName string `json:"employee_name"` //技师名字
}

type GoodsItemTypeBean

type GoodsItemTypeBean struct {
	Id        int    `json:"id,omitempty,string"`
	TypeName  string `json:"type_name,omitempty"`
	ShopCode  string `json:"shop_code,omitempty"`
	PId       int    `json:"p_id,omitempty"`
	Level     int    `json:"level,omitempty"`
	Discounts string `json:"discounts"`
	OrderTag  int    `json:"order_tag"`
	SysTag    string `json:"sys_tag,omitempty"`
}

type GoodsRemarkBean

type GoodsRemarkBean struct {
	Id        int    `json:"id,omitempty,string"`
	Name      string `json:"name,omitempty"`
	StoreCode string `json:"store_code,omitempty"`
	OrderTag  int    `json:"order_tag"`
	SysTag    string `json:"sys_tag,omitempty"`
}

type IcbcPayMch

type IcbcPayMch struct {
	MchCode   string `json:"mch_code,omitempty"`
	MchECode  string `json:"mch_e_code,omitempty"`
	Appid     string `json:"app_id,omitempty"`
	StoreCode string `json:"store_code,omitempty"`
	StoreId   int    `json:"store_id,omitempty,string"`
}

type IcbcpayOrder

type IcbcpayOrder struct {
	Id                int    `json:"id,omitempty,string"`
	TradeNo           string `json:"trade_no,omitempty"`
	UpTradeNo         string `json:"up_trade_no,omitempty"`
	DownTradeNo       string `json:"down_trade_no,omitempty"`
	TradeStatus       string `json:"trade_status,omitempty"`
	BuyerId           string `json:"buyer_id,omitempty"`
	BankCardNo        string `json:"bank_card_no,omitempty"`
	TotalAmount       int    `json:"total_amount,omitempty,string"`
	PointAmount       int    `json:"point_amount,omitempty,string"`
	EcouponAmount     int    `json:"ecoupon_amount,omitempty,string"`
	MerDiscAmt        int    `json:"mer_disc_amt,omitempty,string"`
	CouponAmt         int    `json:"coupon_amt,omitempty,string"`
	BankDiscAmt       int    `json:"bank_disc_amt,omitempty,string"`
	PaymentAmt        int    `json:"payment_amt,omitempty,string"`
	TotalDiscAmt      int    `json:"total_disc_amt,omitempty,string"`
	UpMsgId           string `json:"up_msg_id,omitempty"`
	TimeEnd           string `json:"time_end,omitempty"`
	PayTime           string `json:"pay_time,omitempty"`
	MchCode           string `json:"mch_code,omitempty"`
	MchECode          string `json:"mch_e_code,omitempty"`
	StoreCode         string `json:"store_code,omitempty"`
	ShopCode          string `json:"shop_code,omitempty"`
	OrgCode           string `json:"org_code,omitempty"`
	BarCode           string `json:"bar_code,omitempty"`
	Subject           string `json:"subject,omitempty"`
	Attach            string `json:"attach,omitempty"`
	TerminalCode      string `json:"terminal_code,omitempty"`
	OperId            string `json:"oper_id,omitempty"`
	GoodsDetail       string `json:"goods_detail,omitempty"`
	BatchNo           int    `json:"batch_no,omitempty"`
	UndiscountableAmt string `json:"undiscount_amount,omitempty"`
	TradeType         string `json:"trade_type,omitempty"`
	StoreName         string `json:"store_name,omitempty"`
	TradeChannel      string `json:"trade_channel,omitempty"`
	CodeUrl           string `json:"code_url,omitempty"`
	CancelTime        string `json:"cancel_time,omitempty"`
	IsRollBack        bool   `json:"is_roll_back"`
	BankType          string `json:"bank_type,omitempty"`
	OriginTradeNo     string `json:"origin_trade_no,omitempty"`
}

type IcbcpayRefundOrder

type IcbcpayRefundOrder struct {
	Id                 int    `json:"id,omitempty,string"`
	TradeNo            string `json:"trade_no,omitempty"`
	UpTradeNo          string `json:"up_trade_no,omitempty"`
	BankCardNo         string `json:"bank_card_no,omitempty"`
	RefundTradeNo      string `json:"refund_trade_no,omitempty"`
	TotalAmount        int    `json:"total_amount,omitempty,string"`
	RefundAmount       int    `json:"refund_amount,omitempty,string"`
	RealRefundAmount   int    `json:"real_refund_amount,omitempty,string"`
	RefundPoint        int    `json:"refund_point,omitempty,string"`
	RefundEcoupon      int    `json:"refund_ecoupon,omitempty,string"`
	RefundMerDiscAmt   int    `json:"refund_mer_disc_amt,omitempty,string"`
	RefundTotalDiscAmt int    `json:"refund_total_disc_amt,omitempty,string"`
	UpMsgId            string `json:"up_msg_id,omitempty"`
	TimeEnd            string `json:"time_end,omitempty"`
	MchCode            string `json:"mch_code,omitempty"`
	MchECode           string `json:"mch_e_code,omitempty"`
	StoreCode          string `json:"store_code,omitempty"`
	ShopCode           string `json:"shop_code,omitempty"`
	OrgCode            string `json:"org_code,omitempty"`
	TradeType          string `json:"trade_type,omitempty"`
	StoreName          string `json:"store_name,omitempty"`
	TradeChannel       string `json:"trade_channel,omitempty"`
	TradeStatus        string `json:"trade_status,omitempty"`
	RefundResult       string `json:"refund_result,omitempty"`
	RefundReason       string `json:"refund_reason,omitempty"`
	RefundOperId       string `json:"refund_oper_id,omitempty"`
	TerminalCode       string `json:"terminal_code,omitempty"`
	RefundTime         string `json:"refund_time,omitempty"`
}

* 工行支付的订单数据

type IrichPayMch

type IrichPayMch struct {
	StoreCode string `json:"store_code,omitempty"`
	MchId     string `json:"mch_id,omitempty"`
	Status    string `json:"status"`
	QrCode    string `json:"qr_code"`
}

type IrichpayOrder

type IrichpayOrder struct {
	Id           int    `json:"id,omitempty,string"`
	OutTradeNo   string `json:"out_trade_no,omitempty"`
	UpTradeNo    string `json:"up_trade_no,omitempty"`
	DownTradeNo  string `json:"down_trade_no,omitempty"`
	TotalAmount  int    `json:"total_amount"`
	CreateTime   string `json:"create_time,omitempty"`
	TradeStatus  string `json:"trade_status,omitempty"`
	MchId        string `json:"mch_id,omitempty"`
	StoreCode    string `json:"store_code,omitempty"`
	ShopCode     string `json:"shop_code,omitempty"`
	OrgCode      string `json:"org_code,omitempty"`
	BarCode      string `json:"bar_code,omitempty"`
	Subject      string `json:"subject,omitempty"`
	Attach       string `json:"attach,omitempty"`
	TerminalCode string `json:"terminal_code,omitempty"`
	OperId       string `json:"oper_id,omitempty"`
	TradeType    string `json:"trade_type,omitempty"`
	StoreName    string `json:"store_name,omitempty"`
	TradeChannel string `json:"trade_channel,omitempty"`
}

type IrichpayRefundOrder

type IrichpayRefundOrder struct {
	Id               int    `json:"id,omitempty,string"`
	OutTradeNo       string `json:"out_trade_no,omitempty"`
	UpTradeNo        string `json:"up_trade_no,omitempty"`
	RefundTradeNo    string `json:"refund_trade_no,omitempty"`
	TotalAmount      int    `json:"total_amount"`
	RefundAmount     int    `json:"refund_amount"`
	RealRefundAmount int    `json:"real_refund_amount"`
	RefundTime       string `json:"refund_time,omitempty"`
	MchId            string `json:"mch_id,omitempty"`
	StoreCode        string `json:"store_code,omitempty"`
	ShopCode         string `json:"shop_code,omitempty"`
	OrgCode          string `json:"org_code,omitempty"`
	TradeType        string `json:"trade_type,omitempty"`
	StoreName        string `json:"store_name,omitempty"`
	TradeChannel     string `json:"trade_channel,omitempty"`
	TradeStatus      string `json:"trade_status,omitempty"`
	RefundResult     string `json:"refund_result,omitempty"`
	RefundReason     string `json:"refund_reason,omitempty"`
	RefundOperId     string `json:"refund_oper_id,omitempty"`
	TerminalCode     string `json:"terminal_code,omitempty"`
}

* 招行支付的订单数据

type JdPayOrder

type JdPayOrder struct {
	RequestTradeNo    string `json:"request_trade_no"`
	DownTradeNo       string `json:"down_trade_no"`
	OrderNo           string `json:"order_no"`
	PayAmount         int    `json:"pay_amount"`
	MerchantId        string `json:"merchant_id"`
	Attach            string `json:"attatch"`
	CreateTime        string `json:"create_time"`
	PayTime           string `json:"pay_time"`
	BankType          string `json:"bank_type"`
	PayChannelOrderNo string `json:"pay_channel_order_no"`
	SubAppId          string `json:"sub_app_id"`
	ChnCoupon         int    `json:"chn_coupon"`
	BuyerUserName     string `json:"buyer_user_name"`
	BuyerUserId       string `json:"buyer_user_id"`
	ActualPayAmount   int    `json:"actual_pay_amount"`
	ReceiptAmount     int    `json:"receipt_amount"`
	InvoiceAmount     int    `json:"invoice_amount"`
	PrePayId          string `json:"pre_pay_id"`
	PayInfo           string `json:"pay_info"`
	PayResult         string `json:"pay_result"`
	TradeType         string `json:"trade_type"`
	Subject           string `json:"subject"`
	GoodsDetail       string `json:"goods_detail"`
	GoodsTag          string `json:"goods_tag"`
	TerminalCode      string `json:"terminal_code"`
	OperId            string `json:"oper_id"`
	OrgCode           string `json:"org_code"`
	ShopCode          string `json:"shop_code"`
	StoreCode         string `json:"store_code"`
	BarCode           string `json:"bar_code"`
	StoreName         string `json:"store_name"`
	TradeChannel      string `json:"trade_channel"`
	CodeUrl           string `json:"code_url"`
	CancelTime        string `json:"cancel_time"`
	FrontUrl          string `json:"front_url"`
	BackNotifyUrl     string `json:"back_notify_url"`
	OpenId            string `json:"open_id"`
	SubOpenId         string `json:"sub_open_id"`
}

type JdPayRefundOrder

type JdPayRefundOrder struct {
	RequestTradeNo       string `json:"request_trade_no"`
	MerchantOrderNo      string `json:"merchant_order_no"`
	RefundTradeNo        string `json:"refund_trade_no"`
	RefundDownTradeNo    string `json:"refund_down_trade_no"`
	TotalAmount          int    `json:"total_amount"`
	RefundAmount         int    `json:"refund_amount"`
	TerminalCode         string `json:"terminal_code"`
	ChannelRefundTradeNo string `json:"channel_refund_trade_no"`
	TimeEnd              string `json:"time_end"`
	RefundTime           string `json:"refund_time"`
	TradeType            string `json:"trade_type"`
	MerchantId           string `json:"merchant_id"`
	StoreCode            string `json:"store_code"`
	ShopCode             string `json:"shop_code"`
	OrgCode              string `json:"org_code"`
	StoreName            string `json:"store_name"`
	TradeChannel         string `json:"trade_channel"`
	TradeStatus          string `json:"trade_status"`
	RefundResult         string `json:"refund_result"`
	RefundOperId         string `json:"refund_oper_id"`
	RefundReason         string `json:"refund_reason"`
	RefundTerminalCode   string `json:"refund_termianl_code"`
	BatchNo              int    `json:"batch_no"`
}

type JsPayBean

type JsPayBean struct {
	Order     string
	AppId     string
	NonceStr  string
	Package   string
	SignType  string
	TimeStamp int64
	PaySign   string
}

type KoubeiItemOrderBean

type KoubeiItemOrderBean struct {
	Id         int    `json:"id"`
	UserId     string `json:"user_id"`
	Amount     string `json:"amount"`
	Status     string `json:"status"`
	OutBizNo   string `json:"out_biz_no"`
	OrderNo    string `json:"order_no"`
	TransNo    string `json:"trans_no"`
	NotifyTime string `json:"notify_time"`
	Memo       string `json:"memo"`
	ItemId     string `json:"item_id"`
	VoucherId  string `json:"voucher_id"`
	ItemName   string `json:"item_name"`
	ShopName   string `json:"shop_name"`
	ShopId     string `json:"shop_id"` //口碑门店号
}

type KoubeiItemOrderStats

type KoubeiItemOrderStats struct {
	SettleAmount string `json:"settle_amount"`
	SettleCount  string `json:"settle_count"`
	RefundAmount string `json:"refund_amount"`
	RefundCount  string `json:"refund_count"`
	Status       string `json:"status,omitempty"`
	ItemId       string `json:"item_id,omitempty"`
	ItemName     string `json:"item_name,omitempty"`
	Day          string `json:"day,omitempty"`
}

type KoubeiItemOrderStatsNew

type KoubeiItemOrderStatsNew struct {
	ReceiptAmount string `json:"receipt_amount"`
	ReceiptCount  string `json:"receipt_count"`
	CurrentAmount string `json:"current_amount"`
	Status        string `json:"status,omitempty"`
	ItemId        string `json:"item_id,omitempty"`
	ItemName      string `json:"item_name,omitempty"`
	Day           string `json:"day,omitempty"`
}

type KoubeiTicketcodeBean

type KoubeiTicketcodeBean struct {
	Id                        int    `json:"id"`
	ShopId                    string `json:"shop_id"`
	ShopName                  string `json:"shop_name"`
	StoreCode                 string `json:"store_code"`
	ShopCode                  string `json:"shop_code"`
	OrgCode                   string `json:"org_code"`
	DevId                     string `json:"dev_id"`
	TicketCode                string `json:"ticket_code"`
	ItemName                  string `json:"item_name"`
	ItemId                    string `json:"item_id"`
	OriginalPrice             string `json:"original_price"`
	CurrentPrice              string `json:"current_price"`
	EffectDate                string `json:"effect_date"`
	ExpireDate                string `json:"expire_date"`
	TicketStatus              string `json:"ticket_status"`
	TicketStatusDesc          string `json:"ticket_status_desc"`
	TicketTransId             string `json:"ticket_trans_id"`
	TicketTransType           string `json:"ticket_trans_type"`
	TicketTransCreateTime     string `json:"ticket_trans_create_time"`
	TicketTransLastModifyTime string `json:"ticket_trans_last_modify_time"`
	UseDate                   string `json:"use_date"`
	UseShopId                 string `json:"use_shop_id"`
	UseShopName               string `json:"use_shop_name"`
	ItemMemo                  string `json:"item_memo"`
	BuyerPayAmount            string `json:"buyer_pay_amount"`
	ReceiptAmount             string `json:"receipt_amount"`
	DiscountAmount            string `json:"discount_amount"`
	KoubeiSubsidyAmount       string `json:"koubei_subsidy_amount"`
	InvoiceAmount             string `json:"invoice_amount"`
	BatchNo                   int    `json:"batch_no"`
	OperId                    string `json:"oper_id"`
	RequestId                 string `json:"request_id"`
}

type LinkPayMch

type LinkPayMch struct {
	StoreCode  string `json:"store_code,omitempty"`
	LinkMchId  string `json:"link_mch_id,omitempty"`
	LinkMchKey string `json:"link_mch_key,omitempty"`
	Status     int    `json:"status"`
	StatusMsg  string `json:"status_msg,omitempty"`
}

type LinkpayOrder

type LinkpayOrder struct {
	Id              int    `json:"id,omitempty"`
	OutTradeNo      string `json:"out_trade_no,omitempty"`
	PayAmount       int    `json:"pay_amount,omitempty"`
	BuyerUserName   string `json:"buyer_user_name,omitempty"`
	BuyerUserId     string `json:"buyer_user_id,omitempty"`
	DownTradeNo     string `json:"down_trade_no,omitempty"`
	ChannelTradeNo  string `json:"channel_trade_no,omitempty"`
	ActualPayAmount int    `json:"actual_pay_amount,omitempty"`
	ReceiptAmount   int    `json:"receipt_amount,omitempty"`
	MchCoupon       int    `json:"mch_coupon,omitempty"`
	ChnCoupon       int    `json:"chn_coupon,omitempty"`
	PayTime         string `json:"pay_time,omitempty"`
	CreateTime      string `json:"create_time,omitempty"`
	PayResult       string `json:"pay_result,omitempty"`
	PromotionList   string `json:"promotion_list,omitempty"`
	BankType        string `json:"bank_type,omitempty"`
	LinkMchId       string `json:"link_mch_id,omitempty"`
	OrgCode         string `json:"org_code,omitempty"`
	ShopCode        string `json:"shop_code,omitempty"`
	StoreCode       string `json:"store_code,omitempty"`
	BarCode         string `json:"bar_code,omitempty"`
	Subject         string `json:"subject,omitempty"`
	Attach          string `json:"attach,omitempty"`
	TerminalCode    string `json:"terminal_code,omitempty"`
	OperId          string `json:"oper_id,omitempty"`
	GoodsDetail     string `json:"goods_detail,omitempty"`
	TradeType       string `json:"trade_type,omitempty"`
	StoreName       string `json:"store_name,omitempty"`
	TradeChannel    string `json:"trade_channel,omitempty"`
	CodeUrl         string `json:"code_url,omitempty"`
	CancelTime      string `json:"cancel_time,omitempty"`
	IsRollBack      bool   `json:"is_roll_back,omitempty"`
	FrontUrl        string `json:"front_url,omitempty"`
	VoucherOrderNum string `json:"voucher_order_num,omitempty"`
}

* 招行支付的订单数据

type LinkpayRefundOrder

type LinkpayRefundOrder struct {
	Id                   int    `json:"id,omitempty"`
	OutTradeNo           string `json:"out_trade_no,omitempty"`
	RefundTradeNo        string `json:"refund_trade_no,omitempty"`
	TotalAmount          int    `json:"total_amount,omitempty"`
	RefundAmount         int    `json:"refund_amount,omitempty"`
	TerminalCode         string `json:"terminal_code,omitempty"`
	ChannelRefundTradeNo string `json:"channel_refund_trade_no,omitempty"`
	TimeEnd              string `json:"time_end,omitempty"`
	RefundTime           string `json:"refund_time,omitempty"`
	TradeType            string `json:"trade_type,omitempty"`
	LinkMchId            string `json:"link_mch_id,omitempty"`
	StoreCode            string `json:"store_code,omitempty"`
	ShopCode             string `json:"shop_code,omitempty"`
	OrgCode              string `json:"org_code,omitempty"`
	StoreName            string `json:"store_name,omitempty"`
	TradeChannel         string `json:"trade_channel,omitempty"`
	TradeStatus          string `json:"trade_status,omitempty"`
	RefundResult         string `json:"refund_result,omitempty"`
	RefundOperId         string `json:"refund_oper_id,omitempty"`
	RefundReason         string `json:"refund_reason,omitempty"`
}
type MenuOrderBean struct {
	Id int `json:"id,omitempty,string"`
	//扫码点菜订单号
	MenuOrderNo string `json:"menu_order_no,omitempty"`
	//状态
	Status string `json:"status,omitempty"`
	//支付订单号
	TradeNo string `json:"trade_no,omitempty"`
	//支付宝订单号
	UpTradeNo string `json:"up_trade_no,omitempty"`
	//桌位码
	TableNum string `json:"table_num,omitempty"`
	//点的菜的数量
	GoodsNum int `json:"goods_num,string"`
	//用餐人数
	PeopleNum int `json:"people_num,string"`
	//总价
	Price string `json:"price,omitempty"`
	//口碑门店号
	ShopId string `json:"shop_id,omitempty"`
	//秒富门店号
	StoreCode string `json:"store_code,omitempty"`
	ShopCode  string `json:"shop_code,omitempty"`
	OrgCode   string `json:"org_code,omitempty"`
	//商铺名字
	StoreName string `json:"store_name,omitempty"`
	//口碑店铺商户号
	MerchantPid string `json:"merchant_pid,omitempty"`
	//备注
	Memo string `json:"memo,omitempty"`
	//用户
	UserId string `json:"user_id,omitempty"`
	//昵称
	NickName string `json:"nick_name,omitempty"`

	PayTime     string `json:"pay_time,omitempty"`
	BuyerId     string `json:"buyer_id,omitempty"`
	AttachValue string `json:"attach_value,omitempty"`

	//已经退款的总份数
	RefundGoodsNum int `json:"refund_goods_num,string"`
	//总退款数
	RefundPrice string `json:"refund_price,omitempty"`
	//所有的商品
	MenuOrderDetail []MenuOrderDetailBean `json:"menu_order_detail_list,omitempty,string"`
}

* 扫码点菜订单简介

type MenuOrderDetailBean struct {
	Id int `json:"id,omitempty,string"`
	//扫码点菜订单号
	MenuOrderNo string `json:"menu_order_no,omitempty"`
	//数据库 ID
	GoodsSqlId int `json:"goods_sql_id,omitempty,string"`
	//单品
	GoodsId string `json:"goods_id,omitempty"`
	//单品名字
	GoodsName string `json:"goods_name,omitempty"`
	//单品单价
	Price string `json:"price,omitempty"`
	//规格 ID
	SkuId string `json:"sku_id,omitempty"`
	//用餐人数
	GoodsUnit string `json:"goods_unit,omitempty"`
	//总价
	GoodsType int `json:"goods_type,omitempty,string"`
	//口碑门店号
	GoodsTypeName string `json:"goods_type_name,omitempty"`
	//秒富门店号
	StoreCode string `json:"store_code,omitempty"`
	ShopCode  string `json:"shop_code,omitempty"`
	OrgCode   string `json:"org_code,omitempty"`
	//商铺名字
	ShopId string `json:"shop_id,omitempty"`
	//点的菜的数量
	GoodsNum int `json:"goods_num"`
	//已经退款的总份数
	RefundGoodsNum int `json:"refund_goods_num,string"`
	//总退款数
	RefundPrice string `json:"refund_price,omitempty"`
}

* 扫码点菜订单简介

type MenuOrderRefundDetailBean struct {
	Id int `json:"id,omitempty,string"`
	//扫码点菜订单号
	MenuOrderNo string `json:"menu_order_no,omitempty"`
	//数据库 ID
	GoodsSqlId int `json:"goods_sql_id,omitempty,string"`
	//单品
	GoodsId string `json:"goods_id,omitempty"`
	//单品名字
	GoodsName string `json:"goods_name,omitempty"`
	//单品单价
	Price string `json:"price,omitempty"`
	//规格 ID
	SkuId string `json:"sku_id,omitempty"`
	//用餐人数
	GoodsUnit string `json:"goods_unit,omitempty"`
	//总价
	GoodsType int `json:"goods_type,omitempty,string"`
	//口碑门店号
	GoodsTypeName string `json:"goods_type_name,omitempty"`
	//秒富门店号
	StoreCode string `json:"store_code,omitempty"`
	ShopCode  string `json:"shop_code,omitempty"`
	OrgCode   string `json:"org_code,omitempty"`
	//商铺名字
	ShopId string `json:"shop_id,omitempty"`
	//点的菜的数量
	GoodsNum int `json:"goods_num"`
	//退款的状态
	RefundStatus string `json:"refund_status,omitempty"`
	//退款的订单号
	RefundTradeNo string `json:"refund_trade_no,omitempty"`
	//支付订单号
	TradeNo string `json:"trade_no,omitempty"`
	//设备号..退款归属于哪台设备
	DevId string `json:"dev_id,omitempty"`
	//操作员..哪个操作员的退款
	OperId string `json:"oper_id,omitempty"`
}

type MqBean

type MqBean struct {
	Channel string      `json:"channel,omitempty"`
	Data    interface{} `json:"data,omitempty"`
}

* 消息队列数据结构

type MyBankMch

type MyBankMch struct {
	StoreCode string `json:"store_code,omitempty"`
	MchCode   string `json:"mch_code,omitempty"`
	Status    string `json:"status"`
}

type MyBankOrder

type MyBankOrder struct {
	Id                   int    `json:"id"`
	RequestTradeNo       string `json:"request_trade_no"`
	MerchantOrderNo      string `json:"merchant_order_no"`
	OrderNo              string `json:"order_no"`
	PayAmount            int    `json:"pay_amount"`
	MerchantId           string `json:"merchant_id"`
	Attach               string `json:"attatch"`
	CreateTime           string `json:"create_time"`
	PayTime              string `json:"pay_time"`
	BankType             string `json:"bank_type"`
	PayChannelOrderNo    string `json:"pay_channel_order_no"`
	SubAppId             string `json:"sub_app_id"`
	ChnCoupon            int    `json:"chn_coupon"`
	BuyerUserName        string `json:"buyer_user_name"`
	BuyerUserId          string `json:"buyer_user_id"`
	Credit               string `json:"credit"`
	ActualPayAmount      int    `json:"actual_pay_amount"`
	ReceiptAmount        int    `json:"receipt_amount"`
	InvoiceAmount        int    `json:"invoice_amount"`
	PrePayId             string `json:"pre_pay_id"`
	PayInfo              string `json:"pay_info"`
	PayResult            string `json:"pay_result"`
	TradeType            string `json:"trade_type"`
	Subject              string `json:"subject"`
	GoodsDetail          string `json:"goods_detail"`
	GoodsTag             string `json:"goods_tag"`
	TerminalCode         string `json:"terminal_code"`
	OperId               string `json:"oper_id"`
	SettleType           string `json:"settle_type"`
	OrgCode              string `json:"org_code"`
	ShopCode             string `json:"shop_code"`
	StoreCode            string `json:"store_code"`
	BarCode              string `json:"bar_code"`
	StoreName            string `json:"store_name"`
	TradeChannel         string `json:"trade_channel"`
	CodeUrl              string `json:"code_url"`
	CancelTime           string `json:"cancel_time"`
	FrontUrl             string `json:"front_url"`
	BackNotifyUrl        string `json:"back_notify_url"`
	OpenId               string `json:"open_id"`
	SubOpenId            string `json:"sub_open_id"`
	DeviceCreateIp       string `json:"device_create_ip"`
	ExpireExpress        string `json:"expire_express"`
	PayLimit             string `json:"pay_limit"`
	DiscountableAmount   int    `json:"discountable_amount"`
	UndiscountableAmount int    `json:"undiscountable_amount"`
	CheckLaterNm         int    `json:"check_later_nm"`
}

* 招行支付的订单数据

type MyBankRefundOrder

type MyBankRefundOrder struct {
	Id                   int    `json:"id"`
	RequestTradeNo       string `json:"request_trade_no"`
	MerchantOrderNo      string `json:"merchant_order_no"`
	RefundTradeNo        string `json:"refund_trade_no"`
	TotalAmount          int    `json:"total_amount"`
	RefundAmount         int    `json:"refund_amount"`
	TerminalCode         string `json:"terminal_code"`
	ChannelRefundTradeNo string `json:"channel_refund_trade_no"`
	TimeEnd              string `json:"time_end"`
	RefundTime           string `json:"refund_time"`
	TradeType            string `json:"trade_type"`
	MerchantId           string `json:"merchant_id"`
	StoreCode            string `json:"store_code"`
	ShopCode             string `json:"shop_code"`
	OrgCode              string `json:"org_code"`
	StoreName            string `json:"store_name"`
	TradeChannel         string `json:"trade_channel"`
	TradeStatus          string `json:"trade_status"`
	RefundResult         string `json:"refund_result"`
	RefundOperId         string `json:"refund_oper_id"`
	RefundReason         string `json:"refund_reason"`
	RefundTerminalCode   string `json:"refund_termianl_code"`
}

type NewOrderBean

type NewOrderBean struct {
	Id                 int    `json:"id"`
	PayChannel         string `json:"pay_channel"`
	TradeNo            string `json:"trade_no"`
	UpTradeNo          string `json:"up_trade_no"`
	ChannelTradeNo     string `json:"channel_trade_no"`
	CreateTime         string `json:"create_time"`
	PayTime            string `json:"pay_time"`
	BuyerUserId        string `json:"buyer_user_id"`
	BuyerUserName      string `json:"buyer_user_name"`
	PayAmount          int    `json:"pay_amount"`
	ReceiptAmount      int    `json:"receipt_amount"`
	BuyerAmount        int    `json:"buyer_amount"`
	Fee                int    `json:"fee"`
	FeeLv              string `json:"fee_lv"`
	SettleAmount       int    `json:"settle_amount"`
	Income             int    `json:"income"`
	Outcome            int    `json:"outcome"`
	PayScene           string `json:"pay_scene"`
	RefundTime         string `json:"refund_time"`
	RefundUpTradeNo    string `json:"refund_up_trade_no"`
	TerminalCode       string `json:"terminal_code"`
	OperatorCode       string `json:"operator_code"`
	RefundTerminalCode string `json:"refund_terminal_code"`
	RefundOperatorCode string `json:"refund_operator_code"`
	StoreCode          string `json:"store_code"`
	ShopCode           string `json:"shop_code"`
	OrgCode            string `json:"org_code"`
	StoreName          string `json:"store_name"`
	LocalExsit         string `json:"local_exsit"`
	ChnType            string `json:"chn_type"`
	DccFlag            string `json:"dcc_flag"`
}

type NewOrderStats

type NewOrderStats struct {
	Amount       int    `json:"amount"`                //商户实收总金额
	Count        int    `json:"count"`                 //总交易笔数
	Fee          int    `json:"fee"`                   //商户手续费总金额
	RefundAmount int    `json:"refund_amount"`         //退款总金额
	RefundCount  int    `json:"refund_count"`          //总退款笔数
	PayChannel   string `json:"pay_channel,omitempty"` //交易渠道...
	Day          string `json:"day,omitempty"`         //交易日期
}

type OldAliTokenBean

type OldAliTokenBean struct {
	Id           int    `json:"id,omitempty,string"`
	ProdAppId    string `json:"prod_app_id,omitempty"`
	UserId       string `json:"user_id,omitempty"`
	AuthToken    string `json:"auth_token,omitempty"`
	AppId        string `json:"app_id,omitempty"`
	Expires      int64  `json:"expires,omitempty,string"`
	ReExpires    int64  `json:"re_expires,omitempty,string"`
	RefreshToken string `json:"refresh_token,omitempty"`
}

* 老的支付宝授权..不准备用了... 暂时只做数据中转

type OrgBean

type OrgBean struct {
	Id                    int    `json:"id,omitempty,string"`
	Name                  string `json:"name,omitempty"`
	Code                  string `json:"code,omitempty"`
	Address               string `json:"address,omitempty"`
	Creater               string `json:"creater,omitempty"`
	ContactName           string `json:"contact_name,omitempty"`
	ContactNumber         string `json:"contact_number,omitempty"`
	ContactEmail          string `json:"contace_email,omitempty"`
	License               string `json:"license,omitempty"`
	AccountName           string `json:"account_name,omitempty"`
	AccountBank           string `json:"account_bank,omitempty"`
	AccountCard           string `json:"account_card,omitempty"`
	LegalPersonName       string `json:"legal_person_name,omitempty"`
	LegalPersonId         string `json:"legal_person_id,omitempty"`
	LegalPersonIdUrlFront string `json:"legal_person_id_url_front,omitempty"`
	LegalPersonIdUrlBack  string `json:"legal_person_id_url_back,omitempty"`
	Parent                string `json:"parent,omitempty"`
	Level                 string `json:"level,omitempty"`
	UserId                int    `json:"user_id,omitempty,string"`
}

type ResSizes

type ResSizes struct {
	Response
	Page       int            `json:"page,string"`
	Rows       int            `json:"rows,string"`
	TotalCount int            `json:"total_count,string"`
	TotalPage  int            `json:"total_page,string"`
	List       []SizeItemBean `json:"list,omitempty,string"`
}

type RespAliAuthInfo

type RespAliAuthInfo struct {
	Response
	Data AliAuthInfoBean `json:"data,omitempty"`
}

type RespAliBill

type RespAliBill struct {
	Response
	Data AliBillBean `json:"data,omitempty"`
}

type RespAliItem

type RespAliItem struct {
	Response
	Data AliItemBean `json:"data,omitempty"`
}

type RespAliItems

type RespAliItems struct {
	Response
	Page       int           `json:"page,string"`
	Rows       int           `json:"rows,string"`
	TotalCount int           `json:"total_count,string"`
	TotalPage  int           `json:"total_page,string"`
	List       []AliItemBean `json:"list,omitempty,string"`
}

type RespAliShop

type RespAliShop struct {
	Response
	Data AliShopBean `json:"data,omitempty"`
}

type RespAlipayCategory

type RespAlipayCategory struct {
	Response
	Data AlipayCategoryBean `json:"data,omitempty"`
}

type RespBankCodeBean

type RespBankCodeBean struct {
	Response
	Data BankCodeBean `json:"data,omitempty"`
}

type RespBestpayMch

type RespBestpayMch struct {
	Response
	Data BestpayMch `json:"data,omitempty"`
}

type RespBestpayNewOrder

type RespBestpayNewOrder struct {
	Code string                    `json:"code"`
	Msg  string                    `json:"msg"`
	Sign string                    `json:"sign"`
	Data RespBestpayNewOrderDetail `json:"data,omitempty"`
}

type RespBestpayNewOrderDetail

type RespBestpayNewOrderDetail struct {
	//订单数据
	Order BestpayNewOrder `json:"order,omitempty"`
	//这笔订单下包含的所有退款成功和撤单成功的记录
	RefundOrder []BestpayNewRefundOrder `json:"refund_order,omitempty"`
}

type RespBestpayOrder

type RespBestpayOrder struct {
	Response
	Data BestpayOrder `json:"data,omitempty"`
}

type RespBestpayOriginOrder

type RespBestpayOriginOrder struct {
	Code string                       `json:"code"`
	Msg  string                       `json:"msg"`
	Sign string                       `json:"sign"`
	Data RespBestpayOriginOrderDetail `json:"data,omitempty"`
}

type RespBestpayOriginOrderDetail

type RespBestpayOriginOrderDetail struct {
	//订单数据
	Order BestpayOriginOrder `json:"order,omitempty"`
	//这笔订单下包含的所有退款成功和撤单成功的记录
	RefundOrder []BestpayOriginRefundOrder `json:"refund_order,omitempty"`
}

type RespCardlinkDevice

type RespCardlinkDevice struct {
	Response
	Data CardlinkDevice `json:"data,omitempty"`
}

type RespCardlinkMch

type RespCardlinkMch struct {
	Response
	Data CardlinkMchBean `json:"data,omitempty"`
}

type RespCibMch

type RespCibMch struct {
	Response
	Id        int    `json:"id,omitempty,string"`
	MchId     string `json:"mch_id,omitempty"`
	StoreCode string `json:"store_code,omitempty"`
}

type RespCibOrder

type RespCibOrder struct {
	Response
	Data CibOrder `json:"data,omitempty"`
}

type RespCityCodeBean

type RespCityCodeBean struct {
	Response
	Data CityCodeBean `json:"data,omitempty"`
}

type RespCloudUnionMch

type RespCloudUnionMch struct {
	Response
	Data CloudUnionMchBean `json:"data,omitempty"`
}

type RespCloudUnionOrder

type RespCloudUnionOrder struct {
	Code string                    `json:"code"`
	Msg  string                    `json:"msg"`
	Sign string                    `json:"sign"`
	Data RespCloudUnionOrderDetail `json:"data,omitempty"`
}

type RespCloudUnionOrderDetail

type RespCloudUnionOrderDetail struct {
	//订单数据
	Order CloudUnionOrder `json:"order,omitempty"`
	//这笔订单下包含的所有退款成功和撤单成功的记录
	RefundOrder []CloudUnionRefundOrder `json:"refund_order,omitempty"`
}

type RespCmbPayMch

type RespCmbPayMch struct {
	Response
	Data CmbPayMch `json:"data,omitempty"`
}

type RespCmbpayOrder

type RespCmbpayOrder struct {
	Response
	Data RespCmbpayOrderDetail `json:"data,omitempty"`
}

type RespCmbpayOrderDetail

type RespCmbpayOrderDetail struct {
	//订单数据
	Order CmbpayOrder `json:"order,omitempty"`
	//这笔订单下包含的所有退款成功和撤单成功的记录
	RefundOrder []CmbpayRefundOrder `json:"refund_order,omitempty"`
}

type RespCouponPolicy

type RespCouponPolicy struct {
	Response
	Data CouponPolicyItemBean `json:"data,omitempty"`
}

type RespCouponPolicys

type RespCouponPolicys struct {
	Response
	Page       int                    `json:"page,string"`
	Rows       int                    `json:"rows,string"`
	TotalCount int                    `json:"total_count,string"`
	TotalPage  int                    `json:"total_page,string"`
	List       []CouponPolicyItemBean `json:"list,omitempty,string"`
}

type RespEmployee

type RespEmployee struct {
	Response
	Data EmployeeBean `json:"data"`
}

type RespEmployeeWork

type RespEmployeeWork struct {
	Response
	Data EmployeeWorkBean `json:"data"`
}

type RespEmployeeWorks

type RespEmployeeWorks struct {
	Response
	Page       int                `json:"page,string"`
	Rows       int                `json:"rows,string"`
	TotalCount int                `json:"total_count,string"`
	TotalPage  int                `json:"total_page,string"`
	List       []EmployeeWorkBean `json:"list,omitempty,string"`
}

type RespEmployees

type RespEmployees struct {
	Response
	Page       int            `json:"page,string"`
	Rows       int            `json:"rows,string"`
	TotalCount int            `json:"total_count,string"`
	TotalPage  int            `json:"total_page,string"`
	List       []EmployeeBean `json:"list,omitempty,string"`
}

type RespFuiouMch

type RespFuiouMch struct {
	Response
	Data FuiouMchBean `json:"data,omitempty"`
}

type RespFuiouPayMch

type RespFuiouPayMch struct {
	StoreCode        string `json:"store_code,omitempty"`
	MchCode          string `json:"mch_code,omitempty"`
	ChnAlipayMchCode string `json:"chn_alipay_mch_code,omitempty"`
	ChnWechatMchCode string `json:"chn_wechat_mch_code,omitempty"`
	Status           string `json:"status,omitempty"`
	InsCode          string `json:"ins_code,omitempty"`
}

type RespFuiouPayOrder

type RespFuiouPayOrder struct {
	Code string                  `json:"code"`
	Msg  string                  `json:"msg"`
	Sign string                  `json:"sign"`
	Data RespFuiouPayOrderDetail `json:"data,omitempty"`
}

type RespFuiouPayOrderDetail

type RespFuiouPayOrderDetail struct {
	//订单数据
	Order FuiouPayOrder `json:"order,omitempty"`
	//这笔订单下包含的所有退款成功和撤单成功的记录
	RefundOrder []FuiouPayRefundOrder `json:"refund_order,omitempty"`
}

type RespGoodsItem

type RespGoodsItem struct {
	Response
	Data GoodsItemBean `json:"data,omitempty"`
}

type RespGoodsItemType

type RespGoodsItemType struct {
	Response
	Data GoodsItemTypeBean `json:"data,omitempty"`
}

type RespGoodsItemTypes

type RespGoodsItemTypes struct {
	Response
	Page       int                 `json:"page,string"`
	Rows       int                 `json:"rows,string"`
	TotalCount int                 `json:"total_count,string"`
	TotalPage  int                 `json:"total_page,string"`
	List       []GoodsItemTypeBean `json:"list,omitempty,string"`
}

type RespGoodsItems

type RespGoodsItems struct {
	Response
	Page       int             `json:"page,string"`
	Rows       int             `json:"rows,string"`
	TotalCount int             `json:"total_count,string"`
	TotalPage  int             `json:"total_page,string"`
	List       []GoodsItemBean `json:"list,omitempty,string"`
}

type RespGoodsRemarkBean

type RespGoodsRemarkBean struct {
	Response
	Data GoodsRemarkBean `json:"data,omitempty"`
}

type RespGoodsRemarkBeans

type RespGoodsRemarkBeans struct {
	Response
	Page       int               `json:"page,string"`
	Rows       int               `json:"rows,string"`
	TotalCount int               `json:"total_count,string"`
	TotalPage  int               `json:"total_page,string"`
	List       []GoodsRemarkBean `json:"list,omitempty,string"`
}

type RespIcbcPayMch

type RespIcbcPayMch struct {
	Response
	Data IcbcPayMch `json:"data,omitempty"`
}

type RespIcbcpayOrder

type RespIcbcpayOrder struct {
	Response
	Data RespIcbcpayOrderDetail `json:"data,omitempty"`
}

type RespIcbcpayOrderDetail

type RespIcbcpayOrderDetail struct {
	//订单数据
	Order IcbcpayOrder `json:"order,omitempty"`
	//这笔订单下包含的所有退款成功和撤单成功的记录
	//工行只支持全部退款..所以要么退款..
	RefundOrder []IcbcpayRefundOrder `json:"refund_order,omitempty"`
}

type RespIrichPayMch

type RespIrichPayMch struct {
	Response
	Data IrichPayMch `json:"data,omitempty"`
}

type RespIrichpayOrder

type RespIrichpayOrder struct {
	Response
	Data RespIrichpayOrderDetail `json:"data,omitempty"`
}

type RespIrichpayOrderDetail

type RespIrichpayOrderDetail struct {
	//订单数据
	Order IrichpayOrder `json:"order,omitempty"`
	//这笔订单下包含的所有退款成功和撤单成功的记录
	RefundOrder []IrichpayRefundOrder `json:"refund_order,omitempty"`
}

type RespJdPayOrder

type RespJdPayOrder struct {
	Code string               `json:"code"`
	Msg  string               `json:"msg"`
	Sign string               `json:"sign"`
	Data RespJdPayOrderDetail `json:"data,omitempty"`
}

type RespJdPayOrderDetail

type RespJdPayOrderDetail struct {
	//订单数据
	Order JdPayOrder `json:"order,omitempty"`
	//这笔订单下包含的所有退款成功和撤单成功的记录
	RefundOrder []JdPayRefundOrder `json:"refund_order,omitempty"`
}

type RespJdpayMch

type RespJdpayMch struct {
	StoreCode string `json:"store_code,omitempty"`
	MchCode   string `json:"mch_code,omitempty"`
	DesKey    string `json:"des_key,omitempty"`
	Md5Key    string `json:"md5_key,omitempty"`
	SystemId  string `json:"system_id,omitempty"`
}

type RespKoubeiItemOrderBean

type RespKoubeiItemOrderBean struct {
	Response
	Data KoubeiItemOrderBean `json:"data,omitempty"`
}

type RespKoubeiItemOrderBeans

type RespKoubeiItemOrderBeans struct {
	Response
	Page       int                   `json:"page,string"`
	Rows       int                   `json:"rows,string"`
	TotalCount int                   `json:"total_count,string"`
	TotalPage  int                   `json:"total_page,string"`
	List       []KoubeiItemOrderBean `json:"list,omitempty,string"`
}

type RespKoubeiItemOrderStats

type RespKoubeiItemOrderStats struct {
	Response
	Data KoubeiItemOrderStats `json:"data,omitempty"`
}

type RespKoubeiItemOrderStatsExt

type RespKoubeiItemOrderStatsExt struct {
	Response
	ALL  KoubeiItemOrderStats   `json:"all,omitempty"`
	List []KoubeiItemOrderStats `json:"list,omitempty"`
}

type RespKoubeiItemOrderStatsExtNew

type RespKoubeiItemOrderStatsExtNew struct {
	Response
	ALL  KoubeiItemOrderStatsNew   `json:"all,omitempty"`
	List []KoubeiItemOrderStatsNew `json:"list,omitempty"`
}

type RespKoubeiItemOrderStatsNew

type RespKoubeiItemOrderStatsNew struct {
	Response
	Data KoubeiItemOrderStatsNew `json:"data,omitempty"`
}

type RespKoubeiTicketcodeBeans

type RespKoubeiTicketcodeBeans struct {
	Response
	Page       int                    `json:"page,string"`
	Rows       int                    `json:"rows,string"`
	TotalCount int                    `json:"total_count,string"`
	TotalPage  int                    `json:"total_page,string"`
	List       []KoubeiTicketcodeBean `json:"list,omitempty,string"`
}

type RespLinkPayMch

type RespLinkPayMch struct {
	Response
	Data LinkPayMch `json:"data,omitempty"`
}

type RespLinkpayOrder

type RespLinkpayOrder struct {
	Response
	Data RespLinkpayOrderDetail `json:"data,omitempty"`
}

type RespLinkpayOrderDetail

type RespLinkpayOrderDetail struct {
	//订单数据
	Order LinkpayOrder `json:"order,omitempty"`
	//这笔订单下包含的所有退款成功和撤单成功的记录
	RefundOrder []LinkpayRefundOrder `json:"refund_order,omitempty"`
}

type RespMenuOrder

type RespMenuOrder struct {
	Response
	Data MenuOrderBean `json:"data,omitempty"`
}

type RespMenuOrderDetail

type RespMenuOrderDetail struct {
	Response
	Data MenuOrderDetailBean `json:"data,omitempty"`
}

type RespMenuOrderDetails

type RespMenuOrderDetails struct {
	Response
	Page       int                   `json:"page,string"`
	Rows       int                   `json:"rows,string"`
	TotalCount int                   `json:"total_count,string"`
	TotalPage  int                   `json:"total_page,string"`
	List       []MenuOrderDetailBean `json:"list,omitempty,string"`
}

type RespMenuOrderRefundDetail

type RespMenuOrderRefundDetail struct {
	Response
	Data MenuOrderRefundDetailBean `json:"data,omitempty"`
}

type RespMenuOrderRefundDetails

type RespMenuOrderRefundDetails struct {
	Response
	Page       int                         `json:"page,string"`
	Rows       int                         `json:"rows,string"`
	TotalCount int                         `json:"total_count,string"`
	TotalPage  int                         `json:"total_page,string"`
	List       []MenuOrderRefundDetailBean `json:"list,omitempty,string"`
}

type RespMenuOrders

type RespMenuOrders struct {
	Response
	Page       int             `json:"page,string"`
	Rows       int             `json:"rows,string"`
	TotalCount int             `json:"total_count,string"`
	TotalPage  int             `json:"total_page,string"`
	List       []MenuOrderBean `json:"list,omitempty,string"`
}

type RespMyBankMch

type RespMyBankMch struct {
	Response
	Data MyBankMch `json:"data,omitempty"`
}

type RespMyBankOrder

type RespMyBankOrder struct {
	Response
	Data RespMyBankOrderDetail `json:"data,omitempty"`
}

type RespMyBankOrderDetail

type RespMyBankOrderDetail struct {
	//订单数据
	Order MyBankOrder `json:"order,omitempty"`
	//这笔订单下包含的所有退款成功和撤单成功的记录
	RefundOrder []MyBankRefundOrder `json:"refund_order,omitempty"`
}

type RespNewOrder

type RespNewOrder struct {
	Response
	Page       int            `json:"page,string"`
	Rows       int            `json:"rows,string"`
	TotalCount int            `json:"total_count,string"`
	TotalPage  int            `json:"total_page,string"`
	List       []NewOrderBean `json:"list,omitempty,string"`
}

type RespNewOrderStats

type RespNewOrderStats struct {
	Response
	Data map[string]NewOrderStats `json:"data"` //分渠道统计列表
}

type RespNewOrderStatsGroup

type RespNewOrderStatsGroup struct {
	Response
	Data map[string]map[string]NewOrderStats `json:"data"` //日期的统计
}

type RespOldAliToken

type RespOldAliToken struct {
	Response
	Data OldAliTokenBean `json:"data,omitempty"`
}

type RespOrg

type RespOrg struct {
	Response
	Data OrgBean `json:"data,omitempty"`
}

type RespOrgs

type RespOrgs struct {
	Response
	Page       int       `json:"page,string"`
	Rows       int       `json:"rows,string"`
	TotalCount int       `json:"total_count,string"`
	TotalPage  int       `json:"total_page,string"`
	List       []OrgBean `json:"list,omitempty,string"`
}

type RespSalesman

type RespSalesman struct {
	Response
	Data SalesmanBean `json:"data,omitempty"`
}

type RespSalesmen

type RespSalesmen struct {
	Response
	Page       int            `json:"page,string"`
	Rows       int            `json:"rows,string"`
	TotalCount int            `json:"total_count,string"`
	TotalPage  int            `json:"total_page,string"`
	List       []SalesmanBean `json:"list,omitempty,string"`
}

type RespServiceMarketOrder

type RespServiceMarketOrder struct {
	Response
	Data ServiceMarketOrder `json:"data,omitempty"`
}

type RespServiceMarketOrderDetail

type RespServiceMarketOrderDetail struct {
	Response
	Data ServiceMarketOrderDetail `json:"data,omitempty"`
}

type RespServiceMarketOrderDetails

type RespServiceMarketOrderDetails struct {
	Response
	Page       int                        `json:"page,string"`
	Rows       int                        `json:"rows,string"`
	TotalCount int                        `json:"total_count,string"`
	TotalPage  int                        `json:"total_page,string"`
	List       []ServiceMarketOrderDetail `json:"list,omitempty,string"`
}

type RespServiceMarketOrders

type RespServiceMarketOrders struct {
	Response
	Page       int                  `json:"page,string"`
	Rows       int                  `json:"rows,string"`
	TotalCount int                  `json:"total_count,string"`
	TotalPage  int                  `json:"total_page,string"`
	List       []ServiceMarketOrder `json:"list,omitempty,string"`
}

type RespServiceOrderStats

type RespServiceOrderStats struct {
	Response
	Data ServiceOrderStats `json:"data,omitempty"`
}

type RespServiceOrderStatss

type RespServiceOrderStatss struct {
	Response
	Page       int                 `json:"page,string"`
	Rows       int                 `json:"rows,string"`
	TotalCount int                 `json:"total_count,string"`
	TotalPage  int                 `json:"total_page,string"`
	List       []ServiceOrderStats `json:"list,omitempty,string"`
}

type RespShop

type RespShop struct {
	Response
	Data ShopBean `json:"data,omitempty"`
}

type RespShops

type RespShops struct {
	Response
	Page       int        `json:"page,string"`
	Rows       int        `json:"rows,string"`
	TotalCount int        `json:"total_count,string"`
	TotalPage  int        `json:"total_page,string"`
	List       []ShopBean `json:"list,omitempty,string"`
}

type RespSize

type RespSize struct {
	Response
	Data SizeItemBean `json:"data,omitempty"`
}

type RespStore

type RespStore struct {
	Response
	Data StoreBean `json:"data,omitempty"`
}

type RespStoreBelone

type RespStoreBelone struct {
	Response
	StoreId   int    `json:"store_id"`
	ShopId    int    `json:"shop_id"`
	OrgId     int    `json:"org_id"`
	StoreCode string `json:"store_code"`
	ShopCode  string `json:"shop_code"`
	OrgCode   string `json:"org_code"`
}

type RespStores

type RespStores struct {
	Response
	Page       int         `json:"page,string"`
	Rows       int         `json:"rows,string"`
	TotalCount int         `json:"total_count,string"`
	TotalPage  int         `json:"total_page,string"`
	List       []StoreBean `json:"list,omitempty,string"`
}

type RespSuixingfuMchInfo

type RespSuixingfuMchInfo struct {
	Response
	Data SuixingfuMchInfo `json:"data,omitempty"`
}

type RespSxfOrder

type RespSxfOrder struct {
	Code string             `json:"code"`
	Msg  string             `json:"msg"`
	Data RespSxfOrderDetail `json:"data,omitempty"`
}

type RespSxfOrderDetail

type RespSxfOrderDetail struct {
	//订单数据
	Order SxfPayOrder `json:"order,omitempty"`
	//这笔订单下包含的所有退款成功和撤单成功的记录
	RefundOrder []SxfRefundOrder `json:"refund_order,omitempty"`
}

type RespTableInfo

type RespTableInfo struct {
	Response
	Data TableInfoBean `json:"data,omitempty"`
}

type RespTableInfos

type RespTableInfos struct {
	Response
	Page       int             `json:"page,string"`
	Rows       int             `json:"rows,string"`
	TotalCount int             `json:"total_count,string"`
	TotalPage  int             `json:"total_page,string"`
	List       []TableInfoBean `json:"list,omitempty,string"`
}

type RespTrade

type RespTrade struct {
	Response
	Data TradeBean `json:"data,omitempty"`
}

type RespTradeNo

type RespTradeNo struct {
	Response
	Data TradeNoBean `json:"data,omitempty"`
}

type RespTrades

type RespTrades struct {
	Response
	Page       int         `json:"page,string"`
	Rows       int         `json:"rows,string"`
	TotalCount int         `json:"total_count,string"`
	TotalPage  int         `json:"total_page,string"`
	List       []TradeBean `json:"list,omitempty,string"`
}

type RespUnionDbq

type RespUnionDbq struct {
	Response
	Data UnionDbqBean `json:"data,omitempty"`
}

type RespUnionDbqMch

type RespUnionDbqMch struct {
	Response
	Data UnionDbqMchBean `json:"data,omitempty"`
}

type RespUnionDbqMchs

type RespUnionDbqMchs struct {
	Response
	Page       int               `json:"page,string"`
	Rows       int               `json:"rows,string"`
	TotalCount int               `json:"total_count,string"`
	TotalPage  int               `json:"total_page,string"`
	List       []UnionDbqMchBean `json:"list,omitempty,string"`
}

type RespUnionDbqs

type RespUnionDbqs struct {
	Response
	Page       int            `json:"page,string"`
	Rows       int            `json:"rows,string"`
	TotalCount int            `json:"total_count,string"`
	TotalPage  int            `json:"total_page,string"`
	List       []UnionDbqBean `json:"list,omitempty,string"`
}

type RespUnionLiandiMch

type RespUnionLiandiMch struct {
	Response
	Data UnionLiandiMchBean `json:"data,omitempty"`
}

type RespUnionLiandiMchs

type RespUnionLiandiMchs struct {
	Response
	Page       int                  `json:"page,string"`
	Rows       int                  `json:"rows,string"`
	TotalCount int                  `json:"total_count,string"`
	TotalPage  int                  `json:"total_page,string"`
	List       []UnionLiandiMchBean `json:"list,omitempty,string"`
}

type RespUser

type RespUser struct {
	Response
	Data UserBean `json:"data,omitempty"`
}

type RespUsers

type RespUsers struct {
	Response
	Page       int        `json:"page,string"`
	Rows       int        `json:"rows,string"`
	TotalCount int        `json:"total_count,string"`
	TotalPage  int        `json:"total_page,string"`
	List       []UserBean `json:"list,omitempty,string"`
}

type RespVipCard

type RespVipCard struct {
	Response
	Data VipCardBean `json:"data,omitempty"`
}

type RespVipCards

type RespVipCards struct {
	Response
	Page      int           `json:"page"`
	TotalPage int           `json:"total_page"`
	TotalNum  int           `json:"total_num"`
	Row       int           `json:"row"`
	Data      []VipCardBean `json:"data,omitempty"`
}

type RespVipRecharge

type RespVipRecharge struct {
	Response
	Data VipRechargeBean `json:"data,omitempty"`
}

type RespVipRecharges

type RespVipRecharges struct {
	Response
	Page      int               `json:"page"`
	TotalPage int               `json:"total_page"`
	TotalNum  int               `json:"total_num"`
	Row       int               `json:"row"`
	Data      []VipRechargeBean `json:"data,omitempty"`
}

type RespVipTradeBill

type RespVipTradeBill struct {
	Response
	Data VipTradeBill `json:"data,omitempty"`
}

type RespVipTradeBills

type RespVipTradeBills struct {
	Response
	Page      int            `json:"page,omitempty"`
	TotalPage int            `json:"total_page,omitempty"`
	TotalNum  int            `json:"total_num,omitempty"`
	Row       int            `json:"row,omitempty"`
	Data      []VipTradeBill `json:"data"`
}

type RespVipTradeCount

type RespVipTradeCount struct {
	Response
	Data []VipTradeCount `json:"data"`
}

统计的数据

type RespWechatCategory

type RespWechatCategory struct {
	Response
	Data WechatCategoryBean `json:"data,omitempty"`
}

type RespWxAuthInfo

type RespWxAuthInfo struct {
	Response
	Data WxAuthInfoBean `json:"data,omitempty"`
}

type RespWxBill

type RespWxBill struct {
	Response
	Data  TradeBean `json:"data,omitempty"`
	JsPay JsPayBean `json:"jspay,omitempty"`
}

type Response

type Response struct {
	/**
	code 表示接口返回码
	0  统一表示成功.
	其它值表示失败...根据业务进行对应处理..
	*/
	Code string `json:"code,omitempty"`
	//描述信息.做接口返回信息简单描述
	Msg string `json:"msg,omitempty"`
}

type SalesmanBean

type SalesmanBean struct {
	Id     int `json:"id,omitempty,string"`
	UserId int `json:"user_id,omitempty,string"`
	OrgId  int `json:"org_id,omitempty,string"`
}

type ServiceMarketOrder

type ServiceMarketOrder struct {
	Id int `json:"id,omitempty,string"`
	//订单编号(用于订单明细回查使用)
	CommodityOrderId string `json:"commodity_order_id,omitempty"`
	//订购时间 2016-01-01 00:00:01
	OrderTime string `json:"order_time,omitempty"`
	//服务名称
	Title string `json:"title,omitempty"`
	//商户名称
	Name string `json:"name,omitempty"`
	//联系人
	Contactor string `json:"contactor,omitempty"`
	//商户PID
	MerchantPid string `json:"merchant_pid,omitempty"`
	//联系电话
	Phone string `json:"phone,omitempty"`
	//门店数量
	OrderItemNum string `json:"order_item_num,omitempty"`
	//总价格 5000.00
	TotalPrice string `json:"total_price,omitempty"`
	//业务分类 排队
	BizType string `json:"biz_type,omitempty"`
	//MERCHANT_ORDED(待服务商接单)
	Status string `json:"status,omitempty"`
	//标准版,试用版
	Specifications string `json:"specifications,omitempty"`
}

type ServiceMarketOrderDetail

type ServiceMarketOrderDetail struct {
	Id int `json:"id,omitempty,string"`
	//订单编号(用于订单明细回查使用)
	CommodityOrderId string `json:"commodity_order_id,omitempty"`
	//订单编号(用于订单明细回查使用)
	CommodityId string `json:"commodity_id,omitempty"`
	//门店创建人(已删除)
	Creator string `json:"creator,omitempty"`
	//订单所属人联系方式(手机或者座机)
	PhoneNo string `json:"phone_no,omitempty"`
	//上架时间
	OnlineTime string `json:"online_time,omitempty"`
	//过期时间
	ExpireDate string `json:"expire_date,omitempty"`
	// TO_DO-未实施,
	// DOING-实施中,
	// TO_CONFIRM-待商户确认,
	// DONE-已完成,
	// MERCHANT_REJECTED-商户已回绝,
	// MERCHANT_CANCELLED-商户已取消,
	// ISV_REJECTED-服务商已回绝,
	// ISV_CANCELLED-服务商已取消
	OrderStatus string `json:"order_status,omitempty"`
	//店铺状态(ONLINE--已上架 OFFLINE--未上架 AVAILABLE--已开通 INIT--未开通 EXPIRED--已过期)
	ShopStatus string `json:"shop_status,omitempty"`

	//商户PID
	MerchantPid string `json:"merchant_pid,omitempty"`
	//商户商户名称
	MerchantName string `json:"merchant_name,omitempty"`
	//品牌名称
	BrandName string `json:"brand_name,omitempty"`
	//订单联系人
	Contacts string `json:"contacts,omitempty"`
	//店铺名称
	ShopName string `json:"shop_name,omitempty"`
	//店铺ID
	ShopId string `json:"shop_id,omitempty"`
	//店铺品类
	Category string `json:"category,omitempty"`
	//店铺所在的省份
	Province string `json:"province,omitempty"`
	//店铺所在的市
	City string `json:"city,omitempty"`
	//店铺所在具体位置
	Address string `json:"address,omitempty"`
}

type ServiceOrderStats

type ServiceOrderStats struct {
	Id         int    `json:"id"`
	OrderDay   string `json:"order_day"`
	PluginName string `json:"plugin_name"`
	OrderNum   int    `json:"order_num"`
	StoreNum   int    `json:"store_num"`
	StartTime  string `json:"start_time"`
	EndTime    string `json:"end_time"`
}

type ShopBean

type ShopBean struct {
	Id                         int    `json:"id,omitempty,string"`
	WxId                       string `json:"wx_id,omitempty"`
	AliId                      string `json:"ali_id,omitempty"`
	UnionId                    string `json:"union_id,omitempty"`
	Name                       string `json:"name,omitempty"`
	NameAbbr                   string `json:"name_abbr,omitempty"`
	Creater                    string `json:"creater,omitempty"`
	Code                       string `json:"code,omitempty"`
	Address                    string `json:"address,omitempty"`
	ContactName                string `json:"contact_name,omitempty"`
	ContactNumber              string `json:"contact_number,omitempty"`
	ContactEmail               string `json:"contace_email,omitempty"`
	License                    string `json:"license,omitempty"`
	LicenceCode                string `json:"license_code,omitempty"`
	LicenceName                string `json:"license_name,omitempty"`
	LicenceExpires             string `json:"license_expires,omitempty"`
	AccountName                string `json:"account_name,omitempty"`
	AccountBank                string `json:"account_bank,omitempty"`
	AccountCard                string `json:"account_card,omitempty"`
	LegalPersonName            string `json:"legal_person_name,omitempty"`
	LegalPersonId              string `json:"legal_person_id,omitempty"`
	LegalPersonIdUrlFront      string `json:"legal_person_id_url_front,omitempty"`
	LegalPersonIdUrlBack       string `json:"legal_person_id_url_back,omitempty"`
	UserId                     int    `json:"user_id,omitempty,string"`
	OrgId                      int    `json:"org_id,omitempty,string"`
	RegisterId                 string `json:"register_id,omitempty"`
	AliCategoryId              string `json:"ali_category_id,omitempty"`
	BusinessCertificate        string `json:"business_certificate,omitempty"`
	BusinessCertificateExpires string `json:"business_certificate_expires,omitempty"`
	AuthLetter                 string `json:"auth_letter,omitempty"`
	OtherAuthorization         string `json:"other_authorization,omitempty"`
	WxNotifyUrl                string `json:"wx_notify_url,omitempty"`
	UseDownTradeNo             int    `json:"use_down_tradeno,omitempty"`
	Iso2o                      bool   `json:"iso2o,omitempty"`
}

type SizeItemBean

type SizeItemBean struct {
	Id       int    `json:"id"`        //自增型主键ID
	SizeName string `json:"size_name"` //规格名称
	Shopid   int    `json:"shopid"`    //商户id
	SysTag   string `json:"sys_tag"`   //系统标识
}

商品规格

type SrvAliAuthManager

type SrvAliAuthManager struct {
	SrvBase
}

func (*SrvAliAuthManager) GetAliAppAuthInfo

func (s *SrvAliAuthManager) GetAliAppAuthInfo(app_id, user_id, scope string) (RespAliAuthInfo, error)

func (*SrvAliAuthManager) GetUrl

func (s *SrvAliAuthManager) GetUrl() string

func (*SrvAliAuthManager) GetWxAppAuthInfo

func (s *SrvAliAuthManager) GetWxAppAuthInfo(app_id, open_id, scope string) (RespWxAuthInfo, error)

func (*SrvAliAuthManager) GetWxAppMpAuth

func (s *SrvAliAuthManager) GetWxAppMpAuth(app_id string) (RespWxAuthInfo, error)

type SrvAliGoodManager

type SrvAliGoodManager struct {
	SrvBase
}

func (*SrvAliGoodManager) GetUrl

func (s *SrvAliGoodManager) GetUrl() string

func (*SrvAliGoodManager) OrderItemCancel

func (s *SrvAliGoodManager) OrderItemCancel(order_id, shop_id string) (Response, error)

func (*SrvAliGoodManager) OrderItemComplete

func (s *SrvAliGoodManager) OrderItemComplete(order_id, shop_id string) (Response, error)

func (*SrvAliGoodManager) OrderItemConfirm

func (s *SrvAliGoodManager) OrderItemConfirm(order_id, shop_id string) (Response, error)

func (*SrvAliGoodManager) Ordered

func (s *SrvAliGoodManager) Ordered(user_id, biz_type string) (Response, error)

检查是否订购了.扫码点菜插件

func (*SrvAliGoodManager) QueryOrder

func (s *SrvAliGoodManager) QueryOrder(order_id string) (RespServiceMarketOrder, error)

func (*SrvAliGoodManager) RejectOrder

func (s *SrvAliGoodManager) RejectOrder(order_id, reason string) (RespServiceMarketOrder, error)

func (*SrvAliGoodManager) ShopActionTableAction

func (s *SrvAliGoodManager) ShopActionTableAction(user_id, shop_id, action_detail, action_type string) (Response, error)

* 店铺操作-----桌码操作

func (*SrvAliGoodManager) UpdateOutRelation

func (s *SrvAliGoodManager) UpdateOutRelation(shop_id, store_code, store_name, user_id string) (string, error)

更新一个关系

func (*SrvAliGoodManager) UserActionOrderPan

func (s *SrvAliGoodManager) UserActionOrderPan(user_id, shop_id, merchant_pid, action_detail string) (Response, error)

用户行为 订单

func (*SrvAliGoodManager) UserActionServerCard

func (s *SrvAliGoodManager) UserActionServerCard(user_id, shop_id, merchant_pid, action_detail string) (Response, error)

用户行为 服务卡

type SrvBase

type SrvBase struct {
	// contains filtered or unexported fields
}

* 估摸着.各位抛弃原来直接调用数据库的便捷性..用这个的话.肯定不爽. 所以把对应的几个接口都写成方法了. 使用之前..先配置下调用的 url. 这里就不说了.

func (*SrvBase) GetPost

func (s *SrvBase) GetPost(link string) *httplib.BeegoHTTPRequest

func (*SrvBase) SetUrl

func (s *SrvBase) SetUrl(link string)

type SrvDataCenterManager

type SrvDataCenterManager struct {
	SrvBase
}

func (*SrvDataCenterManager) GetUrl

func (s *SrvDataCenterManager) GetUrl() string

func (*SrvDataCenterManager) KoubeiItemList

func (s *SrvDataCenterManager) KoubeiItemList(page, rows int, search_order_type, search_order_value, status string) (RespAliItems, error)

func (*SrvDataCenterManager) KoubeiOrderList

func (s *SrvDataCenterManager) KoubeiOrderList(page, rows int, user_id, shop_name, order_no, item_id, item_name, start_time, end_time, status, shop_id string) (RespKoubeiItemOrderBeans, error)

func (*SrvDataCenterManager) KoubeiOrderStats

func (s *SrvDataCenterManager) KoubeiOrderStats(user_id, shop_name, item_id, item_name, start_time, end_time, shop_id string) (RespKoubeiItemOrderStats, error)

func (*SrvDataCenterManager) NewOrderStats

func (s *SrvDataCenterManager) NewOrderStats(trade_status, pay_channel, start_time, end_time, store_code, shop_code, org_code string) (RespNewOrderStats, error)

/新对账单的接口

func (*SrvDataCenterManager) ServerOrderStatsLst

func (s *SrvDataCenterManager) ServerOrderStatsLst(page, rows int, by, plugin_name, start_time, end_time string) (RespServiceOrderStatss, error)

func (*SrvDataCenterManager) ServiceOrderDetailList

func (s *SrvDataCenterManager) ServiceOrderDetailList(page, rows int, order_id, search_order_type, search_order_value, search_order_status string) (RespServiceMarketOrderDetails, error)

func (*SrvDataCenterManager) ServiceOrderList

func (s *SrvDataCenterManager) ServiceOrderList(page, rows int, search_order_type, search_order_value, search_order_status, plugin_name string) (RespServiceMarketOrders, error)

type SrvMfGoodsManager

type SrvMfGoodsManager struct {
	SrvBase
}

func (*SrvMfGoodsManager) ClearGoods

func (s *SrvMfGoodsManager) ClearGoods(bean GoodsItemBean) (RespGoodsItem, error)

估清

func (*SrvMfGoodsManager) CreateCouponPolicy

func (s *SrvMfGoodsManager) CreateCouponPolicy(bean CouponPolicyItemBean) (RespCouponPolicy, error)

创建优惠策略

func (*SrvMfGoodsManager) CreateGoods

func (s *SrvMfGoodsManager) CreateGoods(bean GoodsItemBean) (RespGoodsItem, error)

func (*SrvMfGoodsManager) CreateGoodsRemark

func (s *SrvMfGoodsManager) CreateGoodsRemark(bean GoodsRemarkBean) (RespGoodsRemarkBean, error)

func (*SrvMfGoodsManager) CreateGoodsSize

func (s *SrvMfGoodsManager) CreateGoodsSize(bean SizeItemBean) (RespSize, error)

创建规格

func (*SrvMfGoodsManager) CreateGoodsType

func (s *SrvMfGoodsManager) CreateGoodsType(bean GoodsItemTypeBean) (RespGoodsItemType, error)

func (*SrvMfGoodsManager) CreateTable

func (s *SrvMfGoodsManager) CreateTable(bean TableInfoBean) (RespTableInfo, error)

func (*SrvMfGoodsManager) DeleteCouponPolicy

func (s *SrvMfGoodsManager) DeleteCouponPolicy(id int) (Response, error)

删除优惠策略

func (*SrvMfGoodsManager) DeleteGoods

func (s *SrvMfGoodsManager) DeleteGoods(id int) (Response, error)

func (*SrvMfGoodsManager) DeleteGoodsRemark

func (s *SrvMfGoodsManager) DeleteGoodsRemark(store_code string, id int) (Response, error)

func (*SrvMfGoodsManager) DeleteGoodsSize

func (s *SrvMfGoodsManager) DeleteGoodsSize(id int) (Response, error)

删除规格

func (*SrvMfGoodsManager) DeleteGoodsType

func (s *SrvMfGoodsManager) DeleteGoodsType(shop_code string, id int) (Response, error)

func (*SrvMfGoodsManager) DeleteTable

func (s *SrvMfGoodsManager) DeleteTable(store_code string, id int) (Response, error)

func (*SrvMfGoodsManager) GetUrl

func (s *SrvMfGoodsManager) GetUrl() string

func (*SrvMfGoodsManager) ListCouponPolicy

func (s *SrvMfGoodsManager) ListCouponPolicy(page, rows int, bean CouponPolicyItemBean) (RespCouponPolicy, error)

优惠策略列表

func (*SrvMfGoodsManager) ListGoods

func (s *SrvMfGoodsManager) ListGoods(page, rows int, bean GoodsItemBean) (RespGoodsItems, error)

func (*SrvMfGoodsManager) ListGoodsRemark

func (s *SrvMfGoodsManager) ListGoodsRemark(page, rows int, store_code, name, sys_tag string) (RespGoodsRemarkBeans, error)

func (*SrvMfGoodsManager) ListGoodsSzie

func (s *SrvMfGoodsManager) ListGoodsSzie(page, rows int, bean SizeItemBean) (ResSizes, error)

规格列表

func (*SrvMfGoodsManager) ListGoodsType

func (s *SrvMfGoodsManager) ListGoodsType(page, rows int, shop_code, type_name, sys_tag string) (RespGoodsItemTypes, error)

func (*SrvMfGoodsManager) ListTable

func (s *SrvMfGoodsManager) ListTable(page, rows int, store_code, query_type, query_value string) (RespTableInfos, error)

* table_num__contains

func (*SrvMfGoodsManager) ReadCouponPolicy

func (s *SrvMfGoodsManager) ReadCouponPolicy(id int) (RespCouponPolicy, error)

优惠策略详情

func (*SrvMfGoodsManager) ReadGoods

func (s *SrvMfGoodsManager) ReadGoods(id int) (RespGoodsItem, error)

func (*SrvMfGoodsManager) ReadGoodsRemark

func (s *SrvMfGoodsManager) ReadGoodsRemark(store_code string, id int) (RespGoodsRemarkBean, error)

func (*SrvMfGoodsManager) ReadGoodsSzie

func (s *SrvMfGoodsManager) ReadGoodsSzie(id int) (RespSize, error)

规格详情

func (*SrvMfGoodsManager) ReadGoodsType

func (s *SrvMfGoodsManager) ReadGoodsType(shop_code string, id int) (RespGoodsItemType, error)

func (*SrvMfGoodsManager) ReadTable

func (s *SrvMfGoodsManager) ReadTable(store_code, query_type, query_value string) (RespTableInfo, error)

func (*SrvMfGoodsManager) ReadTableByMarker

func (s *SrvMfGoodsManager) ReadTableByMarker(marker string) (RespTableInfo, error)

func (*SrvMfGoodsManager) UpdateCouponPolicy

func (s *SrvMfGoodsManager) UpdateCouponPolicy(bean CouponPolicyItemBean) (RespCouponPolicy, error)

更新优惠策略

func (*SrvMfGoodsManager) UpdateGoods

func (s *SrvMfGoodsManager) UpdateGoods(bean GoodsItemBean) (RespGoodsItem, error)

func (*SrvMfGoodsManager) UpdateGoodsRemark

func (s *SrvMfGoodsManager) UpdateGoodsRemark(bean GoodsRemarkBean) (RespGoodsRemarkBean, error)

func (*SrvMfGoodsManager) UpdateGoodsSize

func (s *SrvMfGoodsManager) UpdateGoodsSize(bean SizeItemBean) (RespSize, error)

更新规格

func (*SrvMfGoodsManager) UpdateGoodsType

func (s *SrvMfGoodsManager) UpdateGoodsType(bean GoodsItemTypeBean) (RespGoodsItemType, error)

func (*SrvMfGoodsManager) UpdateTable

func (s *SrvMfGoodsManager) UpdateTable(bean TableInfoBean) (RespTableInfo, error)

type SrvOrderMenuManager

type SrvOrderMenuManager struct {
	SrvBase
}

func (*SrvOrderMenuManager) GetUrl

func (s *SrvOrderMenuManager) GetUrl() string

type SrvShopManager

type SrvShopManager struct {
	SrvBase
}

func (*SrvShopManager) AddTradeNo

func (s *SrvShopManager) AddTradeNo(device_id string) (TradeNoBean, error)

func (*SrvShopManager) CreateStore

func (s *SrvShopManager) CreateStore(bean StoreBean) (StoreBean, error)

func (*SrvShopManager) DeleteStore

func (s *SrvShopManager) DeleteStore(id int) error

* 慎用...物理删除.

func (*SrvShopManager) GetAliCategoryByCode

func (s *SrvShopManager) GetAliCategoryByCode(code string) (AlipayCategoryBean, error)

func (*SrvShopManager) GetBankCode

func (s *SrvShopManager) GetBankCode(code string) (BankCodeBean, error)

func (*SrvShopManager) GetCityByCode

func (s *SrvShopManager) GetCityByCode(code string) (CityCodeBean, error)

func (*SrvShopManager) GetCityByName

func (s *SrvShopManager) GetCityByName(name string) (CityCodeBean, error)

func (*SrvShopManager) GetOrgByCode

func (s *SrvShopManager) GetOrgByCode(code string) (OrgBean, error)

func (*SrvShopManager) GetOrgById

func (s *SrvShopManager) GetOrgById(org_id int) (OrgBean, error)

func (*SrvShopManager) GetShopByCode

func (s *SrvShopManager) GetShopByCode(code string) (ShopBean, error)

func (*SrvShopManager) GetShopById

func (s *SrvShopManager) GetShopById(id int) (ShopBean, error)

获取商户信息

func (*SrvShopManager) GetShopByPid

func (s *SrvShopManager) GetShopByPid(pid string) (ShopBean, error)

通过 pid 获取商户信息

func (*SrvShopManager) GetStoreBelongByCode

func (s *SrvShopManager) GetStoreBelongByCode(code string) (RespStoreBelone, error)

func (*SrvShopManager) GetStoreBelongById

func (s *SrvShopManager) GetStoreBelongById(store_id int) (RespStoreBelone, error)

func (*SrvShopManager) GetStoreByCode

func (s *SrvShopManager) GetStoreByCode(code string) (StoreBean, error)

func (*SrvShopManager) GetStoreById

func (s *SrvShopManager) GetStoreById(store_id int) (StoreBean, error)

func (*SrvShopManager) GetTokenByAliId

func (s *SrvShopManager) GetTokenByAliId(ali_id string) (OldAliTokenBean, error)

func (*SrvShopManager) GetTradeNo

func (s *SrvShopManager) GetTradeNo(device_id string) (TradeNoBean, error)

func (*SrvShopManager) GetUrl

func (s *SrvShopManager) GetUrl() string

func (*SrvShopManager) GetWxCategoryByCode

func (s *SrvShopManager) GetWxCategoryByCode(code string) (WechatCategoryBean, error)

func (*SrvShopManager) QueryAliShopByShopId

func (s *SrvShopManager) QueryAliShopByShopId(shop_id string) (AliShopBean, error)

func (*SrvShopManager) QueryAliShopByStoreCode

func (s *SrvShopManager) QueryAliShopByStoreCode(store_code string) (AliShopBean, error)

func (*SrvShopManager) ShopList

func (s *SrvShopManager) ShopList(page, rows, org_id int, query_type, query_value string) (RespShops, error)

func (*SrvShopManager) StoreList

func (s *SrvShopManager) StoreList(page, rows, org_id, shop_id int, query_type, query_value string) (RespStores, error)

func (*SrvShopManager) UpdateAliShop

func (s *SrvShopManager) UpdateAliShop(bean AliShopBean) (AliShopBean, error)

func (*SrvShopManager) UpdateShop

func (s *SrvShopManager) UpdateShop(shop ShopBean) (ShopBean, error)

func (*SrvShopManager) UpdateStore

func (s *SrvShopManager) UpdateStore(bean StoreBean) (StoreBean, error)

func (*SrvShopManager) UpdateToken

func (s *SrvShopManager) UpdateToken(token AlipayMchAuthBean, shop_code string) (Response, error)

type SrvUnionDbqManager

type SrvUnionDbqManager struct {
	SrvBase
}

func (*SrvUnionDbqManager) GetUrl

func (s *SrvUnionDbqManager) GetUrl() string

func (*SrvUnionDbqManager) OrderQuery

func (s *SrvUnionDbqManager) OrderQuery(trade_no, up_trade_no, store_code string) (RespUnionDbq, error)

type SrvUserManager

type SrvUserManager struct {
	SrvBase
}

func (*SrvUserManager) GetUrl

func (s *SrvUserManager) GetUrl() string

func (*SrvUserManager) GetUserById

func (s *SrvUserManager) GetUserById(id int) (UserBean, error)

func (*SrvUserManager) Login

func (s *SrvUserManager) Login(user_name, password string) (UserBean, error)

type StoreBean

type StoreBean struct {
	Id                         int    `json:"id,omitempty,string"`
	Code                       string `json:"code,omitempty"`
	Name                       string `json:"name,omitempty"`
	AliStoreId                 string `json:"ali_store_id,omitempty"`
	UserId                     int    `json:"user_id,omitempty,string"`
	ShopId                     int    `json:"shop_id,omitempty,string"`
	OrgId                      int    `json:"org_id,omitempty,string"`
	Address                    string `json:"address,omitempty"`
	BrandName                  string `json:"brand_name,omitempty"`
	ProvinceName               string `json:"province_name,omitempty"`
	ProvinceCode               string `json:"province_code,omitempty"`
	CityName                   string `json:"city_name,omitempty"`
	CityCode                   string `json:"city_code,omitempty"`
	DistrictName               string `json:"district_name,omitempty"`
	DistrictCode               string `json:"district_code,omitempty"`
	Longitude                  string `json:"longitude,omitempty"`
	Latitude                   string `json:"latitude,omitempty"`
	ContactName                string `json:"contact_name,omitempty"`
	ContactNumber              string `json:"contact_number,omitempty"`
	ContactMobile              string `json:"contact_mobile,omitempty"`
	ContactEmail               string `json:"contact_email,omitempty"`
	AvgPrice                   string `json:"avg_price,omitempty"`
	BusinessTime               string `json:"business_time,omitempty"`
	MainImage                  string `json:"main_image,omitempty"`
	ImageOutsideHeader         string `json:"image_outside_header,omitempty"`
	ImageInner1                string `json:"image_inner1,omitempty"`
	ImageInner2                string `json:"image_inner2,omitempty"`
	License                    string `json:"license,omitempty"`
	LicenceCode                string `json:"licence_code,omitempty"`
	LicenceName                string `json:"licence_name,omitempty"`
	BusinessCertificate        string `json:"business_certificate,omitempty"`
	BusinessCertificateExpires string `json:"business_certificate_expires,omitempty"`
	LicenceExpires             string `json:"licence_expires,omitempty"`
	AuthLetter                 string `json:"auth_letter,omitempty"`
	OtherAuthorization         string `json:"other_authorization,omitempty"`
	AliCategoryId              string `json:"ali_category_id,omitempty"`
	BranchName                 string `json:"branch_name,omitempty"`
	SalerId                    int    `json:"saler_id,omitempty,string"`
	MerchantName               string `json:"merchant_name,omitempty"`
	RecipientName              string `json:"recipient_name,omitempty"`
	RecipientIdCardNo          string `json:"recipient_id_card_no,omitempty"`
	RecipientWechatId          string `json:"recipient_wechat_id,omitempty"`
	WeChatCategoryId           string `json:"wechat_category_id,omitempty"`
	MicroMchId                 string `json:"micro_mch_id,omitempty"`
	AutoVerification           int    `json:"auto_verification,omitempty,string"`
	CmbcPayStatus              int    `json:"cmbc_pay_status,omitempty,string"`
	CmbcMid                    string `json:"cmbc_mid,omitempty"`
	AlipayFee                  string `json:"alipay_fee,omitempty"`
	WechatFee                  string `json:"wechat_fee,omitempty"`
	AccountNumber              string `json:"account_number,omitempty"`
	IdCard                     string `json:"id_card,omitempty"`
	HolderName                 string `json:"holder_name,omitempty"`
	IsPrivate                  string `json:"is_private,omitempty"`
	IssuerProvince             string `json:"issuer_province,omitempty"`
	IssuerCity                 string `json:"issuer_city,omitempty"`
	BankCode                   string `json:"bank_code,omitempty"`
	OtherCertImageId           string `json:"other_cert_image_id,omitempty"`
	PayChnAli                  int    `json:"pay_chn_ali,omitempty,string"`
	PayChnWx                   int    `json:"pay_chn_wx,omitempty,string"`
	MfAwordFeePoint            string `json:"mf_aword_fee_point,omitempty"`
	WxFeePoint                 string `json:"wx_fee_point,omitempty"`
	AliFeePoint                string `json:"ali_fee_point,omitempty"`
	AutoGetCard                int    `json:"auto_get_card,omitempty,string"`
	OfficialAppId              string `json:"official_app_id,omitempty"`
	OfficialAppSecret          string `json:"official_app_secret,omitempty"`
	Iso2o                      int    `json:"iso2o,omitempty,string"`
	KouBeiCode                 string `json:"koubei_code,omitempty"`
	MccCode                    string `json:"mcc_code,omitempty"`
	LicenseType                string `json:"license_type,omitempty"`
	SettlePersonID1ImageId     string `json:"settle_person_id1_image_id,omitempty"`
	SettlePersonID2ImageId     string `json:"settle_person_id2_image_id,omitempty"`
	LegalPersonID              string `json:"legal_person_id,omitempty"`
	LegalPersonName            string `json:"legal_person_name,omitempty"`
	LegalPersonPhone           string `json:"legal_person_phone,omitempty"`
	LegalPersonID1ImageId      string `json:"legal_person_id1_image_id,omitempty"`
	LegalPersonID2ImageId      string `json:"legal_person_id2_image_id,omitempty"`
	MerchantType               int    `json:"merchant_type,omitempty"`
	Data1                      string `json:"data1,omitempty"`
	Data2                      string `json:"data2,omitempty"`
	Data3                      string `json:"data3,omitempty"`
	Data4                      string `json:"data4,omitempty"`
	Data5                      string `json:"data5,omitempty"`
}

type SuixingfuMchInfo

type SuixingfuMchInfo struct {
	StoreCode string `json:"store_code,omitempty"`
	MchCode   string `json:"mch_code,omitempty"`
	Status    string `json:"status"`
}

type SxfPayOrder

type SxfPayOrder struct {
	RequestTradeNo    string `json:"request_trade_no"`
	DownTradeNo       string `json:"down_trade_no"`
	OrderNo           string `json:"order_no"`
	PayAmount         int    `json:"pay_amount"`
	MerchantId        string `json:"merchant_id"`
	Attach            string `json:"attatch"`
	CreateTime        string `json:"create_time"`
	PayTime           string `json:"pay_time"`
	BankType          string `json:"bank_type"`
	PayChannelOrderNo string `json:"pay_channel_order_no"`
	VoucherOrderNo    string `json:"voucher_order_no"`
	SubAppId          string `json:"sub_app_id"`
	ChnCoupon         int    `json:"chn_coupon"`
	BuyerUserName     string `json:"buyer_user_name"`
	BuyerUserId       string `json:"buyer_user_id"`
	ActualPayAmount   int    `json:"actual_pay_amount"`
	ReceiptAmount     int    `json:"receipt_amount"`
	InvoiceAmount     int    `json:"invoice_amount"`
	PrePayId          string `json:"pre_pay_id"`
	PayInfo           string `json:"pay_info"`
	PayResult         string `json:"pay_result"`
	TradeType         string `json:"trade_type"`
	Subject           string `json:"subject"`
	GoodsDetail       string `json:"goods_detail"`
	GoodsTag          string `json:"goods_tag"`
	TerminalCode      string `json:"terminal_code"`
	OperId            string `json:"oper_id"`
	OrgCode           string `json:"org_code"`
	ShopCode          string `json:"shop_code"`
	StoreCode         string `json:"store_code"`
	BarCode           string `json:"bar_code"`
	StoreName         string `json:"store_name"`
	TradeChannel      string `json:"trade_channel"`
	CodeUrl           string `json:"code_url"`
	CancelTime        string `json:"cancel_time"`
	FrontUrl          string `json:"front_url"`
	BackNotifyUrl     string `json:"back_notify_url"`
	OpenId            string `json:"open_id"`
	SubOpenId         string `json:"sub_open_id"`
	RecfeeAmtRate     string `json:"fee_lv"`
	RecfeeAmt         int    `json:"fee_amt"`
}

type SxfRefundOrder

type SxfRefundOrder struct {
	RequestTradeNo       string `json:"request_trade_no"`
	MerchantOrderNo      string `json:"merchant_order_no"`
	RefundTradeNo        string `json:"refund_trade_no"`
	RefundDownTradeNo    string `json:"refund_down_trade_no"`
	TotalAmount          int    `json:"total_amount"`
	RefundAmount         int    `json:"refund_amount"`
	TerminalCode         string `json:"terminal_code"`
	ChannelRefundTradeNo string `json:"channel_refund_trade_no"`
	TimeEnd              string `json:"time_end"`
	RefundTime           string `json:"refund_time"`
	TradeType            string `json:"trade_type"`
	MerchantId           string `json:"merchant_id"`
	StoreCode            string `json:"store_code"`
	ShopCode             string `json:"shop_code"`
	OrgCode              string `json:"org_code"`
	StoreName            string `json:"store_name"`
	TradeChannel         string `json:"trade_channel"`
	TradeStatus          string `json:"trade_status"`
	RefundResult         string `json:"refund_result"`
	RefundOperId         string `json:"refund_oper_id"`
	RefundReason         string `json:"refund_reason"`
	RefundTerminalCode   string `json:"refund_termianl_code"`
	BatchNo              int    `json:"batch_no"`
	RecfeeAmt            int    `json:"fee_amt"`
}

type TableInfoBean

type TableInfoBean struct {
	Id          int    `json:"id,omitempty,string"`
	TableNum    string `json:"table_num,omitempty"`
	TableName   string `json:"table_name,omitempty"`
	TableType   string `json:"table_type,omitempty"`
	PeopleMax   int    `json:"people_max,omitempty,string"`
	PeopleMin   int    `json:"people_min,omitempty,string"`
	ShopId      string `json:"shop_id,omitempty"`
	StoreCode   string `json:"store_code,omitempty"`
	MerchantPid string `json:"merchant_pid,omitempty"`
	Status      string `json:"status,omitempty"`
	TradeNo     string `json:"trade_no"`
	SysTag      string `json:"sys_tag,omitempty"`
	Marker      string `json:"marker,omitempty"`
}

桌码数据

type TradeBean

type TradeBean struct {
	TradeNo          string `json:"trade_no"`
	TradeStatus      string `json:"trade_status"`
	TradeType        string `json:"trade_type"`
	TradeChannel     string `json:"trade_channel"`
	TotalAmount      int    `json:"total_amount,string"`
	CurrentAmount    int    `json:"current_amount,string,omitempty"`
	SellerAmount     int    `json:"seller_amount,string"`
	SellerCoupon     int    `json:"seller_coupon,string"`
	BuyerAmount      int    `json:"buyer_amount,string"`
	ChnCoupon        int    `json:"chn_coupon,string"`
	UnDiscountAmount int    `json:"undiscount_amount,string"`
	BuyerId          string `json:"buyer_id"`
	StoreName        string `json:"store_name"`
	StoreCode        string `json:"store_code"`
	DeviceCode       string `json:"device_code"`
	DownTradeNo      string `json:"down_trade_no"`
	UpTradeNo        string `json:"up_trade_no"`
	RawData          string `json:"raw_data"`
	OperId           string `json:"oper_id"`
	Subject          string `json:"subject"`
	TimeEnd          string `json:"time_end"`
	RefundTime       string `json:"refund_time"`
	CodeUrl          string `json:"code_url,omitempty"`
	PrePayId         string `json:"prepay_id,omitempty"`
}

* 目前基本上所有的交易结构都返回这个数据结构 *

type TradeNoBean

type TradeNoBean struct {
	Id       int    `json:"id,omitempty,string"`
	DeviceId string `json:"device_id,omitempty"`
	BatchNo  int    `json:"batch_no,omitempty,string"`
}

* 批次号

type UnionDbqBean

type UnionDbqBean struct {
	TradeNo                  string `json:"trade_no,omitempty"`
	UpTradeNo                string `json:"up_trade_no,omitempty"`
	DownTradeNo              string `json:"down_trade_no,omitempty"`
	BuyerId                  string `json:"buyer_id,omitempty"`
	TradeStatus              string `json:"trade_status,omitempty"`
	TimeEnd                  string `json:"time_end,omitempty"`
	TradeDate                string `json:"trade_date,omitempty"`
	TradeTime                string `json:"trade_time,omitempty"`
	BatchNo                  int    `json:"batch_no,omitempty,string"`
	UndiscountableAmt        string `json:"un_discountable_amt,omitempty"`
	OperId                   string `json:"oper_id,omitempty"`
	TradeType                string `json:"trade_type,omitempty"`
	Subject                  string `json:"subject,omitempty"`
	GoodsDetail              string `json:"goods_detail,omitempty"`
	RawData                  string `json:"rawdata,omitempty"`
	OrgCode                  string `json:"org_code,omitempty"`
	ShopCode                 string `json:"shop_code,omitempty"`
	StoreCode                string `json:"store_code,omitempty"`
	TerminalCode             string `json:"terminal_code,omitempty"`
	StoreName                string `json:"store_name,omitempty"`
	TotalAmount              string `json:"total_amount,omitempty"`
	Fee                      string `json:"fee,omitempty"`
	RefundTime               string `json:"refund_time,omitempty"`
	PayCardType              string `json:"pay_card_type,omitempty"`
	UnionIcRemark            string `json:"union_ic_remark,omitempty"`
	UnionCardExpiry          string `json:"union_card_expiry,omitempty"`
	TerminalId               string `json:"terminal_id,omitempty"`
	UnionTerminalId          string `json:"union_terminal_id,omitempty"`
	UnionSerialNo            string `json:"union_serial_no,omitempty"`
	UnionAcquiringBand       string `json:"union_acquiring_band,omitempty"`
	UnionBankCardAssociation string `json:"union_bank_card_association,omitempty"`
	UnionIssuingBank         string `json:"union_issuing_bank,omitempty"`
	UnionRefNo               string `json:"union_ref_no,omitempty"`
	UnionStoreName           string `json:"union_store_name,omitempty"`
	UnionMchCode             string `json:"union_mch_code,omitempty"`
	UnionBatchNo             string `json:"union_batch_no,omitempty"`
	UnionSelectId            string `json:"union_select_id,omitempty"`
	UnionAuthCode            string `json:"union_auth_code,omitempty"`
	TransactionType          string `json:"transaction_type"`
	Longitude                string `json:"longitude,omitempty"`
	Latitude                 string `json:"latitude,omitempty"`
	MobileNo                 string `json:"mobile_no,omitempty"`
	StateCode                string `json:"state_code,omitempty"`
	ServerCode               string `json:"server_code,omitempty"`
	TicketUrl                string `json:"ticket_url,omitempty"`
	RefundTicketUrl          string `json:"refund_ticket_url,omitempty"`
	Remark                   string `json:"remark,omitempty"`
	FromMobileNo             string `json:"from_mobile_no,omitempty"`
	SellerAmount             int    `json:"seller_amount,string"`
	SellerCoupon             int    `json:"seller_coupon,string"`
	BuyerAmount              int    `json:"buyer_amount,string"`
	ChnCoupon                int    `json:"chn_coupon,string"`
	ErrMsg                   string `json:"err_msg,omitempty"`
	TradeChannel             string `json:"trade_channel"`
	UnionCardNo              string `json:"union_card_no"`
}

type UnionDbqMchBean

type UnionDbqMchBean struct {
	Id           int    `json:"id,string"`
	MchCode      string `json:"mch_code"`
	StoreCode    string `json:"store_code"`
	ShopCode     string `json:"shop_code"`
	OrgCode      string `json:"org_code"`
	UnionOrgCode string `json:"union_org_code"`
	UnionKey     string `json:"union_key"`
}

type UnionLiandiMchBean

type UnionLiandiMchBean struct {
	Id        int    `json:"id,string"`
	MchCode   string `json:"mch_code"`
	StoreCode string `json:"store_code"`
	ShopCode  string `json:"shop_code"`
	OrgCode   string `json:"org_code"`
}

type UserBean

type UserBean struct {
	Id            int    `json:"id,omitempty,string"`
	UserName      string `json:"user_name,omitempty"`
	Password      string `json:"password,omitempty"`
	NickName      string `json:"nick_name,omitempty"`
	Sign          string `json:"sign,omitempty"`
	Postal        string `json:"postal,omitempty"`
	Address       string `json:"address,omitempty"`
	HeadImg       string `json:"headimg,omitempty"`
	Cover         string `json:"cover,omitempty"`
	Sex           int    `json:"sex,omitempty,string"`
	Age           int    `json:"age,omitempty,string"`
	Birthday      string `json:"birthday,omitempty"`
	Constellation string `json:"constellation,omitempty"`
	Company       string `json:"company,omitempty"`
	School        string `json:"school,omitempty"`
	Type          int    `json:"type,omitempty,string"`
	PushId        string `json:"push_id,omitempty"`
}

type VipCardBean

type VipCardBean struct {
	Id             int    `json:"id,omitempty"`
	Num            string `json:"num,omitempty"`
	Date           string `json:"date,omitempty"`
	CardHolderName string `json:"card_holder_name,omitempty"`
	CardHolderTel  string `json:"card_holder_tel,omitempty"`
	CardType       string `json:"card_type,omitempty"`
	CardSubType    string `json:"card_sub_type,omitempty"`
	Amount         string `json:"amount,omitempty"`
	OrgId          string `json:"org_id,omitempty"`
	ShopId         string `json:"shop_id,omitempty"`
	StoreId        string `json:"store_id,omitempty"`
	Operator       string `json:"operator,omitempty"`
	ExpireDate     string `json:"expire_date,omitempty"`
	Status         string `json:"status,omitempty"`
}

type VipRechargeBean

type VipRechargeBean struct {
	Id             int    `json:"id,omitempty"`
	Num            string `json:"num,omitempty"`
	Date           string `json:"date,omitempty"`
	CardHolderName string `json:"card_holder_name,omitempty"`
	CardHolderTel  string `json:"card_holder_tel,omitempty"`
	CardType       string `json:"card_type,omitempty"`
	CardSubType    string `json:"card_sub_type,omitempty"`
	Amount         string `json:"amount,omitempty"`
	OrgId          string `json:"org_id,omitempty"`
	ShopId         string `json:"shop_id,omitempty"`
	StoreId        string `json:"store_id,omitempty"`
	Operator       string `json:"operator,omitempty"`
}

type VipTradeBill

type VipTradeBill struct {
	Id                int    `json:"id,omitempty"`
	Date              string `json:"date,omitempty"`
	CardNum           string `json:"card_num,omitempty"`
	CardType          string `json:"card_type,omitempty"`
	CardSubType       string `json:"card_sub_type,omitempty"`
	TotalFee          string `json:"total_fee,omitempty"`
	OrgId             string `json:"org_id,omitempty"`
	ShopId            string `json:"shop_id,omitempty"`
	StoreId           string `json:"store_id,omitempty"`
	Operator          string `json:"operator,omitempty"`
	RawData           string `json:"raw_data,omitempty"`
	DownTradeNo       string `json:"down_trade_no,omitempty"`
	TradeNo           string `json:"trade_no,omitempty"`
	RefundTradeNo     string `json:"refund_trade_no,omitempty"`
	DownRefundTradeNo string `json:"down_refund_trade_no,omitempty"`
	TradeState        string `json:"trade_state,omitempty"`
	Created           string `json:"created,omitempty"`
	Updated           string `json:"updated,omitempty"`
}

type VipTradeCount

type VipTradeCount struct {
	CardType   string `json:"card_type"`
	TotalFee   string `json:"total_fee"`
	TotalNum   string `json:"total_num"`
	RefundFee  string `json:"refund_fee"`
	RefundNum  string `json:"refund_num"`
	ReceiptFee string `json:"receipt_fee"`
	ReceiptNum string `json:"receipt_num"`
}

type WechatCategoryBean

type WechatCategoryBean struct {
	Id   int    `json:"id,omitempty"`
	Code string `json:"code,omitempty"`
	Name string `json:"name,omitempty"`
	PAdC string `json:"p_ad_c,omitempty"`
}

type WxAuthInfoBean

type WxAuthInfoBean struct {
	Id           int
	Appid        string
	AccessToken  string
	OpenId       string
	ExpiresIn    int64
	ReExpiresIn  int64
	RefreshToken string
	Scope        string
	NickName     string
	Sex          string
	Province     string
	City         string
	Country      string
	HeadimgUrl   string
	Privilege    string
	UnoinId      string
	AuthType     string
	JsapiTicket  string
}

* 授权中心的数据.. 这里不做 json 的大小写转换了.. 授权中心是第一个独立出来的服务..当时没考虑到 sdk 的问题.. 授权中心涉及了好几个服务..暂时没时间一个个修改了.

type XunlianPushMsg

type XunlianPushMsg struct {
	Code string `json:"responseCode,omitempty"`
	Msg  string `json:"message,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL