points

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: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InLive        = "inLive"
	Barrage       = "barrage"
	Share         = "share"
	Follow        = "follow"
	Lives         = "likes"
	FirstRecharge = "firstRecharge"
	SendGift      = "sendGift"
	LivingTime    = "livingTime"
	Income        = "income"
)
View Source
const (
	InLiveExpr        = "limitinLive"
	BarrageExpr       = "limibarrage"
	ShareExpr         = "limishare"
	FollowExpr        = "limifollow"
	LikesExpr         = "limilikes"
	FirstRechargeExpr = "limifirstRecharge"
	SendGiftExpr      = "limisendGift"
	LivingTimeExpr    = "limilivingTime"
	IncomeExpr        = "limiincome"
)
View Source
const (
	FirstDividendRate  = 0.4 // 一级上线充值分红比例
	SecondDividendRate = 0.1 // 二级上线充值分红比例
)
View Source
const (
	PullNew = iota + 1
	FirstDividend
	SecondDividend
)

Variables

View Source
var File_proto_points_points_proto protoreflect.FileDescriptor
View Source
var (
	LadderDict = []int32{0, 20, 40}
)
View Source
var LadderScore = map[string][]int32{
	"TH": {8, 9, 10},
	"ID": {2000, 2100, 2300},
	"VN": {2000, 2100, 2300},
}
View Source
var ScoreDesc = map[int32]string{
	PullNew:        "拉新",
	FirstDividend:  "一级分红",
	SecondDividend: "二级分红",
	4:              "提现",
}

Functions

func GetScore

func GetScore(country string, level int32) int32

func NewPointsEndpoints

func NewPointsEndpoints() []*api.Endpoint

func RegisterPointsHandler

func RegisterPointsHandler(s server.Server, hdlr PointsHandler, opts ...server.HandlerOption) error

func ScoreLevel

func ScoreLevel(userNumber int32) int32

Types

type AccountPointsDetailRequest

type AccountPointsDetailRequest struct {
	UserId   int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"`
	Page     int32 `protobuf:"varint,2,opt,name=Page,proto3" json:"Page"`
	PageSize int32 `protobuf:"varint,3,opt,name=PageSize,proto3" json:"PageSize"`
	// contains filtered or unexported fields
}

func (*AccountPointsDetailRequest) Descriptor deprecated

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

Deprecated: Use AccountPointsDetailRequest.ProtoReflect.Descriptor instead.

func (*AccountPointsDetailRequest) GetPage

func (x *AccountPointsDetailRequest) GetPage() int32

func (*AccountPointsDetailRequest) GetPageSize

func (x *AccountPointsDetailRequest) GetPageSize() int32

func (*AccountPointsDetailRequest) GetUserId

func (x *AccountPointsDetailRequest) GetUserId() int64

func (*AccountPointsDetailRequest) ProtoMessage

func (*AccountPointsDetailRequest) ProtoMessage()

func (*AccountPointsDetailRequest) ProtoReflect

func (*AccountPointsDetailRequest) Reset

func (x *AccountPointsDetailRequest) Reset()

func (*AccountPointsDetailRequest) String

func (x *AccountPointsDetailRequest) String() string

func (*AccountPointsDetailRequest) Validate

func (m *AccountPointsDetailRequest) Validate() error

Validate checks the field values on AccountPointsDetailRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AccountPointsDetailRequest) ValidateAll

func (m *AccountPointsDetailRequest) ValidateAll() error

ValidateAll checks the field values on AccountPointsDetailRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AccountPointsDetailRequestMultiError, or nil if none found.

type AccountPointsDetailRequestMultiError

type AccountPointsDetailRequestMultiError []error

AccountPointsDetailRequestMultiError is an error wrapping multiple validation errors returned by AccountPointsDetailRequest.ValidateAll() if the designated constraints aren't met.

