重构账户与商户服务模块
- 移除旧版 account.go 文件中的账户服务实现 - 新增聚合扫码关单、退款、撤销等接口实现 - 新增聚合被扫、主扫及加密接口实现 - 新增交易查询与支付宝吱口令申请接口 - 重构统一退货及退货查询接口,优化泛型使用 - 移除旧版商户进件相关接口实现 - 调整部分服务结构体命名与参数传递方式 - 统一请求时间格式并优化代码结构
This commit is contained in:
@@ -7,13 +7,13 @@ import (
|
||||
)
|
||||
|
||||
// Refund 统一退货API结构体
|
||||
type Refund[T any] struct {
|
||||
client *common.Client[T]
|
||||
type Refund struct {
|
||||
client *common.Client[ResponseRefund]
|
||||
}
|
||||
|
||||
// NewRefund 创建统一退货API实例
|
||||
func NewRefund[T any](client *common.Client[T]) *Refund[T] {
|
||||
return &Refund[T]{
|
||||
func NewRefund(client *common.Client[ResponseRefund]) *Refund {
|
||||
return &Refund{
|
||||
client: client,
|
||||
}
|
||||
}
|
||||
@@ -21,7 +21,7 @@ func NewRefund[T any](client *common.Client[T]) *Refund[T] {
|
||||
// Refund 发起统一退货请求
|
||||
// request: 统一退货请求参数
|
||||
// 返回统一退货响应结果和错误信息
|
||||
func (api *Refund[T]) Refund(req *RequestDataRefund) (*T, error) {
|
||||
func (api *Refund) Refund(req *RequestDataRefund) (*ResponseRefund, error) {
|
||||
// 构建请求参数
|
||||
url := consts.BASE_URL + consts.LKL_UNIFIED_RETURN_REFUND_URL
|
||||
// 构建BaseModel请求
|
||||
|
||||
Reference in New Issue
Block a user