withdraw_detail

package
v0.0.0-...-b08fcc5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WithdrawStatusCreated     = 1 // 创建(审核中)
	WithdrawStatusCheckPassed = 2 // 审核通过
	WithdrawStatusCheckFailed = 3 // 审核拒绝(未退回钻石)
	WithdrawStatusRefunded    = 4 // 审核拒绝(已退回钻石)
)

Variables

View Source
var File_proto_withdraw_detail_withdraw_detail_proto protoreflect.FileDescriptor

Functions

func NewAccountWithdrawDetailEndpoints

func NewAccountWithdrawDetailEndpoints() []*api.Endpoint

func RegisterAccountWithdrawDetailHandler

func RegisterAccountWithdrawDetailHandler(s server.Server, hdlr AccountWithdrawDetailHandler, opts ...server.HandlerOption) error

Types

type AccountWithdrawDetailService

type AccountWithdrawDetailService interface {
	CreateWithdrawDetail(ctx context.Context, in *CreateWithdrawDetailReq, opts ...client.CallOption) (*CreateWithdrawDetailRes, error)
	WithdrawDetails(ctx context.Context, in *WithdrawDetailsReq, opts ...client.CallOption) (*WithdrawDetailsRes, error)
	UpdateStatus(ctx context.Context, in *UpdateStatusReq, opts ...client.CallOption) (*UpdateStatusRes, error)
	GetById(ctx context.Context, in *GetByIdReq, opts ...client.CallOption) (*GetByIdRes, error)
}

func NewAccountWithdrawDetailService

func NewAccountWithdrawDetailService(name string, c client.Client) AccountWithdrawDetailService

type BankAccount

type BankAccount struct {
	SwiftCode       string `protobuf:"bytes,3,opt,name=swift_code,json=swiftCode,proto3" json:"swift_code"`                      // 银行码
	BankName        string `protobuf:"bytes,4,opt,name=bank_name,json=bankName,proto3" json:"bank_name"`                         // 银行名称
	AccountName     string `protobuf:"bytes,5,opt,name=account_name,json=accountName,proto3" json:"account_name"`                // 银行卡姓名
	AccountNumber   string `protobuf:"bytes,6,opt,name=account_number,json=accountNumber,proto3" json:"account_number"`          // 银行卡账号,数字
	MethodToPayTax  string `protobuf:"bytes,7,opt,name=method_to_pay_tax,json=methodToPayTax,proto3" json:"method_to_pay_tax"`   // 纳税方式: personal/company
	DetailAddress   string `protobuf:"bytes,8,opt,name=detail_address,json=detailAddress,proto3" json:"detail_address"`          // 详细地址
	PostCode        string `protobuf:"bytes,9,opt,name=post_code,json=postCode,proto3" json:"post_code"`                         // 邮政编码
	IdCardFront     string `protobuf:"bytes,10,opt,name=id_card_front,json=idCardFront,proto3" json:"id_card_front"`             // 身份证正面
	IdCardBack      string `protobuf:"bytes,11,opt,name=id_card_back,json=idCardBack,proto3" json:"id_card_back"`                // 身份证反面
	FirstName       string `protobuf:"bytes,12,opt,name=first_name,json=firstName,proto3" json:"first_name"`                     // 姓
	LastName        string `protobuf:"bytes,13,opt,name=last_name,json=lastName,proto3" json:"last_name"`                        // 名字
	Birthday        string `protobuf:"bytes,14,opt,name=birthday,proto3" json:"birthday"`                                        // 生日,年-月-日
	Contact         string `protobuf:"bytes,15,opt,name=contact,proto3" json:"contact"`                                          // 联系方式
	Country         string `protobuf:"bytes,16,opt,name=country,proto3" json:"country"`                                          // 国家
	OpeningBankName string `protobuf:"bytes,17,opt,name=opening_bank_name,json=openingBankName,proto3" json:"opening_bank_name"` // 开户行名称
	// contains filtered or unexported fields
}

func (*BankAccount) Descriptor deprecated

func (*BankAccount) Descriptor() ([]byte, []int)

Deprecated: Use BankAccount.ProtoReflect.Descriptor instead.

func (*BankAccount) GetAccountName

func (x *BankAccount) GetAccountName() string

func (*BankAccount) GetAccountNumber

func (x *BankAccount) GetAccountNumber() string

func (*BankAccount) GetBankName

func (x *BankAccount) GetBankName() string

func (*BankAccount) GetBirthday

func (x *BankAccount) GetBirthday() string

func (*BankAccount) GetContact

func (x *BankAccount) GetContact() string

func (*BankAccount) GetCountry

