consumption

package
Version: v0.0.0-...-2cd4ea5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumptionRecord

type ConsumptionRecord struct {
	eel.EntityBase

	Id           int
	Money        int
	ConsumeCount int

	UserId int
	User   *account.User

	CorpId int

	CreatedAt time.Time
	UpdatedAt time.Time
}

func NewConsumptionRecord

func NewConsumptionRecord(ctx context.Context, user business.IUser) *ConsumptionRecord

func NewConsumptionRecordFromModel

func NewConsumptionRecordFromModel(ctx context.Context, model *m_order.UserConsumptionRecord) *ConsumptionRecord

type ConsumptionRecordRepository

type ConsumptionRecordRepository struct {
	eel.ServiceBase
}

func NewConsumptionRecordRepository

func NewConsumptionRecordRepository(ctx context.Context) *ConsumptionRecordRepository

func (*ConsumptionRecordRepository) GetPagedOrders

func (this *ConsumptionRecordRepository) GetPagedOrders(filters eel.Map, page *eel.PageInfo, orderExprs ...string) ([]*ConsumptionRecord, eel.INextPageInfo)

func (*ConsumptionRecordRepository) GetRecords

func (this *ConsumptionRecordRepository) GetRecords(filters eel.Map, orderExprs ...string) []*ConsumptionRecord

func (*ConsumptionRecordRepository) GetRecordsForUsers

func (this *ConsumptionRecordRepository) GetRecordsForUsers(userIds []int) []*ConsumptionRecord

type EncodeConsumptionRecordService

type EncodeConsumptionRecordService struct {
	eel.ServiceBase
}

func NewEncodeConsumptionRecordService

func NewEncodeConsumptionRecordService(ctx context.Context) *EncodeConsumptionRecordService

func (*EncodeConsumptionRecordService) Encode

Encode 对单个实体对象进行编码

func (*EncodeConsumptionRecordService) EncodeMany

EncodeMany 对实体对象进行批量编码

type FillConsumptionRecordService

type FillConsumptionRecordService struct {
	eel.ServiceBase
}

func NewFillConsumptionRecordService

func NewFillConsumptionRecordService(ctx context.Context) *FillConsumptionRecordService

func (*FillConsumptionRecordService) Fill

func (this *FillConsumptionRecordService) Fill(records []*ConsumptionRecord, option map[string]interface{})

type RConsumptionRecord

type RConsumptionRecord struct {
	Id                int            `json:"id"`
	Money             int            `json:"consume_money"`
	ConsumeCount      int            `json:"consume_count"`
	User              *account.RUser `json:"user"`
	CreatedAt         string         `json:"created_at"`
	LatestConsumeTime string         `json:"latest_consume_time"`
}

Jump to

Keyboard shortcuts

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