adapter

package
v0.0.0-...-16ed941 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartData

type ChartData struct {
	ID         string    `json:"_id,omitempty" bson:"_id,omitempty"`
	UserId     string    `json:"user_id" bson:"user_id,omitempty"`
	ChartId    uint32    `json:"chart_id" bson:"chart_id,omitempty"`
	TemplateId string    `json:"template_id" bson:"template_id,omitempty"`
	Client     string    `json:"client" bson:"client,omitempty"`
	Type       string    `json:"type" bson:"type,omitempty"`
	Name       string    `json:"name" bson:"name,omitempty"`
	Content    string    `json:"content" bson:"content,omitempty"`
	Symbol     string    `json:"symbol" bson:"symbol,omitempty"`
	Resolution string    `json:"resolution" bson:"resolution,omitempty"`
	CreatedAt  time.Time `json:"created_at" bson:"created_at,omitempty"`
	UpdatedAt  time.Time `json:"updated_at" bson:"updated_at,omitempty"`
}

func BuildChartDataFromEnt

func BuildChartDataFromEnt(chart *ent.Chart) *ChartData

func BuildListChartDataFromEnt

func BuildListChartDataFromEnt(charts []*ent.Chart) []*ChartData

Jump to

Keyboard shortcuts

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