model

package
v0.0.0-...-3fab713 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Code generated by goctl. DO NOT EDIT.

Code generated by goctl. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound        = mon.ErrNotFound
	ErrInvalidObjectId = errors.New("invalid objectId")
)

Functions

This section is empty.

Types

type Balance

type Balance struct {
	ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	// TODO: Fill your own fields
	UpdateAt time.Time `bson:"updateAt,omitempty" json:"updateAt,omitempty"`
	CreateAt time.Time `bson:"createAt,omitempty" json:"createAt,omitempty"`
}

type BalanceModel

type BalanceModel interface {
	// contains filtered or unexported methods
}

BalanceModel is an interface to be customized, add more methods here, and implement the added methods in customBalanceModel.

func NewBalanceModel

func NewBalanceModel(url, db, collection string) BalanceModel

NewBalanceModel returns a model for the mongo.

type BillingRecord

type BillingRecord struct {
	ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	// TODO: Fill your own fields
	UpdateAt time.Time `bson:"updateAt,omitempty" json:"updateAt,omitempty"`
	CreateAt time.Time `bson:"createAt,omitempty" json:"createAt,omitempty"`
}

type BillingRecordModel

type BillingRecordModel interface {
	// contains filtered or unexported methods
}

BillingRecordModel is an interface to be customized, add more methods here, and implement the added methods in customBillingRecordModel.

func NewBillingRecordModel

func NewBillingRecordModel(url, db, collection string) BillingRecordModel

NewBillingRecordModel returns a model for the mongo.

Jump to

Keyboard shortcuts

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