func (AccountPointsDetailRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AccountPointsDetailRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AccountPointsDetailRequestValidationError

type AccountPointsDetailRequestValidationError struct {
	// contains filtered or unexported fields
}

AccountPointsDetailRequestValidationError is the validation error returned by AccountPointsDetailRequest.Validate if the designated constraints aren't met.

func (AccountPointsDetailRequestValidationError) Cause

Cause function returns cause value.

func (AccountPointsDetailRequestValidationError) Error

Error satisfies the builtin error interface

func (AccountPointsDetailRequestValidationError) ErrorName

ErrorName returns error name.

func (AccountPointsDetailRequestValidationError) Field

Field function returns field value.

func (AccountPointsDetailRequestValidationError) Key

Key function returns key value.

func (AccountPointsDetailRequestValidationError) Reason

Reason function returns reason value.

type AccountPointsDetailResponse

type AccountPointsDetailResponse struct {
	List     []*Item `protobuf:"bytes,1,rep,name=List,proto3" json:"List"`
	Total    int64   `protobuf:"varint,2,opt,name=Total,proto3" json:"Total"`
	Page     int32   `protobuf:"varint,3,opt,name=Page,proto3" json:"Page"`
	PageSize int32   `protobuf:"varint,4,opt,name=PageSize,proto3" json:"PageSize"`
	// contains filtered or unexported fields
}

func (*AccountPointsDetailResponse) Descriptor deprecated

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

Deprecated: Use AccountPointsDetailResponse.ProtoReflect.Descriptor instead.

func (*AccountPointsDetailResponse) GetList

func (x *AccountPointsDetailResponse) GetList() []*Item

func (*AccountPointsDetailResponse) GetPage

func (x *AccountPointsDetailResponse) GetPage() int32

func (*AccountPointsDetailResponse) GetPageSize

func (x *AccountPointsDetailResponse) GetPageSize() int32

func (*AccountPointsDetailResponse) GetTotal

func (x *AccountPointsDetailResponse) GetTotal() int64

func (*AccountPointsDetailResponse) ProtoMessage

func (*AccountPointsDetailResponse) ProtoMessage()

func (*AccountPointsDetailResponse) ProtoReflect

func (*AccountPointsDetailResponse) Reset

func (x *AccountPointsDetailResponse) Reset()

func (*AccountPointsDetailResponse) String

func (x *AccountPointsDetailResponse) String() string

func (*AccountPointsDetailResponse) Validate

func (m *AccountPointsDetailResponse) Validate() error

Validate checks the field values on AccountPointsDetailResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AccountPointsDetailResponse) ValidateAll

func (m *AccountPointsDetailResponse) ValidateAll() error

ValidateAll checks the field values on AccountPointsDetailResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AccountPointsDetailResponseMultiError, or nil if none found.

type AccountPointsDetailResponseMultiError

type AccountPointsDetailResponseMultiError []error

AccountPointsDetailResponseMultiError is an error wrapping multiple validation errors returned by AccountPointsDetailResponse.ValidateAll() if the designated constraints aren't met.

func (AccountPointsDetailResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AccountPointsDetailResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AccountPointsDetailResponseValidationError

type AccountPointsDetailResponseValidationError struct {
	// contains filtered or unexported fields
}

AccountPointsDetailResponseValidationError is the validation error returned by AccountPointsDetailResponse.Validate if the designated constraints aren't met.

func (AccountPointsDetailResponseValidationError) Cause

Cause function returns cause value.

func (AccountPointsDetailResponseValidationError) Error

Error satisfies the builtin error interface

func (AccountPointsDetailResponseValidationError) ErrorName

ErrorName returns error name.

func (AccountPointsDetailResponseValidationError) Field

Field function returns field value.

func (AccountPointsDetailResponseValidationError) Key

Key function returns key value.

func (AccountPointsDetailResponseValidationError) Reason

Reason function returns reason value.

type AccountPointsTotalRequest

type AccountPointsTotalRequest struct {
	UserId   int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"`
	Page     int32 `protobuf:"varint,2,opt,name=Page,proto3" json:"Page"`
	PageSize int32 `protobuf:"varint,3,opt,name=PageSize,proto3" json:"PageSize"`
	// contains filtered or unexported fields
}

func (*AccountPointsTotalRequest) Descriptor deprecated

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

Deprecated: Use AccountPointsTotalRequest.ProtoReflect.Descriptor instead.

func (*AccountPointsTotalRequest) GetPage

func (x *AccountPointsTotalRequest) GetPage() int32

func (*AccountPointsTotalRequest) GetPageSize

func (x *AccountPointsTotalRequest) GetPageSize() int32

func (*AccountPointsTotalRequest) GetUserId

func (x *AccountPointsTotalRequest) GetUserId() int64

func (*AccountPointsTotalRequest) ProtoMessage

func (*AccountPointsTotalRequest) ProtoMessage()

func (*AccountPointsTotalRequest) ProtoReflect

func (*AccountPointsTotalRequest) Reset

func (x *AccountPointsTotalRequest) Reset()

func (*AccountPointsTotalRequest) String

func (x *AccountPointsTotalRequest) String() string

func (*AccountPointsTotalRequest) Validate

func (m *AccountPointsTotalRequest) Validate() error

Validate checks the field values on AccountPointsTotalRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AccountPointsTotalRequest) ValidateAll

func (m *AccountPointsTotalRequest) ValidateAll() error

ValidateAll checks the field values on AccountPointsTotalRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AccountPointsTotalRequestMultiError, or nil if none found.

type AccountPointsTotalRequestMultiError

type AccountPointsTotalRequestMultiError []error

AccountPointsTotalRequestMultiError is an error wrapping multiple validation errors returned by AccountPointsTotalRequest.ValidateAll() if the designated constraints aren't met.