func (x *BankAccount) GetCountry() string

func (*BankAccount) GetDetailAddress

func (x *BankAccount) GetDetailAddress() string

func (*BankAccount) GetFirstName

func (x *BankAccount) GetFirstName() string

func (*BankAccount) GetIdCardBack

func (x *BankAccount) GetIdCardBack() string

func (*BankAccount) GetIdCardFront

func (x *BankAccount) GetIdCardFront() string

func (*BankAccount) GetLastName

func (x *BankAccount) GetLastName() string

func (*BankAccount) GetMethodToPayTax

func (x *BankAccount) GetMethodToPayTax() string

func (*BankAccount) GetOpeningBankName

func (x *BankAccount) GetOpeningBankName() string

func (*BankAccount) GetPostCode

func (x *BankAccount) GetPostCode() string

func (*BankAccount) GetSwiftCode

func (x *BankAccount) GetSwiftCode() string

func (*BankAccount) ProtoMessage

func (*BankAccount) ProtoMessage()

func (*BankAccount) ProtoReflect

func (x *BankAccount) ProtoReflect() protoreflect.Message

func (*BankAccount) Reset

func (x *BankAccount) Reset()

func (*BankAccount) String

func (x *BankAccount) String() string

type CreateWithdrawDetailReq

type CreateWithdrawDetailReq struct {
	DetailId      int64        `protobuf:"varint,1,opt,name=detail_id,json=detailId,proto3" json:"detail_id"`                // 记录ID(同扣钻石记录ID)
	UserId        int64        `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id"`                      // user_id
	DiamondAmount int64        `protobuf:"varint,3,opt,name=diamond_amount,json=diamondAmount,proto3" json:"diamond_amount"` // 提现钻石数量
	WithdrawWay   string       `protobuf:"bytes,4,opt,name=withdraw_way,json=withdrawWay,proto3" json:"withdraw_way"`        // 提现方式  1 normal 2 fast
	MoneyType     string       `protobuf:"bytes,5,opt,name=money_type,json=moneyType,proto3" json:"money_type"`              // 提现货币种类(国家码,仅含五国:US美国/CN中国/ID印尼/TH泰国/VN越南)
	MoneyAmount   int64        `protobuf:"varint,6,opt,name=money_amount,json=moneyAmount,proto3" json:"money_amount"`       // 提现金额(整数)
	FeeAmount     int64        `protobuf:"varint,7,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount"`             // 手续费金额(整数)
	BankAccount   *BankAccount `protobuf:"bytes,8,opt,name=bank_account,json=bankAccount,proto3" json:"bank_account"`
	// contains filtered or unexported fields
}

func (*CreateWithdrawDetailReq) Descriptor deprecated

