records

package
v0.0.0-...-8fd06f2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record struct {
	Key       string    `json:"key"`
	CreatedAt time.Time `json:"createdAt"`
	Sum       int       `json:"totalCount"`
}

type RecordModel

type RecordModel interface {
	Get(ctx context.Context, recordRequest *RecordRequest) *RecordResponse
}

func NewRecordModel

func NewRecordModel(db *mongo.Database) RecordModel

type RecordRequest

type RecordRequest struct {
	StartDate time.Time `json:"startDate"`
	EndDate   time.Time `json:"endDate"`
	MinCount  int       `json:"minCount"`
	MaxCount  int       `json:"maxCount"`
}

type RecordResponse

type RecordResponse struct {
	Code    int      `json:"code" default:"0"`
	Msg     string   `json:"msg"`
	Records []Record `json:"records"`
}

Jump to

Keyboard shortcuts

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