func (AccountPointsTotalRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AccountPointsTotalRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AccountPointsTotalRequestValidationError

type AccountPointsTotalRequestValidationError struct {
	// contains filtered or unexported fields
}

AccountPointsTotalRequestValidationError is the validation error returned by AccountPointsTotalRequest.Validate if the designated constraints aren't met.

func (AccountPointsTotalRequestValidationError) Cause

Cause function returns cause value.

func (AccountPointsTotalRequestValidationError) Error

Error satisfies the builtin error interface

func (AccountPointsTotalRequestValidationError) ErrorName

ErrorName returns error name.

func (AccountPointsTotalRequestValidationError) Field

Field function returns field value.

func (AccountPointsTotalRequestValidationError) Key

Key function returns key value.

func (AccountPointsTotalRequestValidationError) Reason

Reason function returns reason value.

type AccountPointsTotalResponse

type AccountPointsTotalResponse struct {
	List     []*Item `protobuf:"bytes,1,rep,name=List,proto3" json:"List"`
	Total    int64   `protobuf:"varint,2,opt,name=Total,proto3" json:"Total"`
	Page     int32   `protobuf:"varint,3,opt,name=Page,proto3" json:"Page"`
	PageSize int32   `protobuf:"varint,4,opt,name=PageSize,proto3" json:"PageSize"`
	// contains filtered or unexported fields
}

func (*AccountPointsTotalResponse) Descriptor deprecated

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

Deprecated: Use AccountPointsTotalResponse.ProtoReflect.Descriptor instead.

func (*AccountPointsTotalResponse) GetList

func (x *AccountPointsTotalResponse) GetList() []*Item

func (*AccountPointsTotalResponse) GetPage

func (x *AccountPointsTotalResponse) GetPage() int32

func (*AccountPointsTotalResponse) GetPageSize

func (x *AccountPointsTotalResponse) GetPageSize() int32

func (*AccountPointsTotalResponse) GetTotal

func (x *AccountPointsTotalResponse) GetTotal() int64

func (*AccountPointsTotalResponse) ProtoMessage

func (*AccountPointsTotalResponse) ProtoMessage()

func (*AccountPointsTotalResponse) ProtoReflect

func (*AccountPointsTotalResponse) Reset

func (x *AccountPointsTotalResponse) Reset()

func (*AccountPointsTotalResponse) String

func (x *AccountPointsTotalResponse) String() string

func (*AccountPointsTotalResponse) Validate

func (m *AccountPointsTotalResponse) Validate() error

Validate checks the field values on AccountPointsTotalResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AccountPointsTotalResponse) ValidateAll

func (m *AccountPointsTotalResponse) ValidateAll() error

ValidateAll checks the field values on AccountPointsTotalResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AccountPointsTotalResponseMultiError, or nil if none found.

type AccountPointsTotalResponseMultiError

type AccountPointsTotalResponseMultiError []error

AccountPointsTotalResponseMultiError is an error wrapping multiple validation errors returned by AccountPointsTotalResponse.ValidateAll() if the designated constraints aren't met.

func (AccountPointsTotalResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AccountPointsTotalResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AccountPointsTotalResponseValidationError

type AccountPointsTotalResponseValidationError struct {
	// contains filtered or unexported fields
}

AccountPointsTotalResponseValidationError is the validation error returned by AccountPointsTotalResponse.Validate if the designated constraints aren't met.

func (AccountPointsTotalResponseValidationError) Cause

Cause function returns cause value.

func (AccountPointsTotalResponseValidationError) Error

Error satisfies the builtin error interface

func (AccountPointsTotalResponseValidationError) ErrorName

ErrorName returns error name.

func (AccountPointsTotalResponseValidationError) Field

Field function returns field value.

func (AccountPointsTotalResponseValidationError) Key

Key function returns key value.

func (AccountPointsTotalResponseValidationError) Reason

Reason function returns reason value.

type AccountPointsTrackInviteRequest

type AccountPointsTrackInviteRequest struct {
	Item *Item `protobuf:"bytes,1,opt,name=Item,proto3" json:"Item"`
	// contains filtered or unexported fields
}

func (*AccountPointsTrackInviteRequest) Descriptor deprecated

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

Deprecated: Use AccountPointsTrackInviteRequest.ProtoReflect.Descriptor instead.

func (*AccountPointsTrackInviteRequest) GetItem

func (x *AccountPointsTrackInviteRequest) GetItem() *Item

func (*AccountPointsTrackInviteRequest) ProtoMessage

func (*AccountPointsTrackInviteRequest) ProtoMessage()

func (*AccountPointsTrackInviteRequest) ProtoReflect

func (*AccountPointsTrackInviteRequest) Reset

func (*AccountPointsTrackInviteRequest) String

func (*AccountPointsTrackInviteRequest) Validate

func (m *AccountPointsTrackInviteRequest) Validate() error

Validate checks the field values on AccountPointsTrackInviteRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AccountPointsTrackInviteRequest) ValidateAll

