api

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package api is a generated protocol buffer package.

It is generated from these files:

app/service/main/coin/api/api.proto

It has these top-level messages:

AddCoinReply
AddCoinReq
AddUserCoinExpReply
AddUserCoinExpReq
CoinsLogReply
CoinsLogReq
ItemUserCoinsReply
ItemUserCoinsReq
ListReply
ListReq
ModelArchiveUserCoins
ModelArgModifyCoin
ModelList
ModelLog
ModelRecord
ModifyCoinsReply
ModifyCoinsReq
TodayExpReply
TodayExpReq
UpdateAddCoinReply
UpdateAddCoinReq
UserCoinsReply
UserCoinsReq

Index

Constants

View Source
const AppID = "community.service.coin"

AppID .

Variables

View Source
var (
	ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApi   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterCoinServer

func RegisterCoinServer(s *grpc.Server, srv CoinServer)

Types

type AddCoinReply

type AddCoinReply struct {
}

AddCoinReply reply

func (*AddCoinReply) Descriptor

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

func (*AddCoinReply) Marshal

func (m *AddCoinReply) Marshal() (dAtA []byte, err error)

func (*AddCoinReply) MarshalTo

func (m *AddCoinReply) MarshalTo(dAtA []byte) (int, error)

func (*AddCoinReply) ProtoMessage

func (*AddCoinReply) ProtoMessage()

func (*AddCoinReply) Reset

func (m *AddCoinReply) Reset()

func (*AddCoinReply) Size

func (m *AddCoinReply) Size() (n int)

func (*AddCoinReply) String

func (m *AddCoinReply) String() string

func (*AddCoinReply) Unmarshal

func (m *AddCoinReply) Unmarshal(dAtA []byte) error

type AddCoinReq

type AddCoinReq struct {
	// ip
	IP string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip"`
	// mid
	Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"required,min=1"`
	// up 主mid
	Upmid int64 `protobuf:"varint,3,opt,name=upmid,proto3" json:"upmid,omitempty" form:"upid" validate:"required"`
	// 最大投币数
	MaxCoin int64 `protobuf:"varint,4,opt,name=max_coin,json=maxCoin,proto3" json:"max_coin,omitempty" form:"max"`
	// aid
	Aid int64 `protobuf:"varint,5,opt,name=aid,proto3" json:"aid,omitempty" form:"aid" validate:"required"`
	// 业务
	Business string `protobuf:"bytes,6,opt,name=business,proto3" json:"business,omitempty" form:"business" validate:"required"`
	// 数量
	Number int64 `protobuf:"varint,7,opt,name=number,proto3" json:"number,omitempty" form:"number" validate:"required,min=1"`
	// 稿件typeid(稿件专用)
	Typeid int32 `protobuf:"varint,8,opt,name=typeid,proto3" json:"typeid,omitempty" form:"typeid"`
	// 稿件发布时间
	PubTime int64 `protobuf:"varint,9,opt,name=pub_time,json=pubTime,proto3" json:"pub_time,omitempty" form:"pub_time"`
}

AddCoinReq req

func (*AddCoinReq) Descriptor

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

func (*AddCoinReq) GetAid

func (m *AddCoinReq) GetAid() int64

func (*AddCoinReq) GetBusiness

func (m *AddCoinReq) GetBusiness() string

func (*AddCoinReq) GetIP

func (m *AddCoinReq) GetIP() string

func (*AddCoinReq) GetMaxCoin

func (m *AddCoinReq) GetMaxCoin() int64

func (*AddCoinReq) GetMid

func (m *AddCoinReq) GetMid() int64

func (*AddCoinReq) GetNumber

func (m *AddCoinReq) GetNumber() int64

func (*AddCoinReq) GetPubTime

func (m *AddCoinReq) GetPubTime() int64

func (*AddCoinReq) GetTypeid

func (m *AddCoinReq) GetTypeid() int32

func (*AddCoinReq) GetUpmid

func (m *AddCoinReq) GetUpmid() int64

func (*AddCoinReq) Marshal

func (m *AddCoinReq) Marshal() (dAtA []byte, err error)

func (*AddCoinReq) MarshalTo

func (m *AddCoinReq) MarshalTo(dAtA []byte) (int, error)

func (*AddCoinReq) ProtoMessage

func (*AddCoinReq) ProtoMessage()

func (*AddCoinReq) Reset

func (m *AddCoinReq) Reset()

func (*AddCoinReq) Size

func (m *AddCoinReq) Size() (n int)

func (*AddCoinReq) String

func (m *AddCoinReq) String() string

func (*AddCoinReq) Unmarshal

func (m *AddCoinReq) Unmarshal(dAtA []byte) error

type AddUserCoinExpReply

type AddUserCoinExpReply struct {
}

AddUserCoinExpReply add coin exp reply

func (*AddUserCoinExpReply) Descriptor

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

func (*AddUserCoinExpReply) Marshal

func (m *AddUserCoinExpReply) Marshal() (dAtA []byte, err error)

func (*AddUserCoinExpReply) MarshalTo

func (m *AddUserCoinExpReply) MarshalTo(dAtA []byte) (int, error)

func (*AddUserCoinExpReply) ProtoMessage

func (*AddUserCoinExpReply) ProtoMessage()

func (*AddUserCoinExpReply) Reset

func (m *AddUserCoinExpReply) Reset()

func (*AddUserCoinExpReply) Size

func (m *AddUserCoinExpReply) Size() (n int)

func (*AddUserCoinExpReply) String

func (m *AddUserCoinExpReply) String() string

func (*AddUserCoinExpReply) Unmarshal

func (m *AddUserCoinExpReply) Unmarshal(dAtA []byte) error

type AddUserCoinExpReq

type AddUserCoinExpReq struct {
	// ip
	IP string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip"`
	// mid
	Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"`
	// business
	Business string `protobuf:"bytes,3,opt,name=business,proto3" json:"business,omitempty"`
	// number
	Number int64 `protobuf:"varint,4,opt,name=number,proto3" json:"number,omitempty"`
}

AddUserCoinExpReq req

func (*AddUserCoinExpReq) Descriptor

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

func (*AddUserCoinExpReq) GetBusiness

func (m *AddUserCoinExpReq) GetBusiness() string

func (*AddUserCoinExpReq) GetIP

func (m *AddUserCoinExpReq) GetIP() string

func (*AddUserCoinExpReq) GetMid

func (m *AddUserCoinExpReq) GetMid() int64

func (*AddUserCoinExpReq) GetNumber

func (m *AddUserCoinExpReq) GetNumber() int64

func (*AddUserCoinExpReq) Marshal

func (m *AddUserCoinExpReq) Marshal() (dAtA []byte, err error)

func (*AddUserCoinExpReq) MarshalTo

func (m *AddUserCoinExpReq) MarshalTo(dAtA []byte) (int, error)

func (*AddUserCoinExpReq) ProtoMessage

func (*AddUserCoinExpReq) ProtoMessage()

func (*AddUserCoinExpReq) Reset

func (m *AddUserCoinExpReq) Reset()

func (*AddUserCoinExpReq) Size

func (m *AddUserCoinExpReq) Size() (n int)

func (*AddUserCoinExpReq) String

func (m *AddUserCoinExpReq) String() string

func (*AddUserCoinExpReq) Unmarshal

func (m *AddUserCoinExpReq) Unmarshal(dAtA []byte) error

type CoinClient

type CoinClient interface {
	// AddCoin add coin. 投币接口
	AddCoin(ctx context.Context, in *AddCoinReq, opts ...grpc.CallOption) (*AddCoinReply, error)
	// ItemUserCoins get coins added of archive. 投币数量接口
	ItemUserCoins(ctx context.Context, in *ItemUserCoinsReq, opts ...grpc.CallOption) (*ItemUserCoinsReply, error)
	// UserCoins get user coins. 用户硬币余额
	UserCoins(ctx context.Context, in *UserCoinsReq, opts ...grpc.CallOption) (*UserCoinsReply, error)
	// ModifyCoins modify user coins. 修改硬币数
	ModifyCoins(ctx context.Context, in *ModifyCoinsReq, opts ...grpc.CallOption) (*ModifyCoinsReply, error)
	// List get coin added list.投币列表
	List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListReply, error)
	// CoinsLog coins log 投币日志
	CoinsLog(ctx context.Context, in *CoinsLogReq, opts ...grpc.CallOption) (*CoinsLogReply, error)
	// AddUserCoinExp add user coin exp for job
	AddUserCoinExp(ctx context.Context, in *AddUserCoinExpReq, opts ...grpc.CallOption) (*AddUserCoinExpReply, error)
	// UpdateAddCoin update db after add coin for job.
	UpdateAddCoin(ctx context.Context, in *UpdateAddCoinReq, opts ...grpc.CallOption) (*UpdateAddCoinReply, error)
	// TodayExp get today coin added exp. 今日投币经验
	TodayExp(ctx context.Context, in *TodayExpReq, opts ...grpc.CallOption) (*TodayExpReply, error)
}

