Documentation ¶
Index ¶
- Constants
- Variables
- func DiamondEventToString(t int32) string
- func GetMoneyAndFee(moneyType, withdrawWay string, diamond int64) (money, fee int64)
- func IsAllowWithdrawMoneyType(countryCode string) bool
- func IsAllowWithdrawWay(way string) bool
- func NewAccountDiamondEndpoints() []*api.Endpoint
- func RateOfCountry(countryCode string) int64
- func RegisterAccountDiamondHandler(s server.Server, hdlr AccountDiamondHandler, opts ...server.HandlerOption) error
- func WithdrawRateMap() map[string]int64
- func WithdrawWay(code int32) string
- func WithdrawWayCode(way string) int32
- type AccountDiamondHandler
- type AccountDiamondService
- type AdminSummary
- type CreateDetailReq
- type DecrReq
- func (*DecrReq) Descriptor() ([]byte, []int)deprecated
- func (x *DecrReq) GetEvent() int32
- func (x *DecrReq) GetOuterOrderId() int64
- func (x *DecrReq) GetSummary() string
- func (x *DecrReq) GetUserId() int64
- func (x *DecrReq) GetValue() int64
- func (*DecrReq) ProtoMessage()
- func (x *DecrReq) ProtoReflect() protoreflect.Message
- func (x *DecrReq) Reset()
- func (x *DecrReq) String() string
- type DecrRes
- func (*DecrRes) Descriptor() ([]byte, []int)deprecated
- func (x *DecrRes) GetChangeNumber() int64
- func (x *DecrRes) GetChangeTime() string
- func (x *DecrRes) GetDetailId() int64
- func (x *DecrRes) GetNewValue() int64
- func (x *DecrRes) GetUserId() int64
- func (*DecrRes) ProtoMessage()
- func (x *DecrRes) ProtoReflect() protoreflect.Message
- func (x *DecrRes) Reset()
- func (x *DecrRes) String() string
- type DiamondDetailItem
- func (*DiamondDetailItem) Descriptor() ([]byte, []int)deprecated
- func (x *DiamondDetailItem) GetChangeNumber() int64
- func (x *DiamondDetailItem) GetChangeTime() string
- func (x *DiamondDetailItem) GetCreatedAt() string
- func (x *DiamondDetailItem) GetDetailId() int64
- func (x *DiamondDetailItem) GetEvent() int32
- func (x *DiamondDetailItem) GetOuterOrderId() int64
- func (x *DiamondDetailItem) GetSummary() string
- func (x *DiamondDetailItem) GetType() int32
- func (x *DiamondDetailItem) GetUserId() int64
- func (x *DiamondDetailItem) GetValue() int64
- func (x *DiamondDetailItem) GetValueAfter() int64
- func (x *DiamondDetailItem) GetValueBefore() int64
- func (*DiamondDetailItem) ProtoMessage()
- func (x *DiamondDetailItem) ProtoReflect() protoreflect.Message
- func (x *DiamondDetailItem) Reset()
- func (x *DiamondDetailItem) String() string
- type DiamondSummaryBuyProp
- type DiamondSummaryIncomeOfLive
- type DiamondSummaryReceiveGift
- type DiamondSummaryRechargeByAdmin
- type DiamondSummaryReduceByAdmin
- type DiamondSummaryWithdraw
- type DiamondSummaryWithdrawFail
- type GetMultiReq
- type GetMultiRes
- type GetReq
- type GetRes
- type GetSumMultiReq
- func (*GetSumMultiReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetSumMultiReq) GetEndTime() string
- func (x *GetSumMultiReq) GetEvent() int32
- func (x *GetSumMultiReq) GetStartTime() string
- func (x *GetSumMultiReq) GetUserId() []int64
- func (*GetSumMultiReq) ProtoMessage()
- func (x *GetSumMultiReq) ProtoReflect() protoreflect.Message
- func (x *GetSumMultiReq) Reset()
- func (x *GetSumMultiReq) String() string
- type GetSumMultiRes
- type GetSumOfEventReq
- func (*GetSumOfEventReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetSumOfEventReq) GetEndTime() string
- func (x *GetSumOfEventReq) GetEvent() []int32
- func (x *GetSumOfEventReq) GetStartTime() string
- func (*GetSumOfEventReq) ProtoMessage()
- func (x *GetSumOfEventReq) ProtoReflect() protoreflect.Message
- func (x *GetSumOfEventReq) Reset()
- func (x *GetSumOfEventReq) String() string
- type GetSumOfEventRes
- func (*GetSumOfEventRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetSumOfEventRes) GetEventValue(event int32) int64
- func (x *GetSumOfEventRes) GetSumMap() map[int32]int64
- func (*GetSumOfEventRes) ProtoMessage()
- func (x *GetSumOfEventRes) ProtoReflect() protoreflect.Message
- func (x *GetSumOfEventRes) Reset()
- func (x *GetSumOfEventRes) String() string
- type IncrReq
- func (*IncrReq) Descriptor() ([]byte, []int)deprecated
- func (x *IncrReq) GetEvent() int32
- func (x *IncrReq) GetOuterOrderId() int64
- func (x *IncrReq) GetSummary() string
- func (x *IncrReq) GetUserId() int64
- func (x *IncrReq) GetValue() int64
- func (*IncrReq) ProtoMessage()
- func (x *IncrReq) ProtoReflect() protoreflect.Message
- func (x *IncrReq) Reset()
- func (x *IncrReq) String() string
- type IncrRes
- func (*IncrRes) Descriptor() ([]byte, []int)deprecated
- func (x *IncrRes) GetChangeNumber() int64
- func (x *IncrRes) GetChangeTime() string
- func (x *IncrRes) GetDetailId() int64
- func (x *IncrRes) GetNewValue() int64
- func (x *IncrRes) GetUserId() int64
- func (*IncrRes) ProtoMessage()
- func (x *IncrRes) ProtoReflect() protoreflect.Message
- func (x *IncrRes) Reset()
- func (x *IncrRes) String() string
- type ListDetailReq
- func (*ListDetailReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListDetailReq) GetEndTime() string
- func (x *ListDetailReq) GetEvent() []int32
- func (x *ListDetailReq) GetPage() int64
- func (x *ListDetailReq) GetSize() int64
- func (x *ListDetailReq) GetStartTime() string
- func (x *ListDetailReq) GetType() int32
- func (x *ListDetailReq) GetUserId() int64
- func (*ListDetailReq) ProtoMessage()
- func (x *ListDetailReq) ProtoReflect() protoreflect.Message
- func (x *ListDetailReq) Reset()
- func (x *ListDetailReq) String() string
- type ListDetailRes
- func (*ListDetailRes) Descriptor() ([]byte, []int)deprecated
- func (x *ListDetailRes) GetItems() []*DiamondDetailItem
- func (x *ListDetailRes) GetPage() int64
- func (x *ListDetailRes) GetSize() int64
- func (x *ListDetailRes) GetTotal() int64
- func (*ListDetailRes) ProtoMessage()
- func (x *ListDetailRes) ProtoReflect() protoreflect.Message
- func (x *ListDetailRes) Reset()
- func (x *ListDetailRes) String() string
- type TotalIncomeReq
- func (*TotalIncomeReq) Descriptor() ([]byte, []int)deprecated
- func (x *TotalIncomeReq) GetEndTime() string
- func (x *TotalIncomeReq) GetEvent() []int32
- func (x *TotalIncomeReq) GetStartTime() string
- func (x *TotalIncomeReq) GetUserId() int64
- func (*TotalIncomeReq) ProtoMessage()
- func (x *TotalIncomeReq) ProtoReflect() protoreflect.Message
- func (x *TotalIncomeReq) Reset()
- func (x *TotalIncomeReq) String() string
- type TotalIncomeRes
- func (*TotalIncomeRes) Descriptor() ([]byte, []int)deprecated
- func (x *TotalIncomeRes) GetEventAmount(event int32) int64
- func (x *TotalIncomeRes) GetIncomeMap() map[int32]int64
- func (*TotalIncomeRes) ProtoMessage()
- func (x *TotalIncomeRes) ProtoReflect() protoreflect.Message
- func (x *TotalIncomeRes) Reset()
- func (x *TotalIncomeRes) String() string
- type WithdrawReq
- func (*WithdrawReq) Descriptor() ([]byte, []int)deprecated
- func (x *WithdrawReq) GetDiamondAmount() int64
- func (x *WithdrawReq) GetFeeAmount() int64
- func (x *WithdrawReq) GetMoneyAmount() int64
- func (x *WithdrawReq) GetMoneyType() string
- func (x *WithdrawReq) GetOuterOrderId() int64
- func (x *WithdrawReq) GetUserId() int64
- func (x *WithdrawReq) GetWithdrawWay() string
- func (*WithdrawReq) ProtoMessage()
- func (x *WithdrawReq) ProtoReflect() protoreflect.Message
- func (x *WithdrawReq) Reset()
- func (x *WithdrawReq) String() string
- type WithdrawRes
- func (*WithdrawRes) Descriptor() ([]byte, []int)deprecated
- func (x *WithdrawRes) GetChangeNumber() int64
- func (x *WithdrawRes) GetChangeTime() string
- func (x *WithdrawRes) GetDetailId() int64
- func (x *WithdrawRes) GetNewValue() int64
- func (x *WithdrawRes) GetUserId() int64
- func (*WithdrawRes) ProtoMessage()
- func (x *WithdrawRes) ProtoReflect() protoreflect.Message
- func (x *WithdrawRes) Reset()
- func (x *WithdrawRes) String() string
Constants ¶
const ( TypeIncr = 1 // 增加 TypeDecr = 2 // 减少 DiamondWithdrawWayNormal = "normal" DiamondWithdrawWayFast = "fast" MinWithdrawDiamond = 15000 // 提现最低钻石数 )
const ( DiamondEventReceiveGift = 1 // 收礼物 DiamondEventRechargeByAdmin = 2 // 后台充值 DiamondEventWithdrawFail = 3 // 提现退回 DiamondEventIncomeOfLive = 4 // 付费直播收益 DiamondEventWithdraw = 10001 // 提现 DiamondEventReduceByAdmin = 10002 // 后台扣除 DiamondEventBuyProp = 10003 // 购买道具 )
Variables ¶
var File_proto_diamond_diamond_proto protoreflect.FileDescriptor
Functions ¶
func DiamondEventToString ¶
func GetMoneyAndFee ¶
func IsAllowWithdrawWay ¶
func RateOfCountry ¶
func RegisterAccountDiamondHandler ¶
func RegisterAccountDiamondHandler(s server.Server, hdlr AccountDiamondHandler, opts ...server.HandlerOption) error
func WithdrawRateMap ¶
WithdrawRateMap 基于美元的汇率表 数值是汇率的100倍 泰国汇率1USD=35THB 越南汇率1USD=23000VND 印尼汇率1USD=14300IDR 中国汇率1USD=6CNY
func WithdrawWay ¶
func WithdrawWayCode ¶
Types ¶
type AccountDiamondHandler ¶
type AccountDiamondHandler interface { Get(context.Context, *GetReq, *GetRes) error GetMulti(context.Context, *GetMultiReq, *GetMultiRes) error Incr(context.Context, *IncrReq, *IncrRes) error Decr(context.Context, *DecrReq, *DecrRes) error CreateDetail(context.Context, *CreateDetailReq, *emptypb.Empty) error ListDetail(context.Context, *ListDetailReq, *ListDetailRes) error TotalIncome(context.Context, *TotalIncomeReq, *TotalIncomeRes) error Withdraw(context.Context, *WithdrawReq, *WithdrawRes) error GetSumMulti(context.Context, *GetSumMultiReq, *GetSumMultiRes) error GetSumOfEvent(context.Context, *GetSumOfEventReq, *GetSumOfEventRes) error }
type AccountDiamondService ¶
type AccountDiamondService interface { Get(ctx context.Context, in *GetReq, opts ...client.CallOption) (*GetRes, error) GetMulti(ctx context.Context, in *GetMultiReq, opts ...client.CallOption) (*GetMultiRes, error) Incr(ctx context.Context, in *IncrReq, opts ...client.CallOption) (*IncrRes, error) Decr(ctx context.Context, in *DecrReq, opts ...client.CallOption) (*DecrRes, error) CreateDetail(ctx context.Context, in *CreateDetailReq, opts ...client.CallOption) (*emptypb.Empty, error) ListDetail(ctx context.Context, in *ListDetailReq, opts ...client.CallOption) (*ListDetailRes, error) TotalIncome(ctx context.Context, in *TotalIncomeReq, opts ...client.CallOption) (*TotalIncomeRes, error) Withdraw(ctx context.Context, in *WithdrawReq, opts ...client.CallOption) (*WithdrawRes, error) GetSumMulti(ctx context.Context, in *GetSumMultiReq, opts ...client.CallOption) (*GetSumMultiRes, error) GetSumOfEvent(ctx context.Context, in *GetSumOfEventReq, opts ...client.CallOption) (*GetSumOfEventRes, error) }
func NewAccountDiamondService ¶
func NewAccountDiamondService(name string, c client.Client) AccountDiamondService
type AdminSummary ¶
type AdminSummary struct { AdminId string `json:"admin_id"` AdminName string `json:"admin_name"` Remark string `json:"remark"` }
func (*AdminSummary) ToJsonString ¶
func (b *AdminSummary) ToJsonString() string
type CreateDetailReq ¶
type CreateDetailReq struct { Detail *DiamondDetailItem `protobuf:"bytes,1,opt,name=detail,proto3" json:"detail"` // 变更记录 // contains filtered or unexported fields }
func (*CreateDetailReq) Descriptor
deprecated
func (*CreateDetailReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateDetailReq.ProtoReflect.Descriptor instead.
func (*CreateDetailReq) GetDetail ¶
func (x *CreateDetailReq) GetDetail() *DiamondDetailItem
func (*CreateDetailReq) ProtoMessage ¶
func (*CreateDetailReq) ProtoMessage()
func (*CreateDetailReq) ProtoReflect ¶
func (x *CreateDetailReq) ProtoReflect() protoreflect.Message
func (*CreateDetailReq) Reset ¶
func (x *CreateDetailReq) Reset()
func (*CreateDetailReq) String ¶
func (x *CreateDetailReq) String() string
type DecrReq ¶
type DecrReq struct { OuterOrderId int64 `protobuf:"varint,1,opt,name=outer_order_id,json=outerOrderId,proto3" json:"outer_order_id"` // 外部单号 UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id"` // 用户id Value int64 `protobuf:"varint,3,opt,name=value,proto3" json:"value"` // 减少金额 Event int32 `protobuf:"varint,4,opt,name=event,proto3" json:"event"` // 事件 Summary string `protobuf:"bytes,5,opt,name=summary,proto3" json:"summary"` // 摘要:json // contains filtered or unexported fields }
func (*DecrReq) Descriptor
deprecated
func (*DecrReq) GetOuterOrderId ¶
func (*DecrReq) GetSummary ¶
func (*DecrReq) ProtoMessage ¶
func (*DecrReq) ProtoMessage()
func (*DecrReq) ProtoReflect ¶
func (x *DecrReq) ProtoReflect() protoreflect.Message
type DecrRes ¶
type DecrRes struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id"` // 用户id NewValue int64 `protobuf:"varint,2,opt,name=new_value,json=newValue,proto3" json:"new_value"` // 变更后金额 DetailId int64 `protobuf:"varint,3,opt,name=detail_id,json=detailId,proto3" json:"detail_id"` // 流水id ChangeNumber int64 `protobuf:"varint,4,opt,name=change_number,json=changeNumber,proto3" json:"change_number"` // 变更序号 ChangeTime string `protobuf:"bytes,5,opt,name=change_time,json=changeTime,proto3" json:"change_time"` // 时间 // contains filtered or unexported fields }
func (*DecrRes) Descriptor
deprecated
func (*DecrRes) GetChangeNumber ¶
func (*DecrRes) GetChangeTime ¶
func (*DecrRes) GetDetailId ¶
func (*DecrRes) GetNewValue ¶
func (*DecrRes) ProtoMessage ¶
func (*DecrRes) ProtoMessage()
func (*DecrRes) ProtoReflect ¶
func (x *DecrRes) ProtoReflect() protoreflect.Message
type DiamondDetailItem ¶
type DiamondDetailItem struct { DetailId int64 `protobuf:"varint,1,opt,name=detail_id,json=detailId,proto3" json:"detail_id"` // 流水id(唯一) UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id"` // 用户id OuterOrderId int64 `protobuf:"varint,3,opt,name=outer_order_id,json=outerOrderId,proto3" json:"outer_order_id"` // 外部单号(唯一) Event int32 `protobuf:"varint,4,opt,name=event,proto3" json:"event"` // 变更事件 Type int32 `protobuf:"varint,5,opt,name=type,proto3" json:"type"` // 变更方式 1 加 2 减 Value int64 `protobuf:"varint,6,opt,name=value,proto3" json:"value"` // 变更值 ValueBefore int64 `protobuf:"varint,7,opt,name=value_before,json=valueBefore,proto3" json:"value_before"` // 变更之前的值 ValueAfter int64 `protobuf:"varint,8,opt,name=value_after,json=valueAfter,proto3" json:"value_after"` // 变更之后的值 ChangeNumber int64 `protobuf:"varint,9,opt,name=change_number,json=changeNumber,proto3" json:"change_number"` // 变更序号 ChangeTime string `protobuf:"bytes,10,opt,name=change_time,json=changeTime,proto3" json:"change_time"` // 变更时间 Summary string `protobuf:"bytes,11,opt,name=summary,proto3" json:"summary"` // 摘要(透传数据) CreatedAt string `protobuf:"bytes,12,opt,name=created_at,json=createdAt,proto3" json:"created_at"` // 记录生成时间(数据库时间) // contains filtered or unexported fields }
func (*DiamondDetailItem) Descriptor
deprecated
func (*DiamondDetailItem) Descriptor() ([]byte, []int)
Deprecated: Use DiamondDetailItem.ProtoReflect.Descriptor instead.
func (*DiamondDetailItem) GetChangeNumber ¶
func (x *DiamondDetailItem) GetChangeNumber() int64
func (*DiamondDetailItem) GetChangeTime ¶
func (x *DiamondDetailItem) GetChangeTime() string
func (*DiamondDetailItem) GetCreatedAt ¶
func (x *DiamondDetailItem) GetCreatedAt() string
func (*DiamondDetailItem) GetDetailId ¶
func (x *DiamondDetailItem) GetDetailId() int64
func (*DiamondDetailItem) GetEvent ¶
func (x *DiamondDetailItem) GetEvent() int32
func (*DiamondDetailItem) GetOuterOrderId ¶
func (x *DiamondDetailItem) GetOuterOrderId() int64
func (*DiamondDetailItem) GetSummary ¶
func (x *DiamondDetailItem) GetSummary() string
func (*DiamondDetailItem) GetType ¶
func (x *DiamondDetailItem) GetType() int32
func (*DiamondDetailItem) GetUserId ¶
func (x *DiamondDetailItem) GetUserId() int64
func (*DiamondDetailItem) GetValue ¶
func (x *DiamondDetailItem) GetValue() int64
func (*DiamondDetailItem) GetValueAfter ¶
func (x *DiamondDetailItem) GetValueAfter() int64
func (*DiamondDetailItem) GetValueBefore ¶
func (x *DiamondDetailItem) GetValueBefore() int64
func (*DiamondDetailItem) ProtoMessage ¶
func (*DiamondDetailItem) ProtoMessage()
func (*DiamondDetailItem) ProtoReflect ¶
func (x *DiamondDetailItem) ProtoReflect() protoreflect.Message
func (*DiamondDetailItem) Reset ¶
func (x *DiamondDetailItem) Reset()
func (*DiamondDetailItem) String ¶
func (x *DiamondDetailItem) String() string
type DiamondSummaryBuyProp ¶
type DiamondSummaryBuyProp struct {
PropKey string `json:"prop_key"` // 道具标识
}
DiamondSummaryBuyProp 购买道具
func (*DiamondSummaryBuyProp) ToJsonString ¶
func (b *DiamondSummaryBuyProp) ToJsonString() string
type DiamondSummaryIncomeOfLive ¶
type DiamondSummaryIncomeOfLive struct { UserId int64 `json:"user_id"` // 观众uid AnchorId int64 `json:"anchor_id"` // 主播uid LiveId int64 `json:"live_id"` // 直播ID PayType int32 `json:"pay_type"` // 类型: 1 单场付费 2 分钟付费 PayForTime string `json:"pay_for_time"` // 分钟付费具体的时间: 2006-01-02 13:27(单场则为开始付费的那一分钟) Amount int64 `json:"amount"` // 付费金额 }
DiamondSummaryIncomeOfLive 付费直播收益
func (*DiamondSummaryIncomeOfLive) ToJsonString ¶
func (b *DiamondSummaryIncomeOfLive) ToJsonString() string
type DiamondSummaryReceiveGift ¶
type DiamondSummaryReceiveGift struct { GiftId int64 `json:"gift_id"` // 礼物ID GiftName string `json:"gift_name"` // 礼物名称 GiftPrice int64 `json:"gift_price"` // 礼物价格(钻石) GiftCount int64 `json:"gift_count"` // 礼物数量 FromUserId int64 `json:"from_user_id"` // 送礼人 ToUserId int64 `json:"to_user_id"` // 收礼人 GiftScene string `json:"scene"` // 送礼物场景 LiveId int64 `json:"live_id"` // 直播ID GroupId int64 `json:"group_id"` // 粉丝群ID }
DiamondSummaryReceiveGift 收礼物
func (*DiamondSummaryReceiveGift) ToJsonString ¶
func (b *DiamondSummaryReceiveGift) ToJsonString() string
type DiamondSummaryRechargeByAdmin ¶
type DiamondSummaryRechargeByAdmin struct {
AdminSummary
}
DiamondSummaryRechargeByAdmin 后台充值
type DiamondSummaryReduceByAdmin ¶
type DiamondSummaryReduceByAdmin struct {
AdminSummary
}
DiamondSummaryReduceByAdmin 后台扣除
type DiamondSummaryWithdraw ¶
type DiamondSummaryWithdraw struct { MoneyAmount int64 `json:"money_amount"` FeeAmount int64 `json:"fee_amount"` MoneyType string `json:"money_type"` WithdrawWay string `json:"withdraw_way"` SwiftCode string `json:"swift_code"` AccountNumber string `json:"account_number"` }
DiamondSummaryWithdraw 提现
func (*DiamondSummaryWithdraw) ToJsonString ¶
func (b *DiamondSummaryWithdraw) ToJsonString() string
type DiamondSummaryWithdrawFail ¶
type DiamondSummaryWithdrawFail struct {
WithdrawDetailId int64 `json:"withdraw_detail_id"`
}
func (*DiamondSummaryWithdrawFail) ToJsonString ¶
func (b *DiamondSummaryWithdrawFail) ToJsonString() string
type GetMultiReq ¶
type GetMultiReq struct { UserId []int64 `protobuf:"varint,1,rep,packed,name=user_id,json=userId,proto3" json:"user_id"` // 用户id // contains filtered or unexported fields }
func (*GetMultiReq) Descriptor
deprecated
func (*GetMultiReq) Descriptor() ([]byte, []int)
Deprecated: Use GetMultiReq.ProtoReflect.Descriptor instead.
func (*GetMultiReq) GetUserId ¶
func (x *GetMultiReq) GetUserId() []int64
func (*GetMultiReq) ProtoMessage ¶
func (*GetMultiReq) ProtoMessage()
func (*GetMultiReq) ProtoReflect ¶
func (x *GetMultiReq) ProtoReflect() protoreflect.Message
func (*GetMultiReq) Reset ¶
func (x *GetMultiReq) Reset()
func (*GetMultiReq) String ¶
func (x *GetMultiReq) String() string
type GetMultiRes ¶
type GetMultiRes struct { BalanceMap map[int64]int64 `` // 余额map /* 171-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetMultiRes) Descriptor
deprecated
func (*GetMultiRes) Descriptor() ([]byte, []int)
Deprecated: Use GetMultiRes.ProtoReflect.Descriptor instead.
func (*GetMultiRes) GetBalanceMap ¶
func (x *GetMultiRes) GetBalanceMap() map[int64]int64
func (*GetMultiRes) ProtoMessage ¶
func (*GetMultiRes) ProtoMessage()
func (*GetMultiRes) ProtoReflect ¶
func (x *GetMultiRes) ProtoReflect() protoreflect.Message
func (*GetMultiRes) Reset ¶
func (x *GetMultiRes) Reset()
func (*GetMultiRes) String ¶
func (x *GetMultiRes) String() string
type GetReq ¶
type GetReq struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id"` // 用户id // contains filtered or unexported fields }
func (*GetReq) Descriptor
deprecated
func (*GetReq) ProtoMessage ¶
func (*GetReq) ProtoMessage()
func (*GetReq) ProtoReflect ¶
func (x *GetReq) ProtoReflect() protoreflect.Message
type GetRes ¶
type GetRes struct { Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value"` // 当前余额 // contains filtered or unexported fields }
func (*GetRes) Descriptor
deprecated
func (*GetRes) ProtoMessage ¶
func (*GetRes) ProtoMessage()
func (*GetRes) ProtoReflect ¶
func (x *GetRes) ProtoReflect() protoreflect.Message
type GetSumMultiReq ¶
type GetSumMultiReq struct { UserId []int64 `protobuf:"varint,1,rep,packed,name=user_id,json=userId,proto3" json:"user_id"` // user_id Event int32 `protobuf:"varint,2,opt,name=event,proto3" json:"event"` StartTime string `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time"` // 开始时间(含) EndTime string `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time"` // 结束时间(不含) // contains filtered or unexported fields }
func (*GetSumMultiReq) Descriptor
deprecated
func (*GetSumMultiReq) Descriptor() ([]byte, []int)
Deprecated: Use GetSumMultiReq.ProtoReflect.Descriptor instead.
func (*GetSumMultiReq) GetEndTime ¶
func (x *GetSumMultiReq) GetEndTime() string
func (*GetSumMultiReq) GetEvent ¶
func (x *GetSumMultiReq) GetEvent() int32
func (*GetSumMultiReq) GetStartTime ¶
func (x *GetSumMultiReq) GetStartTime() string
func (*GetSumMultiReq) GetUserId ¶
func (x *GetSumMultiReq) GetUserId() []int64
func (*GetSumMultiReq) ProtoMessage ¶
func (*GetSumMultiReq) ProtoMessage()
func (*GetSumMultiReq) ProtoReflect ¶
func (x *GetSumMultiReq) ProtoReflect() protoreflect.Message
func (*GetSumMultiReq) Reset ¶
func (x *GetSumMultiReq) Reset()
func (*GetSumMultiReq) String ¶
func (x *GetSumMultiReq) String() string
type GetSumMultiRes ¶
type GetSumMultiRes struct { SumMap map[int64]int64 `` // user_id -> amount(不管增加还是减少,均返回正数) /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetSumMultiRes) Descriptor
deprecated
func (*GetSumMultiRes) Descriptor() ([]byte, []int)
Deprecated: Use GetSumMultiRes.ProtoReflect.Descriptor instead.
func (*GetSumMultiRes) GetSumMap ¶
func (x *GetSumMultiRes) GetSumMap() map[int64]int64
func (*GetSumMultiRes) ProtoMessage ¶
func (*GetSumMultiRes) ProtoMessage()
func (*GetSumMultiRes) ProtoReflect ¶
func (x *GetSumMultiRes) ProtoReflect() protoreflect.Message
func (*GetSumMultiRes) Reset ¶
func (x *GetSumMultiRes) Reset()
func (*GetSumMultiRes) String ¶
func (x *GetSumMultiRes) String() string
type GetSumOfEventReq ¶
type GetSumOfEventReq struct { Event []int32 `protobuf:"varint,2,rep,packed,name=event,proto3" json:"event"` // 空返回全部事件 StartTime string `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time"` // 开始时间(含) EndTime string `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time"` // 结束时间(不含) // contains filtered or unexported fields }
func (*GetSumOfEventReq) Descriptor
deprecated
func (*GetSumOfEventReq) Descriptor() ([]byte, []int)
Deprecated: Use GetSumOfEventReq.ProtoReflect.Descriptor instead.
func (*GetSumOfEventReq) GetEndTime ¶
func (x *GetSumOfEventReq) GetEndTime() string
func (*GetSumOfEventReq) GetEvent ¶
func (x *GetSumOfEventReq) GetEvent() []int32
func (*GetSumOfEventReq) GetStartTime ¶
func (x *GetSumOfEventReq) GetStartTime() string
func (*GetSumOfEventReq) ProtoMessage ¶
func (*GetSumOfEventReq) ProtoMessage()
func (*GetSumOfEventReq) ProtoReflect ¶
func (x *GetSumOfEventReq) ProtoReflect() protoreflect.Message
func (*GetSumOfEventReq) Reset ¶
func (x *GetSumOfEventReq) Reset()
func (*GetSumOfEventReq) String ¶
func (x *GetSumOfEventReq) String() string
type GetSumOfEventRes ¶
type GetSumOfEventRes struct { SumMap map[int32]int64 `` // event -> amount(不管增加还是减少,均返回正数) /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetSumOfEventRes) Descriptor
deprecated
func (*GetSumOfEventRes) Descriptor() ([]byte, []int)
Deprecated: Use GetSumOfEventRes.ProtoReflect.Descriptor instead.
func (*GetSumOfEventRes) GetEventValue ¶
func (x *GetSumOfEventRes) GetEventValue(event int32) int64
func (*GetSumOfEventRes) GetSumMap ¶
func (x *GetSumOfEventRes) GetSumMap() map[int32]int64
func (*GetSumOfEventRes) ProtoMessage ¶
func (*GetSumOfEventRes) ProtoMessage()
func (*GetSumOfEventRes) ProtoReflect ¶
func (x *GetSumOfEventRes) ProtoReflect() protoreflect.Message
func (*GetSumOfEventRes) Reset ¶
func (x *GetSumOfEventRes) Reset()
func (*GetSumOfEventRes) String ¶
func (x *GetSumOfEventRes) String() string
type IncrReq ¶
type IncrReq struct { OuterOrderId int64 `protobuf:"varint,1,opt,name=outer_order_id,json=outerOrderId,proto3" json:"outer_order_id"` // 外部单号 UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id"` // 用户id Value int64 `protobuf:"varint,3,opt,name=value,proto3" json:"value"` // 增加金额 Event int32 `protobuf:"varint,4,opt,name=event,proto3" json:"event"` // 事件 Summary string `protobuf:"bytes,5,opt,name=summary,proto3" json:"summary"` // 摘要:json // contains filtered or unexported fields }
func (*IncrReq) Descriptor
deprecated
func (*IncrReq) GetOuterOrderId ¶
func (*IncrReq) GetSummary ¶
func (*IncrReq) ProtoMessage ¶
func (*IncrReq) ProtoMessage()
func (*IncrReq) ProtoReflect ¶
func (x *IncrReq) ProtoReflect() protoreflect.Message
type IncrRes ¶
type IncrRes struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id"` // 用户id NewValue int64 `protobuf:"varint,2,opt,name=new_value,json=newValue,proto3" json:"new_value"` // 变更后金额 DetailId int64 `protobuf:"varint,3,opt,name=detail_id,json=detailId,proto3" json:"detail_id"` // 流水id ChangeNumber int64 `protobuf:"varint,4,opt,name=change_number,json=changeNumber,proto3" json:"change_number"` // 变更序号 ChangeTime string `protobuf:"bytes,5,opt,name=change_time,json=changeTime,proto3" json:"change_time"` // 时间 // contains filtered or unexported fields }
func (*IncrRes) Descriptor
deprecated
func (*IncrRes) GetChangeNumber ¶
func (*IncrRes) GetChangeTime ¶
func (*IncrRes) GetDetailId ¶
func (*IncrRes) GetNewValue ¶
func (*IncrRes) ProtoMessage ¶
func (*IncrRes) ProtoMessage()
func (*IncrRes) ProtoReflect ¶
func (x *IncrRes) ProtoReflect() protoreflect.Message
type ListDetailReq ¶
type ListDetailReq struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id"` // user_id Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type"` // 变更方式 1 加 2 减 Event []int32 `protobuf:"varint,7,rep,packed,name=event,proto3" json:"event"` // 事件 StartTime string `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time"` // 开始时间(含) EndTime string `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time"` // 结束时间(不含) 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 (*ListDetailReq) Descriptor
deprecated
func (*ListDetailReq) Descriptor() ([]byte, []int)
Deprecated: Use ListDetailReq.ProtoReflect.Descriptor instead.
func (*ListDetailReq) GetEndTime ¶
func (x *ListDetailReq) GetEndTime() string
func (*ListDetailReq) GetEvent ¶
func (x *ListDetailReq) GetEvent() []int32
func (*ListDetailReq) GetPage ¶
func (x *ListDetailReq) GetPage() int64
func (*ListDetailReq) GetSize ¶
func (x *ListDetailReq) GetSize() int64
func (*ListDetailReq) GetStartTime ¶
func (x *ListDetailReq) GetStartTime() string
func (*ListDetailReq) GetType ¶
func (x *ListDetailReq) GetType() int32
func (*ListDetailReq) GetUserId ¶
func (x *ListDetailReq) GetUserId() int64
func (*ListDetailReq) ProtoMessage ¶
func (*ListDetailReq) ProtoMessage()
func (*ListDetailReq) ProtoReflect ¶
func (x *ListDetailReq) ProtoReflect() protoreflect.Message
func (*ListDetailReq) Reset ¶
func (x *ListDetailReq) Reset()
func (*ListDetailReq) String ¶
func (x *ListDetailReq) String() string
type ListDetailRes ¶
type ListDetailRes struct { Items []*DiamondDetailItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items"` 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 (*ListDetailRes) Descriptor
deprecated
func (*ListDetailRes) Descriptor() ([]byte, []int)
Deprecated: Use ListDetailRes.ProtoReflect.Descriptor instead.
func (*ListDetailRes) GetItems ¶
func (x *ListDetailRes) GetItems() []*DiamondDetailItem
func (*ListDetailRes) GetPage ¶
func (x *ListDetailRes) GetPage() int64
func (*ListDetailRes) GetSize ¶
func (x *ListDetailRes) GetSize() int64
func (*ListDetailRes) GetTotal ¶
func (x *ListDetailRes) GetTotal() int64
func (*ListDetailRes) ProtoMessage ¶
func (*ListDetailRes) ProtoMessage()
func (*ListDetailRes) ProtoReflect ¶
func (x *ListDetailRes) ProtoReflect() protoreflect.Message
func (*ListDetailRes) Reset ¶
func (x *ListDetailRes) Reset()
func (*ListDetailRes) String ¶
func (x *ListDetailRes) String() string
type TotalIncomeReq ¶
type TotalIncomeReq struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id"` Event []int32 `protobuf:"varint,2,rep,packed,name=event,proto3" json:"event"` StartTime string `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time"` // 开始时间(含) EndTime string `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time"` // 结束时间(不含) // contains filtered or unexported fields }
func (*TotalIncomeReq) Descriptor
deprecated
func (*TotalIncomeReq) Descriptor() ([]byte, []int)
Deprecated: Use TotalIncomeReq.ProtoReflect.Descriptor instead.
func (*TotalIncomeReq) GetEndTime ¶
func (x *TotalIncomeReq) GetEndTime() string
func (*TotalIncomeReq) GetEvent ¶
func (x *TotalIncomeReq) GetEvent() []int32
func (*TotalIncomeReq) GetStartTime ¶
func (x *TotalIncomeReq) GetStartTime() string
func (*TotalIncomeReq) GetUserId ¶
func (x *TotalIncomeReq) GetUserId() int64
func (*TotalIncomeReq) ProtoMessage ¶
func (*TotalIncomeReq) ProtoMessage()
func (*TotalIncomeReq) ProtoReflect ¶
func (x *TotalIncomeReq) ProtoReflect() protoreflect.Message
func (*TotalIncomeReq) Reset ¶
func (x *TotalIncomeReq) Reset()
func (*TotalIncomeReq) String ¶
func (x *TotalIncomeReq) String() string
type TotalIncomeRes ¶
type TotalIncomeRes struct { IncomeMap map[int32]int64 `` // event -> amount /* 168-byte string literal not displayed */ // contains filtered or unexported fields }
func (*TotalIncomeRes) Descriptor
deprecated
func (*TotalIncomeRes) Descriptor() ([]byte, []int)
Deprecated: Use TotalIncomeRes.ProtoReflect.Descriptor instead.
func (*TotalIncomeRes) GetEventAmount ¶
func (x *TotalIncomeRes) GetEventAmount(event int32) int64
func (*TotalIncomeRes) GetIncomeMap ¶
func (x *TotalIncomeRes) GetIncomeMap() map[int32]int64
func (*TotalIncomeRes) ProtoMessage ¶
func (*TotalIncomeRes) ProtoMessage()
func (*TotalIncomeRes) ProtoReflect ¶
func (x *TotalIncomeRes) ProtoReflect() protoreflect.Message
func (*TotalIncomeRes) Reset ¶
func (x *TotalIncomeRes) Reset()
func (*TotalIncomeRes) String ¶
func (x *TotalIncomeRes) String() string
type WithdrawReq ¶
type WithdrawReq struct { OuterOrderId int64 `protobuf:"varint,1,opt,name=outer_order_id,json=outerOrderId,proto3" json:"outer_order_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"` // 手续费金额(整数) // contains filtered or unexported fields }
func (*WithdrawReq) Descriptor
deprecated
func (*WithdrawReq) Descriptor() ([]byte, []int)
Deprecated: Use WithdrawReq.ProtoReflect.Descriptor instead.
func (*WithdrawReq) GetDiamondAmount ¶
func (x *WithdrawReq) GetDiamondAmount() int64
func (*WithdrawReq) GetFeeAmount ¶
func (x *WithdrawReq) GetFeeAmount() int64
func (*WithdrawReq) GetMoneyAmount ¶
func (x *WithdrawReq) GetMoneyAmount() int64
func (*WithdrawReq) GetMoneyType ¶
func (x *WithdrawReq) GetMoneyType() string
func (*WithdrawReq) GetOuterOrderId ¶
func (x *WithdrawReq) GetOuterOrderId() int64
func (*WithdrawReq) GetUserId ¶
func (x *WithdrawReq) GetUserId() int64
func (*WithdrawReq) GetWithdrawWay ¶
func (x *WithdrawReq) GetWithdrawWay() string
func (*WithdrawReq) ProtoMessage ¶
func (*WithdrawReq) ProtoMessage()
func (*WithdrawReq) ProtoReflect ¶
func (x *WithdrawReq) ProtoReflect() protoreflect.Message
func (*WithdrawReq) Reset ¶
func (x *WithdrawReq) Reset()
func (*WithdrawReq) String ¶
func (x *WithdrawReq) String() string
type WithdrawRes ¶
type WithdrawRes struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id"` // 用户id NewValue int64 `protobuf:"varint,2,opt,name=new_value,json=newValue,proto3" json:"new_value"` // 变更后金额 DetailId int64 `protobuf:"varint,3,opt,name=detail_id,json=detailId,proto3" json:"detail_id"` // 流水id(减余额流水ID) ChangeNumber int64 `protobuf:"varint,4,opt,name=change_number,json=changeNumber,proto3" json:"change_number"` // 变更序号 ChangeTime string `protobuf:"bytes,5,opt,name=change_time,json=changeTime,proto3" json:"change_time"` // 时间 // contains filtered or unexported fields }
func (*WithdrawRes) Descriptor
deprecated
func (*WithdrawRes) Descriptor() ([]byte, []int)
Deprecated: Use WithdrawRes.ProtoReflect.Descriptor instead.
func (*WithdrawRes) GetChangeNumber ¶
func (x *WithdrawRes) GetChangeNumber() int64
func (*WithdrawRes) GetChangeTime ¶
func (x *WithdrawRes) GetChangeTime() string
func (*WithdrawRes) GetDetailId ¶
func (x *WithdrawRes) GetDetailId() int64
func (*WithdrawRes) GetNewValue ¶
func (x *WithdrawRes) GetNewValue() int64
func (*WithdrawRes) GetUserId ¶
func (x *WithdrawRes) GetUserId() int64
func (*WithdrawRes) ProtoMessage ¶
func (*WithdrawRes) ProtoMessage()
func (*WithdrawRes) ProtoReflect ¶
func (x *WithdrawRes) ProtoReflect() protoreflect.Message
func (*WithdrawRes) Reset ¶
func (x *WithdrawRes) Reset()
func (*WithdrawRes) String ¶
func (x *WithdrawRes) String() string