func (m *AccountPointsTrackInviteRequest) ValidateAll() error

ValidateAll checks the field values on AccountPointsTrackInviteRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AccountPointsTrackInviteRequestMultiError, or nil if none found.

type AccountPointsTrackInviteRequestMultiError

type AccountPointsTrackInviteRequestMultiError []error

AccountPointsTrackInviteRequestMultiError is an error wrapping multiple validation errors returned by AccountPointsTrackInviteRequest.ValidateAll() if the designated constraints aren't met.

func (AccountPointsTrackInviteRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AccountPointsTrackInviteRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AccountPointsTrackInviteRequestValidationError

type AccountPointsTrackInviteRequestValidationError struct {
	// contains filtered or unexported fields
}

AccountPointsTrackInviteRequestValidationError is the validation error returned by AccountPointsTrackInviteRequest.Validate if the designated constraints aren't met.

func (AccountPointsTrackInviteRequestValidationError) Cause

Cause function returns cause value.

func (AccountPointsTrackInviteRequestValidationError) Error

Error satisfies the builtin error interface

func (AccountPointsTrackInviteRequestValidationError) ErrorName

ErrorName returns error name.

func (AccountPointsTrackInviteRequestValidationError) Field

Field function returns field value.

func (AccountPointsTrackInviteRequestValidationError) Key

Key function returns key value.

func (AccountPointsTrackInviteRequestValidationError) Reason

Reason function returns reason value.

type AccountPointsWithdrawalRequest

type AccountPointsWithdrawalRequest struct {
	UserId int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"`
	Amount int64 `protobuf:"varint,2,opt,name=Amount,proto3" json:"Amount"`
	Editor int64 `protobuf:"varint,3,opt,name=Editor,proto3" json:"Editor"` // 后台用户id
	// contains filtered or unexported fields
}

func (*AccountPointsWithdrawalRequest) Descriptor deprecated

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

Deprecated: Use AccountPointsWithdrawalRequest.ProtoReflect.Descriptor instead.

func (*AccountPointsWithdrawalRequest) GetAmount

func (x *AccountPointsWithdrawalRequest) GetAmount() int64

func (*AccountPointsWithdrawalRequest) GetEditor

func (x *AccountPointsWithdrawalRequest) GetEditor() int64

func (*AccountPointsWithdrawalRequest) GetUserId

func (x *AccountPointsWithdrawalRequest) GetUserId() int64

func (*AccountPointsWithdrawalRequest) ProtoMessage

func (*AccountPointsWithdrawalRequest) ProtoMessage()

func (*AccountPointsWithdrawalRequest) ProtoReflect

func (*AccountPointsWithdrawalRequest) Reset

func (x *AccountPointsWithdrawalRequest) Reset()

func (*AccountPointsWithdrawalRequest) String

func (*AccountPointsWithdrawalRequest) Validate

func (m *AccountPointsWithdrawalRequest) Validate() error

Validate checks the field values on AccountPointsWithdrawalRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AccountPointsWithdrawalRequest) ValidateAll

func (m *AccountPointsWithdrawalRequest) ValidateAll() error

ValidateAll checks the field values on AccountPointsWithdrawalRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AccountPointsWithdrawalRequestMultiError, or nil if none found.

type AccountPointsWithdrawalRequestMultiError

type AccountPointsWithdrawalRequestMultiError []error

AccountPointsWithdrawalRequestMultiError is an error wrapping multiple validation errors returned by AccountPointsWithdrawalRequest.ValidateAll() if the designated constraints aren't met.

func (AccountPointsWithdrawalRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AccountPointsWithdrawalRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AccountPointsWithdrawalRequestValidationError

type AccountPointsWithdrawalRequestValidationError struct {
	// contains filtered or unexported fields
}

AccountPointsWithdrawalRequestValidationError is the validation error returned by AccountPointsWithdrawalRequest.Validate if the designated constraints aren't met.

func (AccountPointsWithdrawalRequestValidationError) Cause

Cause function returns cause value.

func (AccountPointsWithdrawalRequestValidationError) Error

Error satisfies the builtin error interface

func (AccountPointsWithdrawalRequestValidationError) ErrorName

ErrorName returns error name.

func (AccountPointsWithdrawalRequestValidationError) Field

Field function returns field value.

func (AccountPointsWithdrawalRequestValidationError) Key

Key function returns key value.

func (AccountPointsWithdrawalRequestValidationError) Reason

Reason function returns reason value.

type Item

type Item struct {
	Id         int64  `protobuf:"varint,12,opt,name=Id,proto3" json:"Id"` // 主键
	ShowId     int32  `protobuf:"varint,1,opt,name=ShowId,proto3" json:"ShowId"`
	Extend     int64  `protobuf:"varint,2,opt,name=Extend,proto3" json:"Extend"` // InviteType=1时为拉新 extend的值为拉新的用户id
	InviteType int32  `protobuf:"varint,3,opt,name=InviteType,proto3" json:"InviteType"`
	Score      int64  `protobuf:"varint,4,opt,name=Score,proto3" json:"Score"`
	Country    string `protobuf:"bytes,5,opt,name=Country,proto3" json:"Country"`
	Nickname   string `protobuf:"bytes,6,opt,name=Nickname,proto3" json:"Nickname"`
	Avatar     string `protobuf:"bytes,7,opt,name=Avatar,proto3" json:"Avatar"`
	CreatedAt  string `protobuf:"bytes,8,opt,name=CreatedAt,proto3" json:"CreatedAt"`
	UpdatedAt  string `protobuf:"bytes,9,opt,name=UpdatedAt,proto3" json:"UpdatedAt"`
	DeletedAt  string `protobuf:"bytes,10,opt,name=DeletedAt,proto3" json:"DeletedAt"`
	UserId     int64  `protobuf:"varint,11,opt,name=UserId,proto3" json:"UserId"`
	EditorId   int64  `protobuf:"varint,13,opt,name=EditorId,proto3" json:"EditorId"` //操作人 后台用户主键ID
	// contains filtered or unexported fields
}

func (*Item) Descriptor deprecated

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

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetAvatar

func (x *Item) GetAvatar() string

func (*Item) GetCountry

func (x *Item) GetCountry() string

func (*Item) GetCreatedAt

func (x *Item) GetCreatedAt() string

func (*Item) GetDeletedAt

func (x *Item) GetDeletedAt() string

func (*Item) GetEditorId

func (x *Item) GetEditorId() int64

func (*Item) GetExtend

func (x *Item) GetExtend() int64

func (*Item) GetId

func (x *Item) GetId() int64

func (*Item) GetInviteType

func (x *Item) GetInviteType() int32

func (*Item) GetNickname

func (x *Item) GetNickname() string

func (*Item) GetScore

func (x *Item) GetScore() int64

func (*Item) GetShowId

func (x *Item) GetShowId() int32

func (*Item) GetUpdatedAt

func (x *Item) GetUpdatedAt() string

func (*Item) GetUserId

func (x *Item) GetUserId() int64

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect

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

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

func (*Item) Validate

func (m *Item) Validate() error

Validate checks the field values on Item with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Item) ValidateAll

func (m *Item) ValidateAll() error

ValidateAll checks the field values on Item with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ItemMultiError, or nil if none found.

type ItemMultiError

type ItemMultiError []error

ItemMultiError is an error wrapping multiple validation errors returned by Item.ValidateAll() if the designated constraints aren't met.

func (ItemMultiError) AllErrors

func (m ItemMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ItemMultiError) Error