func NewClient

func NewClient(cfg *warden.ClientConfig, opts ...grpc.DialOption) (CoinClient, error)

NewClient new grpc client

func NewCoinClient

func NewCoinClient(cc *grpc.ClientConn) CoinClient

type CoinServer

type CoinServer interface {
	// AddCoin add coin. 投币接口
	AddCoin(context.Context, *AddCoinReq) (*AddCoinReply, error)
	// ItemUserCoins get coins added of archive. 投币数量接口
	ItemUserCoins(context.Context, *ItemUserCoinsReq) (*ItemUserCoinsReply, error)
	// UserCoins get user coins. 用户硬币余额
	UserCoins(context.Context, *UserCoinsReq) (*UserCoinsReply, error)
	// ModifyCoins modify user coins. 修改硬币数
	ModifyCoins(context.Context, *ModifyCoinsReq) (*ModifyCoinsReply, error)
	// List get coin added list.投币列表
	List(context.Context, *ListReq) (*ListReply, error)
	// CoinsLog coins log 投币日志
	CoinsLog(context.Context, *CoinsLogReq) (*CoinsLogReply, error)
	// AddUserCoinExp add user coin exp for job
	AddUserCoinExp(context.Context, *AddUserCoinExpReq) (*AddUserCoinExpReply, error)
	// UpdateAddCoin update db after add coin for job.
	UpdateAddCoin(context.Context, *UpdateAddCoinReq) (*UpdateAddCoinReply, error)
	// TodayExp get today coin added exp. 今日投币经验
	TodayExp(context.Context, *TodayExpReq) (*TodayExpReply, error)
}

