Documentation
¶
Index ¶
- type WithdrawModel
- func (l *WithdrawModel) DeductBalance(tx *gorm.DB, userId int64, amount float64) error
- func (l *WithdrawModel) Withdraw(in *rpc.UserWithDrawReq) (*rpc.UserWithDrawRes, error)
- func (l *WithdrawModel) WithdrawFail(in *rpc.FailWithDrawReq) error
- func (l *WithdrawModel) WithdrawListPage(in *rpc.FindWithDrawReq) (*rpc.FindWithDrawRes, error)
- func (l *WithdrawModel) WithdrawLock(in *rpc.LockWithDrawReq) (*rpc.LockWithDrawRes, error)
- func (l *WithdrawModel) WithdrawPass(in *rpc.PassWithDrawReq) (*rpc.PassWithDrawRes, error)
- func (l *WithdrawModel) WithdrawRefuse(in *rpc.RefuseWithDrawReq) (*rpc.RefuseWithDrawRes, error)
- func (l *WithdrawModel) WithdrawSuccess(in *rpc.SuccessWithDrawReq) (*rpc.SuccessWithDrawRes, error)
- func (l *WithdrawModel) WithdrawTypeUpdate(in *rpc.UpdateWithDrawTypeRequest) (*rpc.UpdateWithDrawTypeResponse, error)
- func (l *WithdrawModel) WithdrawUnlock(in *rpc.UnlockWithDrawReq) (*rpc.UnlockWithDrawRes, error)
- func (l *WithdrawModel) WithdrawUserListPage(in *rpc.UserFindWithDrawReq) (*rpc.UserFindWithDrawRes, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WithdrawModel ¶
func NewWithdrawModel ¶
func NewWithdrawModel(ctx context.Context, db *gorm.DB) *WithdrawModel
func (*WithdrawModel) DeductBalance ¶
func (*WithdrawModel) Withdraw ¶
func (l *WithdrawModel) Withdraw(in *rpc.UserWithDrawReq) (*rpc.UserWithDrawRes, error)
func (*WithdrawModel) WithdrawFail ¶
func (l *WithdrawModel) WithdrawFail(in *rpc.FailWithDrawReq) error
func (*WithdrawModel) WithdrawListPage ¶
func (l *WithdrawModel) WithdrawListPage(in *rpc.FindWithDrawReq) (*rpc.FindWithDrawRes, error)
func (*WithdrawModel) WithdrawLock ¶
func (l *WithdrawModel) WithdrawLock(in *rpc.LockWithDrawReq) (*rpc.LockWithDrawRes, error)
func (*WithdrawModel) WithdrawPass ¶
func (l *WithdrawModel) WithdrawPass(in *rpc.PassWithDrawReq) (*rpc.PassWithDrawRes, error)
func (*WithdrawModel) WithdrawRefuse ¶
func (l *WithdrawModel) WithdrawRefuse(in *rpc.RefuseWithDrawReq) (*rpc.RefuseWithDrawRes, error)
func (*WithdrawModel) WithdrawSuccess ¶
func (l *WithdrawModel) WithdrawSuccess(in *rpc.SuccessWithDrawReq) (*rpc.SuccessWithDrawRes, error)
func (*WithdrawModel) WithdrawTypeUpdate ¶
func (l *WithdrawModel) WithdrawTypeUpdate(in *rpc.UpdateWithDrawTypeRequest) (*rpc.UpdateWithDrawTypeResponse, error)
func (*WithdrawModel) WithdrawUnlock ¶
func (l *WithdrawModel) WithdrawUnlock(in *rpc.UnlockWithDrawReq) (*rpc.UnlockWithDrawRes, error)
func (*WithdrawModel) WithdrawUserListPage ¶
func (l *WithdrawModel) WithdrawUserListPage(in *rpc.UserFindWithDrawReq) (*rpc.UserFindWithDrawRes, error)
Click to show internal directories.
Click to hide internal directories.