func (m ItemMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ItemValidationError

type ItemValidationError struct {
	// contains filtered or unexported fields
}

ItemValidationError is the validation error returned by Item.Validate if the designated constraints aren't met.

func (ItemValidationError) Cause

func (e ItemValidationError) Cause() error

Cause function returns cause value.

func (ItemValidationError) Error

func (e ItemValidationError) Error() string

Error satisfies the builtin error interface

func (ItemValidationError) ErrorName

func (e ItemValidationError) ErrorName() string

ErrorName returns error name.

func (ItemValidationError) Field

func (e ItemValidationError) Field() string

Field function returns field value.

func (ItemValidationError) Key

func (e ItemValidationError) Key() bool

Key function returns key value.

func (ItemValidationError) Reason

func (e ItemValidationError) Reason() string

Reason function returns reason value.

type PointsHandler

type PointsHandler interface {
	// 邀请页面设置数据
	SetData(context.Context, *SetDataRequest, *wrapperspb.Int32Value) error
	// 邀请积分记录
	ScoreList(context.Context, *ScoreListRequest, *ScoreListResponse) error
	// 邀请下线记录(一级 二级下线)
	UserList(context.Context, *UserListRequest, *UserListResponse) error
	// 获取用户账户列表
	AccountPointsList(context.Context, *AccountPointsTotalRequest, *AccountPointsTotalResponse) error
	// 获取用户账户详细
	AccountPointsDetail(context.Context, *AccountPointsDetailRequest, *AccountPointsDetailResponse) error
	// 操作用户提现
	AccountPointsWithdrawal(context.Context, *AccountPointsWithdrawalRequest, *emptypb.Empty) error
	// 添加积分
	AccountPointsTrackInvite(context.Context, *AccountPointsTrackInviteRequest, *emptypb.Empty) error
}

type PointsService

type PointsService interface {
	// 邀请页面设置数据
	SetData(ctx context.Context, in *SetDataRequest, opts ...client.CallOption) (*wrapperspb.Int32Value, error)
	// 邀请积分记录
	ScoreList(ctx context.Context, in *ScoreListRequest, opts ...client.CallOption) (*ScoreListResponse, error)
	// 邀请下线记录(一级 二级下线)
	UserList(ctx context.Context, in *UserListRequest, opts ...client.CallOption) (*UserListResponse, error)
	// 获取用户账户列表
	AccountPointsList(ctx context.Context, in *AccountPointsTotalRequest, opts ...client.CallOption) (*AccountPointsTotalResponse, error)
	// 获取用户账户详细
	AccountPointsDetail(ctx context.Context, in *AccountPointsDetailRequest, opts ...client.CallOption) (*AccountPointsDetailResponse, error)
	// 操作用户提现
	AccountPointsWithdrawal(ctx context.Context, in *AccountPointsWithdrawalRequest, opts ...client.CallOption) (*emptypb.Empty, error)
	// 添加积分
	AccountPointsTrackInvite(ctx context.Context, in *AccountPointsTrackInviteRequest, opts ...client.CallOption) (*emptypb.Empty, error)
}

func NewPointsService

func NewPointsService(name string, c client.Client) PointsService

type ScoreListRequest

type ScoreListRequest struct {
	UserId int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"`
	Page   int32 `protobuf:"varint,2,opt,name=Page,proto3" json:"Page"`
	Size   int32 `protobuf:"varint,3,opt,name=Size,proto3" json:"Size"`
	// contains filtered or unexported fields
}

func (*ScoreListRequest) Descriptor deprecated

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

Deprecated: Use ScoreListRequest.ProtoReflect.Descriptor instead.

func (*ScoreListRequest) GetPage

func (x *ScoreListRequest) GetPage() int32

func (*ScoreListRequest) GetSize

func (x *ScoreListRequest) GetSize() int32

func (*ScoreListRequest) GetUserId

func (x *ScoreListRequest) GetUserId() int64

func (*ScoreListRequest) ProtoMessage

func (*ScoreListRequest) ProtoMessage()

func (*ScoreListRequest) ProtoReflect

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

func (*ScoreListRequest) Reset

func (x *ScoreListRequest) Reset()

func (*ScoreListRequest) String

func (x *ScoreListRequest) String() string

func (*ScoreListRequest) Validate

func (m *ScoreListRequest) Validate() error

Validate checks the field values on ScoreListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ScoreListRequest) ValidateAll

func (m *ScoreListRequest) ValidateAll() error

ValidateAll checks the field values on ScoreListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ScoreListRequestMultiError, or nil if none found.

type ScoreListRequestMultiError

type ScoreListRequestMultiError []error

ScoreListRequestMultiError is an error wrapping multiple validation errors returned by ScoreListRequest.ValidateAll() if the designated constraints aren't met.

func (ScoreListRequestMultiError) AllErrors

func (m ScoreListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ScoreListRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ScoreListRequestValidationError

type ScoreListRequestValidationError struct {
	// contains filtered or unexported fields
}

ScoreListRequestValidationError is the validation error returned by ScoreListRequest.Validate if the designated constraints aren't met.

func (ScoreListRequestValidationError) Cause

Cause function returns cause value.

func (ScoreListRequestValidationError) Error

Error satisfies the builtin error interface

func (ScoreListRequestValidationError) ErrorName

ErrorName returns error name.

func (ScoreListRequestValidationError) Field

Field function returns field value.

func (ScoreListRequestValidationError) Key

Key function returns key value.

func (ScoreListRequestValidationError) Reason

Reason function returns reason value.

type ScoreListResponse

type ScoreListResponse struct {
	List         []*Item `protobuf:"bytes,1,rep,name=List,proto3" json:"List"`                  // 当前列表
	Total        int32   `protobuf:"varint,2,opt,name=Total,proto3" json:"Total"`               // 总页数
	ScoreBalance int64   `protobuf:"varint,3,opt,name=ScoreBalance,proto3" json:"ScoreBalance"` // 余额
	// contains filtered or unexported fields
}

func (*ScoreListResponse) Descriptor deprecated

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

Deprecated: Use ScoreListResponse.ProtoReflect.Descriptor instead.

func (*ScoreListResponse) GetList

func (x *ScoreListResponse) GetList() []*Item

func (*ScoreListResponse) GetScoreBalance

func (x *ScoreListResponse) GetScoreBalance() int64

func (*ScoreListResponse) GetTotal

func (x *ScoreListResponse) GetTotal() int32

func (*ScoreListResponse) ProtoMessage

func (*ScoreListResponse) ProtoMessage()

func (*ScoreListResponse) ProtoReflect

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

func (*ScoreListResponse) Reset

func (x *ScoreListResponse) Reset()

func (*ScoreListResponse) String

func (x *ScoreListResponse) String() string

func (*ScoreListResponse) Validate

func (m *ScoreListResponse) Validate() error

Validate checks the field values on ScoreListResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ScoreListResponse) ValidateAll

