This commit is contained in:
邹宗楠
2025-07-22 16:18:21 +08:00
parent e4c65b1199
commit 7787c5ea1d
5 changed files with 58 additions and 18 deletions

View File

@@ -4,13 +4,15 @@ const (
OrderTestUrl = "https://test.wsmsd.cn/sit/api/v3/" // 收银订单创建测试地址
OrderProdUrl = "https://s2.lakala.com/api/v3" // 收银订单创建正式地址
CrateOrderActive = "ccss/counter/order/special_create" // 创建订单
CloseOrderActive = "ccss/counter/order/close" // 订单关单
QueryOrderActive = "ccss/counter/order/query" // 订单查询
OrderRefundActive = "lams/trade/trade_refund" // 订单统一退货
OrderRefundQueryActive = "lams/trade/trade_refund_query" // 订单统一退货查询
OrderEcApplyActive = "mms/open_api/ec/apply" // 电子合同申请
OrderEcApplyStatusActive = "mms/open_api/ec/qma_status" // 电子合同状态查询
CrateOrderActive = "ccss/counter/order/special_create" // 创建订单
CloseOrderActive = "ccss/counter/order/close" // 订单关单
QueryOrderActive = "ccss/counter/order/query" // 订单查询
OrderRefundActive = "lams/trade/trade_refund" // 订单统一退货
OrderRefundQueryActive = "lams/trade/trade_refund_query" // 订单统一退货查询
OrderEcApplyActive = "mms/open_api/ec/apply" // 电子合同申请
OrderEcApplyStatusActive = "mms/open_api/ec/qma_status" // 电子合同状态查询
OrderEcApplyByPeopleActive = "mms/open_api/ec/apply_manual" // 申请人工审核
)
const (
@@ -263,3 +265,18 @@ type ApplyContractResp struct {
EcApplyId int64 `json:"ec_apply_id"`
ResultUrl string `json:"result_url"`
}
// ApplyContractByPeople 电子合同申请人工复合
type ApplyContractByPeople struct {
OrderNo string `json:"order_no"` // 建议:平台编号+14位年月日时24小时制分秒+8位的随机数同一接入机构不重复
OrgId int `json:"org_id"` // 签约方所属拉卡拉机构
EcApplyId int64 `json:"ec_apply_id"` // 申请接口反馈编号
FileData []ApplyContractFileType `json:"file_data"` // 附件信息集合
RetUrl string `json:"ret_url"` // 回调接口
}
type ApplyContractFileType struct {
AttachType string `json:"attach_type"`
AttachExtName string `json:"attach_ext_name"`
AttachStorePath string `json:"attach_store_path"`
}