type CoinsLogReply

type CoinsLogReply struct {
	// log
	List []*ModelLog `protobuf:"bytes,1,rep,name=list" json:"list,omitempty"`
}

CoinsLogReply reply

func (*CoinsLogReply) Descriptor

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

func (*CoinsLogReply) GetList

func (m *CoinsLogReply) GetList() []*ModelLog

func (*CoinsLogReply) Marshal

func (m *CoinsLogReply) Marshal() (dAtA []byte, err error)

func (*CoinsLogReply) MarshalTo

func (m *CoinsLogReply) MarshalTo(dAtA []byte) (int, error)

func (*CoinsLogReply) ProtoMessage

func (*CoinsLogReply) ProtoMessage()

func (*CoinsLogReply) Reset

func (m *CoinsLogReply) Reset()

func (*CoinsLogReply) Size

func (m *CoinsLogReply) Size() (n int)

func (*CoinsLogReply) String

func (m *CoinsLogReply) String() string

func (*CoinsLogReply) Unmarshal

func (m *CoinsLogReply) Unmarshal(dAtA []byte) error

type CoinsLogReq

type CoinsLogReq struct {
	// mid
	Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid"  validate:"required,min=1"`
	// 返回最近一周还是全部
	Recent bool `protobuf:"varint,2,opt,name=recent,proto3" json:"recent,omitempty" form:"recent"`
	// 翻译后的格式 还是原始格式
	Translate bool `protobuf:"varint,3,opt,name=translate,proto3" json:"translate,omitempty" form:"translate"`
}

CoinsLogReq req

func (*CoinsLogReq) Descriptor

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

func (*CoinsLogReq) GetMid

func (m *CoinsLogReq) GetMid() int64

func (*CoinsLogReq) GetRecent

func (m *CoinsLogReq) GetRecent() bool

func (*CoinsLogReq) GetTranslate

func (m *CoinsLogReq) GetTranslate() bool

func (*CoinsLogReq) Marshal

func (m *CoinsLogReq) Marshal() (dAtA []byte, err error)

func (*CoinsLogReq) MarshalTo

func (m *CoinsLogReq) MarshalTo(dAtA []byte) (int, error)

func (*CoinsLogReq) ProtoMessage

func (*CoinsLogReq) ProtoMessage()

func (*CoinsLogReq) Reset

func (m *CoinsLogReq) Reset()

func (*CoinsLogReq) Size

func (m *CoinsLogReq) Size() (n int)

func (*CoinsLogReq) String

func (m *CoinsLogReq) String() string

func (*CoinsLogReq) Unmarshal

func (m *CoinsLogReq) Unmarshal(dAtA []byte) error

type ItemUserCoinsReply

type ItemUserCoinsReply struct {
	// number
	Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number"`
}

ItemUserCoinsReply reply

func (*ItemUserCoinsReply) Descriptor

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

func (*ItemUserCoinsReply) GetNumber

func (m *ItemUserCoinsReply) GetNumber() int64

func (*ItemUserCoinsReply) Marshal

func (m *ItemUserCoinsReply) Marshal() (dAtA []byte, err error)

func (*ItemUserCoinsReply) MarshalTo

func (m *ItemUserCoinsReply) MarshalTo(dAtA []byte) (int, error)

func (*ItemUserCoinsReply) ProtoMessage

func (*ItemUserCoinsReply) ProtoMessage()

func (*ItemUserCoinsReply) Reset

func (m *ItemUserCoinsReply) Reset()

func (*ItemUserCoinsReply) Size

func (m *ItemUserCoinsReply) Size() (n int)

func (*ItemUserCoinsReply) String

func (m *ItemUserCoinsReply) String() string

func (*ItemUserCoinsReply) Unmarshal

func (m *ItemUserCoinsReply) Unmarshal(dAtA []byte) error

type ItemUserCoinsReq

type ItemUserCoinsReq struct {
	// mid
	Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid"  validate:"required"`
	// aid
	Aid int64 `protobuf:"varint,2,opt,name=aid,proto3" json:"aid,omitempty" form:"aid" validate:"required"`
	// 业务
	Business string `protobuf:"bytes,3,opt,name=business,proto3" json:"business,omitempty" form:"business" validate:"required"`
}

ItemUserCoinsReq req

func (*ItemUserCoinsReq) Descriptor

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

func (*ItemUserCoinsReq) GetAid

func (m *ItemUserCoinsReq) GetAid() int64

func (*ItemUserCoinsReq) GetBusiness

func (m *ItemUserCoinsReq) GetBusiness() string

func (*ItemUserCoinsReq) GetMid

func (m *ItemUserCoinsReq) GetMid() int64

func (*ItemUserCoinsReq) Marshal

func (m *ItemUserCoinsReq) Marshal() (dAtA []byte, err error)

func (*ItemUserCoinsReq) MarshalTo

func (m *ItemUserCoinsReq) MarshalTo(dAtA []byte) (int, error)

func (*ItemUserCoinsReq) ProtoMessage

func (*ItemUserCoinsReq) ProtoMessage()

func (*ItemUserCoinsReq) Reset

func (m *ItemUserCoinsReq) Reset()

func (*ItemUserCoinsReq) Size

func (m *ItemUserCoinsReq) Size() (n int)

func (*ItemUserCoinsReq) String

func (m *ItemUserCoinsReq) String() string

func (*ItemUserCoinsReq) Unmarshal

func (m *ItemUserCoinsReq) Unmarshal(dAtA []byte) error

type ListReply

type ListReply struct {
	// log
	List []*ModelList `protobuf:"bytes,1,rep,name=list" json:"list,omitempty"`
}

ListReply reply

func (*ListReply) Descriptor

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

func (*ListReply) GetList

func (m *ListReply) GetList() []*ModelList

func (*ListReply) Marshal

func (m *ListReply) Marshal() (dAtA []byte, err error)

func (*ListReply) MarshalTo

func (m *ListReply) MarshalTo(dAtA []byte) (int, error)

func (*ListReply) ProtoMessage

func (*ListReply) ProtoMessage()

func (*ListReply) Reset

func (m *ListReply) Reset()

func (*ListReply) Size

func (m *ListReply) Size() (n int)

func (*ListReply) String

func (m *ListReply) String() string

func (*ListReply) Unmarshal

func (m *ListReply) Unmarshal(dAtA []byte) error

type ListReq

type ListReq struct {
	// mid
	Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"`
	// business
	Business string `protobuf:"bytes,2,opt,name=business,proto3" json:"business,omitempty"`
	// 时间戳
	Ts int64 `protobuf:"varint,3,opt,name=ts,proto3" json:"ts,omitempty"`
}

ListReq .

func (*ListReq) Descriptor

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

func (*ListReq) GetBusiness

func (m *ListReq) GetBusiness() string

func (*ListReq) GetMid

func (m *ListReq) GetMid() int64

func (*ListReq) GetTs

func (m *ListReq) GetTs() int64

func (*ListReq) Marshal

func (m *ListReq) Marshal() (dAtA []byte, err error)

func (*ListReq) MarshalTo

func (m *ListReq) MarshalTo(dAtA []byte) (int, error)

func (*ListReq) ProtoMessage

func (*ListReq) ProtoMessage()

func (*ListReq) Reset

func (m *ListReq) Reset()

func (*ListReq) Size

func (m *ListReq) Size() (n int)

func (*ListReq) String

func (m *ListReq) String() string

func (*ListReq) Unmarshal

func (m *ListReq) Unmarshal(dAtA []byte) error

type ModelArchiveUserCoins

type ModelArchiveUserCoins struct {
	// number
	Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
}

ModelArchiveUserCoins .

func (*ModelArchiveUserCoins) Descriptor

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

func (*ModelArchiveUserCoins) GetNumber

func (m *ModelArchiveUserCoins) GetNumber() int64

func (*ModelArchiveUserCoins) Marshal

func (m *ModelArchiveUserCoins) Marshal() (dAtA []byte, err error)

func (*ModelArchiveUserCoins) MarshalTo

func (m *ModelArchiveUserCoins) MarshalTo(dAtA []byte) (int, error)

func (*ModelArchiveUserCoins) ProtoMessage

func (*ModelArchiveUserCoins) ProtoMessage()

func (*ModelArchiveUserCoins) Reset

func (m *ModelArchiveUserCoins) Reset()

func (*ModelArchiveUserCoins) Size

func (m *ModelArchiveUserCoins) Size() (n int)

func (*ModelArchiveUserCoins) String

func (m *ModelArchiveUserCoins) String() string

func (*ModelArchiveUserCoins) Unmarshal

func (m *ModelArchiveUserCoins) Unmarshal(dAtA []byte) error

type ModelArgModifyCoin

type ModelArgModifyCoin struct {
	// mid
	Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"`
	// count
	Count float64 `protobuf:"fixed64,2,opt,name=count,proto3" json:"count,omitempty"`
	// 原因
	Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
	// ip
	IP string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip"`
	// 操作人
	Operator string `protobuf:"bytes,5,opt,name=operator,proto3" json:"operator,omitempty"`
	// 是否要检查余额数量 默认检查 为1则不检查
	CheckZero int32 `protobuf:"varint,6,opt,name=check_zero,json=checkZero,proto3" json:"check_zero,omitempty"`
}

ModelArgModifyCoin .

func (*ModelArgModifyCoin) Descriptor

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

func (*ModelArgModifyCoin) GetCheckZero

func (m *ModelArgModifyCoin) GetCheckZero() int32

func (*ModelArgModifyCoin) GetCount

func (m *ModelArgModifyCoin) GetCount() float64

func (*ModelArgModifyCoin) GetIP

func (m *ModelArgModifyCoin) GetIP() string

func (*ModelArgModifyCoin) GetMid

func (m *ModelArgModifyCoin) GetMid() int64

func (*ModelArgModifyCoin) GetOperator

func (m *ModelArgModifyCoin) GetOperator() string

func (*ModelArgModifyCoin) GetReason

func (m *ModelArgModifyCoin) GetReason() string

func (*ModelArgModifyCoin) Marshal

func (m *ModelArgModifyCoin) Marshal() (dAtA []byte, err error)

func (*ModelArgModifyCoin) MarshalTo

func (m *ModelArgModifyCoin) MarshalTo(dAtA []byte) (int, error)

func (*ModelArgModifyCoin) ProtoMessage

func (*ModelArgModifyCoin) ProtoMessage()

func (*ModelArgModifyCoin) Reset

func (m *ModelArgModifyCoin) Reset()

func (*ModelArgModifyCoin) Size

func (m *ModelArgModifyCoin) Size() (n int)

func (*ModelArgModifyCoin) String

func (m *ModelArgModifyCoin) String() string

func (*ModelArgModifyCoin) Unmarshal

func (m *ModelArgModifyCoin) Unmarshal(dAtA []byte) error

type ModelList

type ModelList struct {
	// aid
	Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
	// number
	Number int64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
	// 时间戳
	Ts int64 `protobuf:"varint,3,opt,name=ts,proto3" json:"ts,omitempty"`
	// ip
	IP uint32 `protobuf:"varint,4,opt,name=ip,proto3" json:"ip"`
}

ModelList .

func (*ModelList) Descriptor

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

func (*ModelList) GetAid

func (m *ModelList) GetAid() int64

func (*ModelList) GetIP

func (m *ModelList) GetIP() uint32

func (*ModelList) GetNumber

func (m *ModelList) GetNumber() int64

func (*ModelList) GetTs

func (m *ModelList) GetTs() int64

func (*ModelList) Marshal

func (m *ModelList) Marshal() (dAtA []byte, err error)

func (*ModelList) MarshalTo

func (m *ModelList) MarshalTo(dAtA []byte) (int, error)

func (*ModelList) ProtoMessage

func (*ModelList) ProtoMessage()

func (*ModelList) Reset

func (m *ModelList) Reset()

func (*ModelList) Size

func (m *ModelList) Size() (n int)

func (*ModelList) String

func (m *ModelList) String() string

func (*ModelList) Unmarshal

func (m *ModelList) Unmarshal(dAtA []byte) error

type ModelLog

type ModelLog struct {
	// 修改前硬币数
	From float64 `protobuf:"fixed64,1,opt,name=from,proto3" json:"from,omitempty"`
	// 修改后硬币数
	To float64 `protobuf:"fixed64,2,opt,name=to,proto3" json:"to,omitempty"`
	// ip
	IP string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip"`
	// 原因
	Desc string `protobuf:"bytes,4,opt,name=desc,proto3" json:"desc,omitempty"`
	// 时间戳
	TimeStamp int64 `protobuf:"varint,5,opt,name=time_stamp,json=timeStamp,proto3" json:"time_stamp,omitempty"`
}

ModelLog .

func (*ModelLog) Descriptor

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

func (*ModelLog) GetDesc

func (m *ModelLog) GetDesc() string

func (*ModelLog) GetFrom

func (m *ModelLog) GetFrom() float64

func (*ModelLog) GetIP

func (m *ModelLog) GetIP() string

func (*ModelLog) GetTimeStamp

func (m *ModelLog) GetTimeStamp() int64

func (*ModelLog) GetTo

func (m *ModelLog) GetTo() float64

func (*ModelLog) Marshal

func (m *ModelLog) Marshal() (dAtA []byte, err error)

func (*ModelLog) MarshalTo

func (m *ModelLog) MarshalTo(dAtA []byte) (int, error)

func (*ModelLog) ProtoMessage

func (*ModelLog) ProtoMessage()

func (*ModelLog) Reset

func (m *ModelLog) Reset()

func (*ModelLog) Size

func (m *ModelLog) Size() (n int)

func (*ModelLog) String

func (m *ModelLog) String() string

func (*ModelLog) Unmarshal

func (m *ModelLog) Unmarshal(dAtA []byte) error

type ModelRecord

type ModelRecord struct {
	// aid
	Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
	// mid
	Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"`
	// up主id
	Up int64 `protobuf:"varint,3,opt,name=up,proto3" json:"up,omitempty"`
	// 时间戳
	Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// number
	Number int64 `protobuf:"varint,5,opt,name=number,proto3" json:"number,omitempty"`
	// 业务
	Business string `protobuf:"bytes,6,opt,name=business,proto3" json:"business,omitempty"`
	// ip
	IP uint32 `protobuf:"varint,7,opt,name=ip,proto3" json:"ip"`
}

ModelRecord record

func (*ModelRecord) Descriptor

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

func (*ModelRecord) GetAid

func (m *ModelRecord) GetAid() int64

func (*ModelRecord) GetBusiness

func (m *ModelRecord) GetBusiness() string

func (*ModelRecord) GetIP

func (m *ModelRecord) GetIP() uint32

func (*ModelRecord) GetMid

func (m *ModelRecord) GetMid() int64

func (*ModelRecord) GetNumber

func (m *ModelRecord) GetNumber() int64

func (*ModelRecord) GetTimestamp

func (m *ModelRecord) GetTimestamp() int64

func (*ModelRecord) GetUp

func (m *ModelRecord) GetUp() int64

func (*ModelRecord) Marshal

func (m *ModelRecord) Marshal() (dAtA []byte, err error)

func (*ModelRecord) MarshalTo

func (m *ModelRecord) MarshalTo(dAtA []byte) (int, error)

func (*ModelRecord) ProtoMessage

func (*ModelRecord) ProtoMessage()

func (*ModelRecord) Reset

func (m *ModelRecord) Reset()

func (*ModelRecord) Size

func (m *ModelRecord) Size() (n int)

func (*ModelRecord) String

func (m *ModelRecord) String() string

func (*ModelRecord) Unmarshal

func (m *ModelRecord) Unmarshal(dAtA []byte) error

type ModifyCoinsReply

type ModifyCoinsReply struct {
	// result
	Result float64 `protobuf:"fixed64,1,opt,name=result,proto3" json:"result,omitempty"`
}

ModifyCoinsReply reply

func (*ModifyCoinsReply) Descriptor

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

func (*ModifyCoinsReply) GetResult

func (m *ModifyCoinsReply) GetResult() float64

func (*ModifyCoinsReply) Marshal

func (m *ModifyCoinsReply) Marshal() (dAtA []byte, err error)

func (*ModifyCoinsReply) MarshalTo

func (m *ModifyCoinsReply) MarshalTo(dAtA []byte) (int, error)

func (*ModifyCoinsReply) ProtoMessage

func (*ModifyCoinsReply) ProtoMessage()

func (*ModifyCoinsReply) Reset

func (m *ModifyCoinsReply) Reset()

func (*ModifyCoinsReply) Size

func (m *ModifyCoinsReply) Size() (n int)

func (*ModifyCoinsReply) String

func (m *ModifyCoinsReply) String() string

func (*ModifyCoinsReply) Unmarshal

func (m *ModifyCoinsReply) Unmarshal(dAtA []byte) error

type ModifyCoinsReq

type ModifyCoinsReq struct {
	// mid
	Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"required"`
	// 变更的计数 例如10为硬币数加10
	Count float64 `protobuf:"fixed64,2,opt,name=count,proto3" json:"count,omitempty" form:"count" validate:"required"`
	// 改变的原因
	Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty" form:"reason" validate:"required"`
	// ip
	IP string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip"`
	// 操作人
	Operator string `protobuf:"bytes,5,opt,name=operator,proto3" json:"operator,omitempty" form:"operator"`
	// 是否要检查余额数量 默认检查 为1则不检查
	CheckZero int32 `protobuf:"varint,6,opt,name=check_zero,json=checkZero,proto3" json:"check_zero,omitempty" form:"check_zero"`
	// 时间戳
	Ts int64 `protobuf:"varint,7,opt,name=ts,proto3" json:"ts,omitempty"`
}

