app-cloudep-trade-service/internal/logic/walletservice/withdraw_funds_logic.go

32 lines
717 B
Go
Raw Permalink Normal View History

2024-10-25 10:17:27 +00:00
package walletservicelogic
import (
"context"
"app-cloudep-trade-service/gen_result/pb/trade"
"app-cloudep-trade-service/internal/svc"
"github.com/zeromicro/go-zero/core/logx"
)
type WithdrawFundsLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewWithdrawFundsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *WithdrawFundsLogic {
return &WithdrawFundsLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
// WithdrawFunds 提現 - 減少 [可用餘額]
func (l *WithdrawFundsLogic) WithdrawFunds(in *trade.WalletTransactionReq) (*trade.OKResp, error) {
// todo: add your logic here and delete this line
return &trade.OKResp{}, nil
}