func (*CreateWithdrawDetailReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateWithdrawDetailReq.ProtoReflect.Descriptor instead.

func (*CreateWithdrawDetailReq) GetBankAccount

func (x *CreateWithdrawDetailReq) GetBankAccount() *BankAccount

func (*CreateWithdrawDetailReq) GetDetailId

func (x *CreateWithdrawDetailReq) GetDetailId() int64

func (*CreateWithdrawDetailReq) GetDiamondAmount

func (x *CreateWithdrawDetailReq) GetDiamondAmount() int64

func (*CreateWithdrawDetailReq) GetFeeAmount

func (x *CreateWithdrawDetailReq) GetFeeAmount() int64

func (*CreateWithdrawDetailReq) GetMoneyAmount

func (x *CreateWithdrawDetailReq) GetMoneyAmount() int64

func (*CreateWithdrawDetailReq) GetMoneyType

func (x *CreateWithdrawDetailReq) GetMoneyType() string

func (*CreateWithdrawDetailReq) GetUserId

func (x *CreateWithdrawDetailReq) GetUserId() int64

func (*CreateWithdrawDetailReq) GetWithdrawWay

func (x *CreateWithdrawDetailReq) GetWithdrawWay() string

func (*CreateWithdrawDetailReq) ProtoMessage

func (*CreateWithdrawDetailReq) ProtoMessage()

func (*CreateWithdrawDetailReq) ProtoReflect

func (x *CreateWithdrawDetailReq) ProtoReflect() protoreflect.Message

func (*CreateWithdrawDetailReq) Reset

func (x *CreateWithdrawDetailReq) Reset()

func (*CreateWithdrawDetailReq) String

func (x *CreateWithdrawDetailReq) String() string

type CreateWithdrawDetailRes

type CreateWithdrawDetailRes struct {
	Detail *WithdrawDetail `protobuf:"bytes,1,opt,name=detail,proto3" json:"detail"`
	// contains filtered or unexported fields
}

func (*CreateWithdrawDetailRes) Descriptor deprecated

func (*CreateWithdrawDetailRes) Descriptor() ([]byte, []int)

Deprecated: Use CreateWithdrawDetailRes.ProtoReflect.Descriptor instead.

func (*CreateWithdrawDetailRes) GetDetail

func (x *CreateWithdrawDetailRes) GetDetail() *WithdrawDetail

func (*CreateWithdrawDetailRes) ProtoMessage

func (*CreateWithdrawDetailRes) ProtoMessage()

func (*CreateWithdrawDetailRes) ProtoReflect

func (x *CreateWithdrawDetailRes) ProtoReflect() protoreflect.Message

func (*CreateWithdrawDetailRes) Reset

func (x *CreateWithdrawDetailRes) Reset()

func (*CreateWithdrawDetailRes) String

func (x *CreateWithdrawDetailRes) String() string

type GetByIdReq

type GetByIdReq struct {
	DetailId int64 `protobuf:"varint,1,opt,name=detail_id,json=detailId,proto3" json:"detail_id"` // 记录ID(同扣钻石记录ID)
	// contains filtered or unexported fields
}

func (*GetByIdReq) Descriptor deprecated

func (*GetByIdReq) Descriptor() ([]byte, []int)

Deprecated: Use GetByIdReq.ProtoReflect.Descriptor instead.

func (*GetByIdReq) GetDetailId

func (x *GetByIdReq) GetDetailId() int64

func (*GetByIdReq) ProtoMessage

func (*GetByIdReq) ProtoMessage()

func (*GetByIdReq) ProtoReflect

func (x *GetByIdReq) ProtoReflect() protoreflect.Message

func (*GetByIdReq) Reset

func (x *GetByIdReq) Reset()

func (*GetByIdReq) String

func (x *GetByIdReq) String() string

type GetByIdRes

type GetByIdRes struct {
	Detail *WithdrawDetail `protobuf:"bytes,1,opt,name=detail,proto3" json:"detail"`
	// contains filtered or unexported fields
}

func (*GetByIdRes) Descriptor deprecated

func (*GetByIdRes) Descriptor() ([]byte, []int)

Deprecated: Use GetByIdRes.ProtoReflect.Descriptor instead.

func (*GetByIdRes) GetDetail

func (x *GetByIdRes) GetDetail() *WithdrawDetail

func (*GetByIdRes) ProtoMessage

func (*GetByIdRes) ProtoMessage()

func (*GetByIdRes) ProtoReflect

func (x *GetByIdRes) ProtoReflect() protoreflect.Message

func (*GetByIdRes) Reset

func (x *GetByIdRes) Reset()

func (*GetByIdRes) String

func (x *GetByIdRes) String() string

type UpdateStatusReq

type UpdateStatusReq struct {
	DetailId int64  `protobuf:"varint,1,opt,name=detail_id,json=detailId,proto3" json:"detail_id"` // 记录ID(同扣钻石记录ID)
	Status   int32  `protobuf:"varint,2,opt,name=status,proto3" json:"status"`                     // 状态: 1 创建(审核中) 2 审核通过 3 审核拒绝(未退回钻石) 4 审核拒绝(已退回钻石)
	Remark   string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark"`
	// contains filtered or unexported fields
}

func (*UpdateStatusReq) Descriptor deprecated

func (*UpdateStatusReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateStatusReq.ProtoReflect.Descriptor instead.

func (*UpdateStatusReq) GetDetailId

func (x *UpdateStatusReq) GetDetailId() int64

func (*UpdateStatusReq) GetRemark

func (x *UpdateStatusReq) GetRemark() string

func (*UpdateStatusReq) GetStatus

func (x *UpdateStatusReq) GetStatus() int32

func (*UpdateStatusReq) ProtoMessage

func (*UpdateStatusReq) ProtoMessage()

func (*UpdateStatusReq) ProtoReflect

func (x *UpdateStatusReq) ProtoReflect() protoreflect.Message

func (*UpdateStatusReq) Reset

func (x *UpdateStatusReq) Reset()

func (*UpdateStatusReq) String

func (x *UpdateStatusReq) String() string

type UpdateStatusRes

type UpdateStatusRes struct {
	Detail *WithdrawDetail `protobuf:"bytes,1,opt,name=detail,proto3" json:"detail"`
	// contains filtered or unexported fields
}

func (*UpdateStatusRes) Descriptor deprecated

func (*UpdateStatusRes) Descriptor() ([]byte, []int)

Deprecated: Use UpdateStatusRes.ProtoReflect.Descriptor instead.

func (*UpdateStatusRes) GetDetail

func (x *UpdateStatusRes) GetDetail() *WithdrawDetail

func (*UpdateStatusRes) ProtoMessage

func (*UpdateStatusRes) ProtoMessage()

func (*UpdateStatusRes) ProtoReflect

func (x *UpdateStatusRes) ProtoReflect() protoreflect.Message

func (*UpdateStatusRes) Reset

func (x *UpdateStatusRes) Reset()

func (*UpdateStatusRes) String

func (x *UpdateStatusRes) String() string

type WithdrawDetail

type WithdrawDetail struct {
	DetailId       int64  `protobuf:"varint,1,opt,name=detail_id,json=detailId,proto3" json:"detail_id"`                     // 记录ID(同扣钻石记录ID)
	UserId         int64  `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id"`                           // user_id
	DiamondAmount  int64  `protobuf:"varint,3,opt,name=diamond_amount,json=diamondAmount,proto3" json:"diamond_amount"`      // 提现钻石数量
	WithdrawWay    string `protobuf:"bytes,4,opt,name=withdraw_way,json=withdrawWay,proto3" json:"withdraw_way"`             // 提现方式  1 normal 2 fast
	MoneyType      string `protobuf:"bytes,5,opt,name=money_type,json=moneyType,proto3" json:"money_type"`                   // 提现货币种类(国家码,仅含五国:US美国/CN中国/ID印尼/TH泰国/VN越南)
	MoneyAmount    int64  `protobuf:"varint,6,opt,name=money_amount,json=moneyAmount,proto3" json:"money_amount"`            // 提现金额(整数)
	FeeAmount      int64  `protobuf:"varint,7,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount"`                  // 手续费金额(整数)
	Status         int32  `protobuf:"varint,8,opt,name=status,proto3" json:"status"`                                         // 状态: 1 创建(审核中) 2 审核通过 3 审核拒绝(未退回钻石) 4 审核拒绝(已退回钻石)
	RefundDetailId int64  `protobuf:"varint,9,opt,name=refund_detail_id,json=refundDetailId,proto3" json:"refund_detail_id"` // 退款流水id(同加钻石记录ID)
	SwiftCode      string `protobuf:"bytes,10,opt,name=swift_code,json=swiftCode,proto3" json:"swift_code"`                  // 银行码
	BankName       string `protobuf:"bytes,11,opt,name=bank_name,json=bankName,proto3" json:"bank_name"`                     // 银行名称
	AccountName    string `protobuf:"bytes,12,opt,name=account_name,json=accountName,proto3" json:"account_name"`            // 银行卡姓名
	AccountNumber  string `protobuf:"bytes,13,opt,name=account_number,json=accountNumber,proto3" json:"account_number"`      // 银行卡账号,数字
	Contact        string `protobuf:"bytes,14,opt,name=contact,proto3" json:"contact"`                                       // 联系方式
	CreatedAt      string `protobuf:"bytes,20,opt,name=created_at,json=createdAt,proto3" json:"created_at"`                  // 申请提现时间
	CheckAt        string `protobuf:"bytes,21,opt,name=check_at,json=checkAt,proto3" json:"check_at"`                        // 审核时间(通过/未通过)
	RefundAt       string `protobuf:"bytes,22,opt,name=refund_at,json=refundAt,proto3" json:"refund_at"`                     // 审核拒绝后退款时间
	Remark         string `protobuf:"bytes,23,opt,name=remark,proto3" json:"remark"`                                         // 备注
	// contains filtered or unexported fields
}

func (*WithdrawDetail) Descriptor deprecated

func (*WithdrawDetail) Descriptor() ([]byte, []int)

Deprecated: Use WithdrawDetail.ProtoReflect.Descriptor instead.

func (*WithdrawDetail) GetAccountName

func (x *WithdrawDetail) GetAccountName() string

func (*WithdrawDetail) GetAccountNumber

func (x *WithdrawDetail) GetAccountNumber() string

func (*WithdrawDetail) GetBankName

func (x *WithdrawDetail) GetBankName() string

func (*WithdrawDetail) GetCheckAt

func (x *WithdrawDetail) GetCheckAt() string

func (*WithdrawDetail) GetContact

func (x *WithdrawDetail) GetContact() string

func (*WithdrawDetail) GetCreatedAt

func (x *WithdrawDetail) GetCreatedAt() string

func (*WithdrawDetail) GetDetailId

func (x *WithdrawDetail) GetDetailId() int64

func (*WithdrawDetail) GetDiamondAmount

func (x *WithdrawDetail) GetDiamondAmount() int64

func (*WithdrawDetail) GetFeeAmount

func (x *WithdrawDetail) GetFeeAmount() int64

func (*WithdrawDetail) GetMoneyAmount

func (x *WithdrawDetail) GetMoneyAmount() int64

func (*WithdrawDetail) GetMoneyType

func (x *WithdrawDetail) GetMoneyType() string

func (*WithdrawDetail) GetRefundAt

func (x *WithdrawDetail) GetRefundAt() string

func (*WithdrawDetail) GetRefundDetailId

func (x *WithdrawDetail) GetRefundDetailId() int64

func (*WithdrawDetail) GetRemark

func (x *WithdrawDetail) GetRemark() string

func (*WithdrawDetail) GetStatus

func (x *WithdrawDetail) GetStatus() int32

func (*WithdrawDetail) GetSwiftCode

func (x *WithdrawDetail) GetSwiftCode() string

func (*WithdrawDetail) GetUserId

func (x *WithdrawDetail) GetUserId() int64

func (*WithdrawDetail) GetWithdrawWay

func (x *WithdrawDetail) GetWithdrawWay() string

func (*WithdrawDetail) ProtoMessage

func (*WithdrawDetail) ProtoMessage()

func (*WithdrawDetail) ProtoReflect

func (x *WithdrawDetail) ProtoReflect() protoreflect.Message

func (*WithdrawDetail) Reset

func (x *WithdrawDetail) Reset()

func (*WithdrawDetail) String

func (x *WithdrawDetail) String() string

type WithdrawDetailsReq

type WithdrawDetailsReq struct {
	UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id"` // user_id
	Page   int64 `protobuf:"varint,3,opt,name=page,proto3" json:"page"`                   // 页码
	Size   int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size"`                   // 单页条数
	// contains filtered or unexported fields
}

func (*WithdrawDetailsReq) Descriptor deprecated

func (*WithdrawDetailsReq) Descriptor() ([]byte, []int)

Deprecated: Use WithdrawDetailsReq.ProtoReflect.Descriptor instead.

func (*WithdrawDetailsReq) GetPage

func (x *WithdrawDetailsReq) GetPage() int64

func (*WithdrawDetailsReq) GetSize

func (x *WithdrawDetailsReq) GetSize() int64

func (*WithdrawDetailsReq) GetUserId

func (x *WithdrawDetailsReq) GetUserId() int64

func (*WithdrawDetailsReq) ProtoMessage

func (*WithdrawDetailsReq) ProtoMessage()

func (*WithdrawDetailsReq) ProtoReflect

func (x *WithdrawDetailsReq) ProtoReflect() protoreflect.Message

func (*WithdrawDetailsReq) Reset

func (x *WithdrawDetailsReq) Reset()

func (*WithdrawDetailsReq) String

func (x *WithdrawDetailsReq) String() string

type WithdrawDetailsRes

type WithdrawDetailsRes struct {
	List  []*WithdrawDetail `protobuf:"bytes,1,rep,name=list,proto3" json:"list"`
	Page  int64             `protobuf:"varint,2,opt,name=page,proto3" json:"page"`   // 当前页码
	Size  int64             `protobuf:"varint,3,opt,name=size,proto3" json:"size"`   // 单页条数
	Total int64             `protobuf:"varint,4,opt,name=total,proto3" json:"total"` // 符合条件的总记录数量
	// contains filtered or unexported fields
}

func (*WithdrawDetailsRes) Descriptor deprecated

func (*WithdrawDetailsRes) Descriptor() ([]byte, []int)

Deprecated: Use WithdrawDetailsRes.ProtoReflect.Descriptor instead.

func (*WithdrawDetailsRes) GetList

func (x *WithdrawDetailsRes) GetList() []*WithdrawDetail

func (*WithdrawDetailsRes) GetPage

func (x *WithdrawDetailsRes) GetPage() int64

func (*WithdrawDetailsRes) GetSize

func (x *WithdrawDetailsRes) GetSize() int64

func (*WithdrawDetailsRes) GetTotal

func (x *WithdrawDetailsRes) GetTotal() int64

func (*WithdrawDetailsRes) ProtoMessage

func (*WithdrawDetailsRes) ProtoMessage()

func (*WithdrawDetailsRes) ProtoReflect

func (x *WithdrawDetailsRes) ProtoReflect() protoreflect.Message

func (*WithdrawDetailsRes) Reset

func (x *WithdrawDetailsRes) Reset()

func (*WithdrawDetailsRes) String

func (x *WithdrawDetailsRes) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL