Documentation ¶
Overview ¶
Package coin is a generated GoMock package.
Index ¶
- type MockRPC
- func (m *MockRPC) AddCoins(c context.Context, arg *model.ArgAddCoin) error
- func (m *MockRPC) ArchiveUserCoins(c context.Context, arg *model.ArgCoinInfo) (*model.ArchiveUserCoins, error)
- func (m *MockRPC) EXPECT() *MockRPCMockRecorder
- func (m *MockRPC) UserCoins(c context.Context, arg *model.ArgCoinInfo) (float64, error)
- type MockRPCMockRecorder
- type RPC
- type Service
- func (s *Service) AddCoins(c context.Context, arg *model.ArgAddCoin) (err error)
- func (s *Service) AddUserCoinExp(c context.Context, arg *model.ArgAddUserCoinExp) (err error)
- func (s *Service) ArchiveUserCoins(c context.Context, arg *model.ArgCoinInfo) (res *model.ArchiveUserCoins, err error)
- func (s *Service) List(c context.Context, arg *model.ArgList) (list []*model.List, err error)
- func (s *Service) ModifyCoin(c context.Context, arg *model.ArgModifyCoin) (count float64, err error)
- func (s *Service) TodayExp(c context.Context, arg *model.ArgMid) (number int64, err error)
- func (s *Service) UpdateAddCoin(c context.Context, arg *model.Record) (err error)
- func (s *Service) UserCoins(c context.Context, arg *model.ArgCoinInfo) (count float64, err error)
- func (s *Service) UserLog(c context.Context, arg *model.ArgLog) (logs []*model.Log, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRPC ¶
type MockRPC struct {
// contains filtered or unexported fields
}
MockRPC is a mock of RPC interface
func NewMockRPC ¶
func NewMockRPC(ctrl *gomock.Controller) *MockRPC
NewMockRPC creates a new mock instance
func (*MockRPC) ArchiveUserCoins ¶
func (m *MockRPC) ArchiveUserCoins(c context.Context, arg *model.ArgCoinInfo) (*model.ArchiveUserCoins, error)
ArchiveUserCoins mocks base method
func (*MockRPC) EXPECT ¶
func (m *MockRPC) EXPECT() *MockRPCMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockRPCMockRecorder ¶
type MockRPCMockRecorder struct {
// contains filtered or unexported fields
}
MockRPCMockRecorder is the mock recorder for MockRPC
func (*MockRPCMockRecorder) AddCoins ¶
func (mr *MockRPCMockRecorder) AddCoins(c, arg interface{}) *gomock.Call
AddCoins indicates an expected call of AddCoins
func (*MockRPCMockRecorder) ArchiveUserCoins ¶
func (mr *MockRPCMockRecorder) ArchiveUserCoins(c, arg interface{}) *gomock.Call
ArchiveUserCoins indicates an expected call of ArchiveUserCoins
func (*MockRPCMockRecorder) UserCoins ¶
func (mr *MockRPCMockRecorder) UserCoins(c, arg interface{}) *gomock.Call
UserCoins indicates an expected call of UserCoins
type RPC ¶
type RPC interface { AddCoins(c context.Context, arg *model.ArgAddCoin) (err error) ArchiveUserCoins(c context.Context, arg *model.ArgCoinInfo) (res *model.ArchiveUserCoins, err error) UserCoins(c context.Context, arg *model.ArgCoinInfo) (count float64, err error) }
RPC coin rpc
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service rpc service.
func (*Service) AddUserCoinExp ¶
AddUserCoinExp add user coin exp
func (*Service) ArchiveUserCoins ¶
func (s *Service) ArchiveUserCoins(c context.Context, arg *model.ArgCoinInfo) (res *model.ArchiveUserCoins, err error)
ArchiveUserCoins get archive User added coins.
func (*Service) ModifyCoin ¶
func (s *Service) ModifyCoin(c context.Context, arg *model.ArgModifyCoin) (count float64, err error)
ModifyCoin modify user coin.
func (*Service) UpdateAddCoin ¶
UpdateAddCoin update db after add coin for job.