chore: 初始开源发布
iotlcm-openapi:对外 OpenAPI 网关(V3 接口 + 旧版兼容接口)。
- Go module:iotlcm-openapi → git.5iot.com/iotlcm-public/iotlcm-openapi(178 文件)
- 凭据与地址脱敏:JWT signingKey、MySQL DSN、Redis 口令、
RabbitMQ DSN 全部改为 ${*} 占位;私网 IP → 文档地址段
- 7 处真实手机号 → 合法 11 位编造号
- 启动 banner 统一 IOTLCM 方块字 + 社区惯例署名
- 移除内部资产:CI 触发器
- Dockerfile 改用公共基础镜像,移除 GOPRIVATE 内网设置
- README 重写(原为 GoFrame 模板占位文案),补 Apache-2.0 LICENSE,
LF 行尾 + .gitattributes
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
package model
|
||||
|
||||
type AlipayConfig struct {
|
||||
AppId string `json:"appId" yaml:"appId"`
|
||||
PrivateKey string `json:"privateKey" yaml:"privateKey"`
|
||||
AlipayPublicKey string `json:"alipayPublicKey" yaml:"alipayPublicKey"`
|
||||
NotifyUrl string `json:"notifyUrl" yaml:"notifyUrl"`
|
||||
ReturnUrl string `json:"returnUrl" yaml:"returnUrl"`
|
||||
IsProduction bool `json:"isProduction" yaml:"isProduction"`
|
||||
}
|
||||
|
||||
type AlipayPayInput struct {
|
||||
OutTradeNo string `json:"outTradeNo" dc:"商户订单号"`
|
||||
Subject string `json:"subject" dc:"订单标题" v:"required#订单标题不能为空"`
|
||||
TotalAmount string `json:"totalAmount" dc:"支付金额(元)" v:"required#支付金额不能为空"`
|
||||
PayType string `json:"payType" dc:"支付类型:page 电脑网站支付,wap 手机网站支付" d:"page"`
|
||||
}
|
||||
|
||||
type AlipayPayOutput struct {
|
||||
OutTradeNo string `json:"outTradeNo" dc:"商户订单号"`
|
||||
PayUrl string `json:"payUrl" dc:"支付链接"`
|
||||
}
|
||||
|
||||
type AlipayNotifyInput struct{}
|
||||
|
||||
type AlipayNotifyOutput struct{}
|
||||
|
||||
type AlipayReturnInput struct{}
|
||||
|
||||
type AlipayReturnOutput struct {
|
||||
OutTradeNo string `json:"outTradeNo" dc:"商户订单号"`
|
||||
TradeNo string `json:"tradeNo" dc:"支付宝交易号"`
|
||||
TotalAmount string `json:"totalAmount" dc:"交易金额"`
|
||||
Message string `json:"message" dc:"消息"`
|
||||
}
|
||||
|
||||
type AlipayTradeQueryInput struct {
|
||||
OutTradeNo string `json:"outTradeNo" dc:"商户订单号"`
|
||||
TradeNo string `json:"tradeNo" dc:"支付宝交易号"`
|
||||
}
|
||||
|
||||
type AlipayTradeQueryOutput struct {
|
||||
OutTradeNo string `json:"outTradeNo" dc:"商户订单号"`
|
||||
TradeNo string `json:"tradeNo" dc:"支付宝交易号"`
|
||||
TradeStatus string `json:"tradeStatus" dc:"交易状态"`
|
||||
TotalAmount string `json:"totalAmount" dc:"交易金额"`
|
||||
BuyerLogonId string `json:"buyerLogonId" dc:"买家支付宝账号"`
|
||||
BuyerUserId string `json:"buyerUserId" dc:"买家支付宝用户ID"`
|
||||
BuyerOpenId string `json:"buyerOpenId" dc:"买家支付宝OpenID"`
|
||||
SendPayDate string `json:"sendPayDate" dc:"交易付款时间"`
|
||||
}
|
||||
|
||||
type AlipayRefundInput struct {
|
||||
OutRequestNo string `json:"outRequestNo" dc:"退款请求号" v:"required#退款请求号不能为空"`
|
||||
RefundReason string `json:"refundReason" dc:"退款原因"`
|
||||
OutTradeNo string `json:"outTradeNo" dc:"商户订单号"`
|
||||
TradeNo string `json:"tradeNo" dc:"支付宝交易号"`
|
||||
RefundAmount string `json:"refundAmount" dc:"退款金额(元)" v:"required#退款金额不能为空"`
|
||||
}
|
||||
|
||||
type AlipayRefundOutput struct {
|
||||
OutRequestNo string `json:"outRequestNo" dc:"退款请求号"`
|
||||
OutTradeNo string `json:"outTradeNo" dc:"商户订单号"`
|
||||
TradeNo string `json:"tradeNo" dc:"支付宝交易号"`
|
||||
BuyerLogonId string `json:"buyerLogonId" dc:"买家支付宝账号"`
|
||||
RefundAmount string `json:"refundAmount" dc:"退款金额(元)"`
|
||||
}
|
||||
Reference in New Issue
Block a user