func (m *ScoreListResponse) ValidateAll() error

ValidateAll checks the field values on ScoreListResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ScoreListResponseMultiError, or nil if none found.

type ScoreListResponseMultiError

type ScoreListResponseMultiError []error

ScoreListResponseMultiError is an error wrapping multiple validation errors returned by ScoreListResponse.ValidateAll() if the designated constraints aren't met.

func (ScoreListResponseMultiError) AllErrors

func (m ScoreListResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ScoreListResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ScoreListResponseValidationError

type ScoreListResponseValidationError struct {
	// contains filtered or unexported fields
}

ScoreListResponseValidationError is the validation error returned by ScoreListResponse.Validate if the designated constraints aren't met.

func (ScoreListResponseValidationError) Cause

Cause function returns cause value.

func (ScoreListResponseValidationError) Error

Error satisfies the builtin error interface

func (ScoreListResponseValidationError) ErrorName

ErrorName returns error name.

func (ScoreListResponseValidationError) Field

Field function returns field value.

func (ScoreListResponseValidationError) Key

Key function returns key value.

func (ScoreListResponseValidationError) Reason

Reason function returns reason value.

type SetDataRequest

type SetDataRequest struct {
	UserId int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"`
	// contains filtered or unexported fields
}

func (*SetDataRequest) Descriptor deprecated

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

Deprecated: Use SetDataRequest.ProtoReflect.Descriptor instead.

func (*SetDataRequest) GetUserId

func (x *SetDataRequest) GetUserId() int64

func (*SetDataRequest) ProtoMessage

func (*SetDataRequest) ProtoMessage()

func (*SetDataRequest) ProtoReflect

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

func (*SetDataRequest) Reset

func (x *SetDataRequest) Reset()

func (*SetDataRequest) String

func (x *SetDataRequest) String() string

func (*SetDataRequest) Validate

func (m *SetDataRequest) Validate() error

Validate checks the field values on SetDataRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SetDataRequest) ValidateAll

func (m *SetDataRequest) ValidateAll() error

ValidateAll checks the field values on SetDataRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SetDataRequestMultiError, or nil if none found.

type SetDataRequestMultiError

type SetDataRequestMultiError []error

SetDataRequestMultiError is an error wrapping multiple validation errors returned by SetDataRequest.ValidateAll() if the designated constraints aren't met.

func (SetDataRequestMultiError) AllErrors

func (m SetDataRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetDataRequestMultiError) Error

func (m SetDataRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SetDataRequestValidationError

type SetDataRequestValidationError struct {
	// contains filtered or unexported fields
}

SetDataRequestValidationError is the validation error returned by SetDataRequest.Validate if the designated constraints aren't met.

func (SetDataRequestValidationError) Cause

Cause function returns cause value.

func (SetDataRequestValidationError) Error

Error satisfies the builtin error interface

func (SetDataRequestValidationError) ErrorName

func (e SetDataRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SetDataRequestValidationError) Field

Field function returns field value.

func (SetDataRequestValidationError) Key

Key function returns key value.

func (SetDataRequestValidationError) Reason

Reason function returns reason value.

type UserList

type UserList struct {
	Money int64   `protobuf:"varint,1,opt,name=Money,proto3" json:"Money"` // 一级下线赚到的钱
	List  []*Item `protobuf:"bytes,2,rep,name=List,proto3" json:"List"`    // 一级下线用户
	// contains filtered or unexported fields
}

func (*UserList) Descriptor deprecated

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

Deprecated: Use UserList.ProtoReflect.Descriptor instead.

func (*UserList) GetList

func (x *UserList) GetList() []*Item

func (*UserList) GetMoney

func (x *UserList) GetMoney() int64

func (*UserList) ProtoMessage

func (*UserList) ProtoMessage()

func (*UserList) ProtoReflect

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

func (*UserList) Reset

func (x *UserList) Reset()

func (*UserList) String

func (x *UserList) String() string

func (*UserList) Validate

func (m *UserList) Validate() error

Validate checks the field values on UserList with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserList) ValidateAll

func (m *UserList) ValidateAll() error

ValidateAll checks the field values on UserList with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserListMultiError, or nil if none found.

type UserListMultiError

type UserListMultiError []error

UserListMultiError is an error wrapping multiple validation errors returned by UserList.ValidateAll() if the designated constraints aren't met.

func (UserListMultiError) AllErrors

func (m UserListMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserListMultiError) Error

