coin

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

Documentation

Overview

Package coin is a generated GoMock package.

Index

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) AddCoins

func (m *MockRPC) AddCoins(c context.Context, arg *model.ArgAddCoin) error

AddCoins mocks base method

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

func (*MockRPC) UserCoins

func (m *MockRPC) UserCoins(c context.Context, arg *model.ArgCoinInfo) (float64, error)

UserCoins mocks base method

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 New

func New(c *rpc.ClientConfig) (s *Service)

New new service.

func (*Service) AddCoins

func (s *Service) AddCoins(c context.Context, arg *model.ArgAddCoin) (err error)

AddCoins coin to archive.

func (*Service) AddUserCoinExp

func (s *Service) AddUserCoinExp(c context.Context, arg *model.ArgAddUserCoinExp) (err error)

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) List

func (s *Service) List(c context.Context, arg *model.ArgList) (list []*model.List, err error)

List coin added list.

func (*Service) ModifyCoin

func (s *Service) ModifyCoin(c context.Context, arg *model.ArgModifyCoin) (count float64, err error)

ModifyCoin modify user coin.

func (*Service) TodayExp

func (s *Service) TodayExp(c context.Context, arg *model.ArgMid) (number int64, err error)

TodayExp get today exp

func (*Service) UpdateAddCoin

func (s *Service) UpdateAddCoin(c context.Context, arg *model.Record) (err error)

UpdateAddCoin update db after add coin for job.

func (*Service) UserCoins

func (s *Service) UserCoins(c context.Context, arg *model.ArgCoinInfo) (count float64, err error)

UserCoins get user coins.

func (*Service) UserLog

func (s *Service) UserLog(c context.Context, arg *model.ArgLog) (logs []*model.Log, err error)

UserLog user log

Jump to

Keyboard shortcuts

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