ModifyCoinsReq req

func (*ModifyCoinsReq) Descriptor

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

func (*ModifyCoinsReq) GetCheckZero

func (m *ModifyCoinsReq) GetCheckZero() int32

func (*ModifyCoinsReq) GetCount

func (m *ModifyCoinsReq) GetCount() float64

func (*ModifyCoinsReq) GetIP

func (m *ModifyCoinsReq) GetIP() string

func (*ModifyCoinsReq) GetMid

func (m *ModifyCoinsReq) GetMid() int64

func (*ModifyCoinsReq) GetOperator

func (m *ModifyCoinsReq) GetOperator() string

func (*ModifyCoinsReq) GetReason

func (m *ModifyCoinsReq) GetReason() string

func (*ModifyCoinsReq) GetTs

func (m *ModifyCoinsReq) GetTs() int64

func (*ModifyCoinsReq) Marshal

func (m *ModifyCoinsReq) Marshal() (dAtA []byte, err error)

func (*ModifyCoinsReq) MarshalTo

func (m *ModifyCoinsReq) MarshalTo(dAtA []byte) (int, error)

func (*ModifyCoinsReq) ProtoMessage

func (*ModifyCoinsReq) ProtoMessage()

func (*ModifyCoinsReq) Reset

func (m *ModifyCoinsReq) Reset()

func (*ModifyCoinsReq) Size

func (m *ModifyCoinsReq) Size() (n int)

func (*ModifyCoinsReq) String

func (m *ModifyCoinsReq) String() string

func (*ModifyCoinsReq) Unmarshal

func (m *ModifyCoinsReq) Unmarshal(dAtA []byte) error

type TodayExpReply

type TodayExpReply struct {
	// exp
	Exp int64 `protobuf:"varint,1,opt,name=exp,proto3" json:"exp,omitempty"`
}

TodayExpReply reply

func (*TodayExpReply) Descriptor

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

func (*TodayExpReply) GetExp

func (m *TodayExpReply) GetExp() int64

func (*TodayExpReply) Marshal

func (m *TodayExpReply) Marshal() (dAtA []byte, err error)

func (*TodayExpReply) MarshalTo

func (m *TodayExpReply) MarshalTo(dAtA []byte) (int, error)

func (*TodayExpReply) ProtoMessage

func (*TodayExpReply) ProtoMessage()

func (*TodayExpReply) Reset

func (m *TodayExpReply) Reset()

func (*TodayExpReply) Size

func (m *TodayExpReply) Size() (n int)

func (*TodayExpReply) String

func (m *TodayExpReply) String() string

func (*TodayExpReply) Unmarshal

func (m *TodayExpReply) Unmarshal(dAtA []byte) error

type TodayExpReq

type TodayExpReq struct {
	// mid
	Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"required,min=1"`
}

TodayExpReq req

func (*TodayExpReq) Descriptor

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

func (*TodayExpReq) GetMid

func (m *TodayExpReq) GetMid() int64

func (*TodayExpReq) Marshal

func (m *TodayExpReq) Marshal() (dAtA []byte, err error)

func (*TodayExpReq) MarshalTo

func (m *TodayExpReq) MarshalTo(dAtA []byte) (int, error)

func (*TodayExpReq) ProtoMessage

func (*TodayExpReq) ProtoMessage()

func (*TodayExpReq) Reset

func (m *TodayExpReq) Reset()

func (*TodayExpReq) Size

func (m *TodayExpReq) Size() (n int)

func (*TodayExpReq) String

func (m *TodayExpReq) String() string

func (*TodayExpReq) Unmarshal

func (m *TodayExpReq) Unmarshal(dAtA []byte) error

type UpdateAddCoinReply

type UpdateAddCoinReply struct {
}

UpdateAddCoinReply reply

func (*UpdateAddCoinReply) Descriptor

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

func (*UpdateAddCoinReply) Marshal

func (m *UpdateAddCoinReply) Marshal() (dAtA []byte, err error)

func (*UpdateAddCoinReply) MarshalTo

func (m *UpdateAddCoinReply) MarshalTo(dAtA []byte) (int, error)

func (*UpdateAddCoinReply) ProtoMessage

func (*UpdateAddCoinReply) ProtoMessage()

func (*UpdateAddCoinReply) Reset

func (m *UpdateAddCoinReply) Reset()

func (*UpdateAddCoinReply) Size

func (m *UpdateAddCoinReply) Size() (n int)

func (*UpdateAddCoinReply) String

func (m *UpdateAddCoinReply) String() string

func (*UpdateAddCoinReply) Unmarshal

func (m *UpdateAddCoinReply) Unmarshal(dAtA []byte) error

type UpdateAddCoinReq

type UpdateAddCoinReq struct {
	// aid
	Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
	// mid
	Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"`
	// up mid
	Up int64 `protobuf:"varint,3,opt,name=up,proto3" json:"up,omitempty"`
	// timestamp
	Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// number
	Number int64 `protobuf:"varint,5,opt,name=number,proto3" json:"number,omitempty"`
	// business
	Business string `protobuf:"bytes,6,opt,name=business,proto3" json:"business,omitempty"`
	// ip
	IP   uint32 `protobuf:"varint,7,opt,name=ip,proto3" json:"ip"`
	IPV6 string `protobuf:"bytes,8,opt,name=ipv6,proto3" json:"ip_v6"`
}