func (m UserListMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserListRequest

type UserListRequest struct {
	UserId int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"`
	// contains filtered or unexported fields
}

func (*UserListRequest) Descriptor deprecated

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

Deprecated: Use UserListRequest.ProtoReflect.Descriptor instead.

func (*UserListRequest) GetUserId

func (x *UserListRequest) GetUserId() int64

func (*UserListRequest) ProtoMessage

func (*UserListRequest) ProtoMessage()

func (*UserListRequest) ProtoReflect

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

func (*UserListRequest) Reset

func (x *UserListRequest) Reset()

func (*UserListRequest) String

func (x *UserListRequest) String() string

func (*UserListRequest) Validate

func (m *UserListRequest) Validate() error

Validate checks the field values on UserListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserListRequest) ValidateAll

func (m *UserListRequest) ValidateAll() error

ValidateAll checks the field values on UserListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserListRequestMultiError, or nil if none found.

type UserListRequestMultiError

type UserListRequestMultiError []error

UserListRequestMultiError is an error wrapping multiple validation errors returned by UserListRequest.ValidateAll() if the designated constraints aren't met.

func (UserListRequestMultiError) AllErrors

func (m UserListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserListRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UserListRequestValidationError

type UserListRequestValidationError struct {
	// contains filtered or unexported fields
}

UserListRequestValidationError is the validation error returned by UserListRequest.Validate if the designated constraints aren't met.

func (UserListRequestValidationError) Cause

Cause function returns cause value.

func (UserListRequestValidationError) Error

Error satisfies the builtin error interface

func (UserListRequestValidationError) ErrorName

func (e UserListRequestValidationError) ErrorName() string

ErrorName returns error name.

func (UserListRequestValidationError) Field

Field function returns field value.

func (UserListRequestValidationError) Key

Key function returns key value.

func (UserListRequestValidationError) Reason

Reason function returns reason value.

type UserListResponse

type UserListResponse struct {
	FirstList  *UserList `protobuf:"bytes,1,opt,name=FirstList,proto3" json:"FirstList"`   // 一级下线
	SecondList *UserList `protobuf:"bytes,2,opt,name=SecondList,proto3" json:"SecondList"` // 二级下线
	// contains filtered or unexported fields
}

func (*UserListResponse) Descriptor deprecated

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

Deprecated: Use UserListResponse.ProtoReflect.Descriptor instead.

func (*UserListResponse) GetFirstList

func (x *UserListResponse) GetFirstList() *UserList

func (*UserListResponse) GetSecondList

func (x *UserListResponse) GetSecondList() *UserList

func (*UserListResponse) ProtoMessage

func (*UserListResponse) ProtoMessage()

func (*UserListResponse) ProtoReflect

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

func (*UserListResponse) Reset

func (x *UserListResponse) Reset()

func (*UserListResponse) String

func (x *UserListResponse) String() string

func (*UserListResponse) Validate

func (m *UserListResponse) Validate() error

Validate checks the field values on UserListResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserListResponse) ValidateAll

func (m *UserListResponse) ValidateAll() error

ValidateAll checks the field values on UserListResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserListResponseMultiError, or nil if none found.

type UserListResponseMultiError

type UserListResponseMultiError []error

UserListResponseMultiError is an error wrapping multiple validation errors returned by UserListResponse.ValidateAll() if the designated constraints aren't met.

func (UserListResponseMultiError) AllErrors

func (m UserListResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserListResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UserListResponseValidationError

type UserListResponseValidationError struct {
	// contains filtered or unexported fields
}

UserListResponseValidationError is the validation error returned by UserListResponse.Validate if the designated constraints aren't met.

func (UserListResponseValidationError) Cause

Cause function returns cause value.

func (UserListResponseValidationError) Error

Error satisfies the builtin error interface

func (UserListResponseValidationError) ErrorName

ErrorName returns error name.

func (UserListResponseValidationError) Field

Field function returns field value.

func (UserListResponseValidationError) Key

Key function returns key value.

func (UserListResponseValidationError) Reason

Reason function returns reason value.

type UserListValidationError

type UserListValidationError struct {
	// contains filtered or unexported fields
}

UserListValidationError is the validation error returned by UserList.Validate if the designated constraints aren't met.

func (UserListValidationError) Cause

func (e UserListValidationError) Cause() error

Cause function returns cause value.

func (UserListValidationError) Error

func (e UserListValidationError) Error() string

Error satisfies the builtin error interface

func (UserListValidationError) ErrorName

func (e UserListValidationError) ErrorName() string

ErrorName returns error name.

func (UserListValidationError) Field

func (e UserListValidationError) Field() string

Field function returns field value.

func (UserListValidationError) Key

func (e UserListValidationError) Key() bool

Key function returns key value.

func (UserListValidationError) Reason

func (e UserListValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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