UpdateAddCoinReq req

func (*UpdateAddCoinReq) Descriptor

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

func (*UpdateAddCoinReq) GetAid

func (m *UpdateAddCoinReq) GetAid() int64

func (*UpdateAddCoinReq) GetBusiness

func (m *UpdateAddCoinReq) GetBusiness() string

func (*UpdateAddCoinReq) GetIP

func (m *UpdateAddCoinReq) GetIP() uint32

func (*UpdateAddCoinReq) GetIPV6

func (m *UpdateAddCoinReq) GetIPV6() string

func (*UpdateAddCoinReq) GetMid

func (m *UpdateAddCoinReq) GetMid() int64

func (*UpdateAddCoinReq) GetNumber

func (m *UpdateAddCoinReq) GetNumber() int64

func (*UpdateAddCoinReq) GetTimestamp

func (m *UpdateAddCoinReq) GetTimestamp() int64

func (*UpdateAddCoinReq) GetUp

func (m *UpdateAddCoinReq) GetUp() int64

func (*UpdateAddCoinReq) Marshal

func (m *UpdateAddCoinReq) Marshal() (dAtA []byte, err error)

func (*UpdateAddCoinReq) MarshalTo

func (m *UpdateAddCoinReq) MarshalTo(dAtA []byte) (int, error)

func (*UpdateAddCoinReq) ProtoMessage

func (*UpdateAddCoinReq) ProtoMessage()

func (*UpdateAddCoinReq) Reset

func (m *UpdateAddCoinReq) Reset()

func (*UpdateAddCoinReq) Size

func (m *UpdateAddCoinReq) Size() (n int)

func (*UpdateAddCoinReq) String

func (m *UpdateAddCoinReq) String() string

func (*UpdateAddCoinReq) Unmarshal

func (m *UpdateAddCoinReq) Unmarshal(dAtA []byte) error

type UserCoinsReply

type UserCoinsReply struct {
	// count
	Count float64 `protobuf:"fixed64,1,opt,name=count,proto3" json:"count,omitempty"`
}

UserCoinsReply reply

func (*UserCoinsReply) Descriptor

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

func (*UserCoinsReply) GetCount

func (m *UserCoinsReply) GetCount() float64

func (*UserCoinsReply) Marshal

func (m *UserCoinsReply) Marshal() (dAtA []byte, err error)

func (*UserCoinsReply) MarshalTo

func (m *UserCoinsReply) MarshalTo(dAtA []byte) (int, error)

func (*UserCoinsReply) ProtoMessage

func (*UserCoinsReply) ProtoMessage()

func (*UserCoinsReply) Reset

func (m *UserCoinsReply) Reset()

func (*UserCoinsReply) Size

func (m *UserCoinsReply) Size() (n int)

func (*UserCoinsReply) String

func (m *UserCoinsReply) String() string

func (*UserCoinsReply) Unmarshal

func (m *UserCoinsReply) Unmarshal(dAtA []byte) error

type UserCoinsReq

type UserCoinsReq struct {
	// mid
	Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"required,min=1"`
}

UserCoinsReq req

func (*UserCoinsReq) Descriptor

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

func (*UserCoinsReq) GetMid

func (m *UserCoinsReq) GetMid() int64

func (*UserCoinsReq) Marshal

func (m *UserCoinsReq) Marshal() (dAtA []byte, err error)

func (*UserCoinsReq) MarshalTo

func (m *UserCoinsReq) MarshalTo(dAtA []byte) (int, error)

func (*UserCoinsReq) ProtoMessage

func (*UserCoinsReq) ProtoMessage()

func (*UserCoinsReq) Reset

func (m *UserCoinsReq) Reset()

func (*UserCoinsReq) Size

func (m *UserCoinsReq) Size() (n int)

func (*UserCoinsReq) String

func (m *UserCoinsReq) String() string

func (*UserCoinsReq) Unmarshal

func (m *UserCoinsReq) Unmarshal(dAtA []byte) error

Directories

Path Synopsis
Package coin is a generated GoMock package.
Package coin is a generated GoMock package.

Jump to

Keyboard shortcuts

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