controller

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BalanceSheetController

type BalanceSheetController struct {
	controller.BaseController
}

* 控制层代码需要做数据转换,调用服务层的代码,由于数据转换的结构不一致,因此每个实体(外部rest方式访问)的控制层都需要写一遍

func (*BalanceSheetController) ParseJSON

func (this *BalanceSheetController) ParseJSON(json []byte) (interface{}, error)

type CashFlowController

type CashFlowController struct {
	controller.BaseController
}

* 控制层代码需要做数据转换,调用服务层的代码,由于数据转换的结构不一致,因此每个实体(外部rest方式访问)的控制层都需要写一遍

func (*CashFlowController) ParseJSON

func (this *CashFlowController) ParseJSON(json []byte) (interface{}, error)

type DayLineController

type DayLineController struct {
	controller.BaseController
}

DayLineController 控制层代码需要做数据转换,调用服务层的代码,由于数据转换的结构不一致, 因此每个实体(外部rest方式访问)的控制层都需要写一遍

func (*DayLineController) FindCorr

func (ctl *DayLineController) FindCorr(ctx iris.Context)

func (*DayLineController) FindFlexPoint

func (ctl *DayLineController) FindFlexPoint(ctx iris.Context)

FindFlexPoint 最基本的查询买卖点的方法,最为灵活 条件包括tsCode,tradeDate,filterContent(filterParas),startDate,endDate 如果filterContent中有?,则filterParas中必须有对应的参数值

func (*DayLineController) FindFollowing

func (ctl *DayLineController) FindFollowing(ctx iris.Context)

func (*DayLineController) FindHighest

func (ctl *DayLineController) FindHighest(ctx iris.Context)

func (*DayLineController) FindLatest added in v0.1.24

func (ctl *DayLineController) FindLatest(ctx iris.Context)

FindNewest 查询最新的日期的股票日线数据

func (*DayLineController) FindLowest added in v0.1.24

func (ctl *DayLineController) FindLowest(ctx iris.Context)

func (*DayLineController) FindMaCross

func (ctl *DayLineController) FindMaCross(ctx iris.Context)

func (*DayLineController) FindPreceding

func (ctl *DayLineController) FindPreceding(ctx iris.Context)

func (*DayLineController) FindRange

func (ctl *DayLineController) FindRange(ctx iris.Context)

func (*DayLineController) GetUpdateDayLine

func (ctl *DayLineController) GetUpdateDayLine(ctx iris.Context)

func (*DayLineController) GetUpdateTodayLine

func (ctl *DayLineController) GetUpdateTodayLine(ctx iris.Context)

func (*DayLineController) ParseJSON

func (ctl *DayLineController) ParseJSON(json []byte) (interface{}, error)

func (*DayLineController) ParsePath

func (ctl *DayLineController) ParsePath(ctx iris.Context)

func (*DayLineController) RefreshBeforeMa

func (ctl *DayLineController) RefreshBeforeMa(ctx iris.Context)

func (*DayLineController) RefreshDayLine

func (ctl *DayLineController) RefreshDayLine(ctx iris.Context)

func (*DayLineController) RefreshStat

func (ctl *DayLineController) RefreshStat(ctx iris.Context)

func (*DayLineController) RefreshTodayLine

func (ctl *DayLineController) RefreshTodayLine(ctx iris.Context)

func (*DayLineController) Search

func (ctl *DayLineController) Search(ctx iris.Context)

Search 主要的查询参数进行查询

func (*DayLineController) StdPath

func (ctl *DayLineController) StdPath(ctx iris.Context)

func (*DayLineController) UpdateBeforeMa

func (ctl *DayLineController) UpdateBeforeMa(ctx iris.Context)

func (*DayLineController) UpdateStat

func (ctl *DayLineController) UpdateStat(ctx iris.Context)

func (*DayLineController) WriteAllFile

func (ctl *DayLineController) WriteAllFile(ctx iris.Context)

func (*DayLineController) WriteFile

func (ctl *DayLineController) WriteFile(ctx iris.Context)

type DayLinePara

type DayLinePara struct {
	From           int           `json:"from,omitempty"`
	Limit          int           `json:"limit,omitempty"`
	Orderby        string        `json:"orderby,omitempty"`
	Count          int64         `json:"count,omitempty"`
	TsCode         string        `json:"ts_code,omitempty"`
	Industry       string        `json:"industry,omitempty"`
	Sector         string        `json:"sector,omitempty"`
	StartDate      int64         `json:"start_date,omitempty"`
	EndDate        int64         `json:"end_date,omitempty"`
	TradeDate      int64         `json:"trade_date,omitempty"`
	DayCount       string        `json:"day_count,omitempty"`
	SrcDayCount    string        `json:"src_day_count,omitempty"`
	TargetDayCount string        `json:"target_day_count,omitempty"`
	Cross          string        `json:"cross,omitempty"`
	EventCode      string        `json:"event_code,omitempty"`
	FilterContent  string        `json:"filter_content,omitempty"`
	FilterParas    []interface{} `json:"filter_paras,omitempty"`
}

DayLinePara 查询DayLine的参数结构,主要包括tsCode,tradeDate,startDate,endDate,industry,eventCode,condContent 还有分页参数

type ExpressController

type ExpressController struct {
	controller.BaseController
}

* 控制层代码需要做数据转换,调用服务层的代码,由于数据转换的结构不一致,因此每个实体(外部rest方式访问)的控制层都需要写一遍

func (*ExpressController) FindByQDate

func (this *ExpressController) FindByQDate(ctx iris.Context)

func (*ExpressController) FindLatest

func (this *ExpressController) FindLatest(ctx iris.Context)

func (*ExpressController) GetUpdateExpress

func (this *ExpressController) GetUpdateExpress(ctx iris.Context)

func (*ExpressController) ParseJSON

func (this *ExpressController) ParseJSON(json []byte) (interface{}, error)

func (*ExpressController) RefreshExpress

func (this *ExpressController) RefreshExpress(ctx iris.Context)

func (*ExpressController) Search

func (this *ExpressController) Search(ctx iris.Context)

type FminLineController

type FminLineController struct {
	controller.BaseController
}

* 控制层代码需要做数据转换,调用服务层的代码,由于数据转换的结构不一致,因此每个实体(外部rest方式访问)的控制层都需要写一遍

func (*FminLineController) ParseJSON

func (this *FminLineController) ParseJSON(json []byte) (interface{}, error)

func (*FminLineController) ParsePath

func (this *FminLineController) ParsePath(ctx iris.Context)

type ForecastController

type ForecastController struct {
	controller.BaseController
}

* 控制层代码需要做数据转换,调用服务层的代码,由于数据转换的结构不一致,因此每个实体(外部rest方式访问)的控制层都需要写一遍

func (*ForecastController) FindByQDate

func (this *ForecastController) FindByQDate(ctx iris.Context)

func (*ForecastController) FindLatest

func (this *ForecastController) FindLatest(ctx iris.Context)

func (*ForecastController) GetUpdateForecast

func (this *ForecastController) GetUpdateForecast(ctx iris.Context)

func (*ForecastController) ParseJSON

func (this *ForecastController) ParseJSON(json []byte) (interface{}, error)

func (*ForecastController) RefreshForecast

func (this *ForecastController) RefreshForecast(ctx iris.Context)

func (*ForecastController) Search

func (this *ForecastController) Search(ctx iris.Context)

type IncomeController

type IncomeController struct {
	controller.BaseController
}

* 控制层代码需要做数据转换,调用服务层的代码,由于数据转换的结构不一致,因此每个实体(外部rest方式访问)的控制层都需要写一遍

func (*IncomeController) ParseJSON

func (this *IncomeController) ParseJSON(json []byte) (interface{}, error)

type MinLineController

type MinLineController struct {
	controller.BaseController
}

MinLineController 控制层代码需要做数据转换,调用服务层的代码,由于数据转换的结构不一致,因此每个实体(外部rest方式访问)的控制层都需要写一遍

func (*MinLineController) FindMinLines

func (ctl *MinLineController) FindMinLines(ctx iris.Context)

func (*MinLineController) GetUpdateMinLine

func (ctl *MinLineController) GetUpdateMinLine(ctx iris.Context)

func (*MinLineController) GetUpdateTodayMinLine

func (ctl *MinLineController) GetUpdateTodayMinLine(ctx iris.Context)

func (*MinLineController) ParseJSON

func (ctl *MinLineController) ParseJSON(json []byte) (interface{}, error)

func (*MinLineController) ParsePath

func (ctl *MinLineController) ParsePath(ctx iris.Context)

func (*MinLineController) RefreshMinLine

func (ctl *MinLineController) RefreshMinLine(ctx iris.Context)

func (*MinLineController) RefreshTodayMinLine

func (ctl *MinLineController) RefreshTodayMinLine(ctx iris.Context)

type PerformanceController

type PerformanceController struct {
	controller.BaseController
}

PerformanceController 控制层代码需要做数据转换,调用服务层的代码,由于数据转换的结构不一致,因此每个实体(外部rest方式访问)的控制层都需要写一遍

func (*PerformanceController) FindByQDate

func (ctl *PerformanceController) FindByQDate(ctx iris.Context)

func (*PerformanceController) FindLatest

func (ctl *PerformanceController) FindLatest(ctx iris.Context)

func (*PerformanceController) GetUpdatePerformance

func (ctl *PerformanceController) GetUpdatePerformance(ctx iris.Context)

func (*PerformanceController) ParseJSON

func (ctl *PerformanceController) ParseJSON(json []byte) (interface{}, error)

func (*PerformanceController) RefreshPerformance

func (ctl *PerformanceController) RefreshPerformance(ctx iris.Context)

type PerformancePara

type PerformancePara struct {
	SecurityCode string `json:"security_code,omitempty"`
	StartDate    string `json:"start_date,omitempty"`
	EndDate      string `json:"end_date,omitempty"`
	Orderby      string `json:"orderby,omitempty"`
	From         int    `json:"from"`
	Limit        int    `json:"limit"`
	Count        int64  `json:"count"`
}

type PortfolioStatController

type PortfolioStatController struct {
	controller.BaseController
}

* 控制层代码需要做数据转换,调用服务层的代码,由于数据转换的结构不一致,因此每个实体(外部rest方式访问)的控制层都需要写一遍

func (*PortfolioStatController) FindPortfolioStat

func (this *PortfolioStatController) FindPortfolioStat(ctx iris.Context)

func (*PortfolioStatController) GetUpdatePortfolioStat

func (this *PortfolioStatController) GetUpdatePortfolioStat(ctx iris.Context)

func (*PortfolioStatController) ParseJSON

func (this *PortfolioStatController) ParseJSON(json []byte) (interface{}, error)

func (*PortfolioStatController) RefreshPortfolioStat

func (this *PortfolioStatController) RefreshPortfolioStat(ctx iris.Context)

type PortfolioStatPara

type PortfolioStatPara struct {
	TsCode  string `json:"ts_code,omitempty"`
	Term    int64  `json:"term,omitempty"`
	From    int    `json:"from,omitempty"`
	Limit   int    `json:"limit,omitempty"`
	Orderby string `json:"orderby,omitempty"`
	Count   int64  `json:"count,omitempty"`
}

type ProcessLogController

type ProcessLogController struct {
	controller.BaseController
}

func (*ProcessLogController) ParseJSON

func (this *ProcessLogController) ParseJSON(json []byte) (interface{}, error)

func (*ProcessLogController) Schedule

func (this *ProcessLogController) Schedule(ctx iris.Context)

type QPerformanceController

type QPerformanceController struct {
	controller.BaseController
}

QPerformanceController 控制层代码需要做数据转换,调用服务层的代码,由于数据转换的结构不一致,因此每个实体(外部rest方式访问)的控制层都需要写一遍

func (*QPerformanceController) FindByQDate added in v0.1.24

func (ctl *QPerformanceController) FindByQDate(ctx iris.Context)

func (*QPerformanceController) FindPercentRank

func (ctl *QPerformanceController) FindPercentRank(ctx iris.Context)

func (*QPerformanceController) FindStat

func (ctl *QPerformanceController) FindStat(ctx iris.Context)

func (*QPerformanceController) FindStdQPerformance

func (ctl *QPerformanceController) FindStdQPerformance(ctx iris.Context)

func (*QPerformanceController) GetUpdateDayQPerformance

func (ctl *QPerformanceController) GetUpdateDayQPerformance(ctx iris.Context)

func (*QPerformanceController) GetUpdateWmqyQPerformance

func (ctl *QPerformanceController) GetUpdateWmqyQPerformance(ctx iris.Context)

func (*QPerformanceController) ParseJSON

func (ctl *QPerformanceController) ParseJSON(json []byte) (interface{}, error)

func (*QPerformanceController) RefreshQPerformance

func (ctl *QPerformanceController) RefreshQPerformance(ctx iris.Context)

func (*QPerformanceController) Search

func (ctl *QPerformanceController) Search(ctx iris.Context)

type QPerformancePara

type QPerformancePara struct {
	Terms         []int    `json:"terms,omitempty"`
	Term          int      `json:"term,omitempty"`
	SourceOptions []string `json:"source_options,omitempty"`
	From          int      `json:"from,omitempty"`
	Limit         int      `json:"limit,omitempty"`
	Orderby       string   `json:"orderby,omitempty"`
	Count         int64    `json:"count,omitempty"`
	Keyword       string   `json:"keyword,omitempty"`
	TsCode        string   `json:"ts_code,omitempty"`
	StartDate     string   `json:"start_date,omitempty"`
	EndDate       string   `json:"end_date,omitempty"`
	TradeDate     int64    `json:"trade_date,omitempty"`
	RankType      string   `json:"rank_type,omitempty"`
	StdType       int      `json:"std_type,omitempty"`
	Winsorize     bool     `json:"winsorize,omitempty"`
}

type QStatController

type QStatController struct {
	controller.BaseController
}

QStatController 控制层代码需要做数据转换,调用服务层的代码,由于数据转换的结构不一致,因此每个实体(外部rest方式访问)的控制层都需要写一遍

func (*QStatController) FindQStatBy added in v0.1.24

func (ctl *QStatController) FindQStatBy(ctx iris.Context)

func (*QStatController) GetUpdateQStat

func (ctl *QStatController) GetUpdateQStat(ctx iris.Context)

func (*QStatController) ParseJSON

func (ctl *QStatController) ParseJSON(json []byte) (interface{}, error)

func (*QStatController) RefreshQStat

func (ctl *QStatController) RefreshQStat(ctx iris.Context)

func (*QStatController) Search

func (ctl *QStatController) Search(ctx iris.Context)

type QStatPara

type QStatPara struct {
	TsCode        string   `json:"ts_code,omitempty"`
	Source        []string `json:"source,omitempty"`
	Terms         []int    `json:"terms,omitempty"`
	SourceOptions []string `json:"source_options,omitempty"`
	From          int      `json:"from,omitempty"`
	Limit         int      `json:"limit,omitempty"`
	Orderby       string   `json:"orderby,omitempty"`
	Count         int64    `json:"count,omitempty"`
	Keyword       string   `json:"keyword,omitempty"`
}

type ShareController

type ShareController struct {
	controller.BaseController
}

ShareController 控制层代码需要做数据转换,调用服务层的代码,由于数据转换的结构不一致,因此每个实体(外部rest方式访问)的控制层都需要写一遍

func (*ShareController) GetMine

func (ctl *ShareController) GetMine(ctx iris.Context)

func (*ShareController) ParseJSON

func (ctl *ShareController) ParseJSON(json []byte) (interface{}, error)

func (*ShareController) Search

func (ctl *ShareController) Search(ctx iris.Context)

func (*ShareController) UpdateSector

func (ctl *ShareController) UpdateSector(ctx iris.Context)

func (*ShareController) UpdateShares

func (ctl *ShareController) UpdateShares(ctx iris.Context)

type ShareEventController

type ShareEventController struct {
	controller.BaseController
}

ShareEventController 控制层代码需要做数据转换,调用服务层的代码,由于数据转换的结构不一致, 因此每个实体(外部rest方式访问)的控制层都需要写一遍

func (*ShareEventController) GetMine

func (ctl *ShareEventController) GetMine(ctx iris.Context)

func (*ShareEventController) ParseJSON

func (ctl *ShareEventController) ParseJSON(json []byte) (interface{}, error)

type StatScoreController

type StatScoreController struct {
	controller.BaseController
}

StatScoreController 控制层代码需要做数据转换,调用服务层的代码,由于数据转换的结构不一致,因此每个实体(外部rest方式访问)的控制层都需要写一遍

func (*StatScoreController) CreateScorePercentile

func (ctl *StatScoreController) CreateScorePercentile(ctx iris.Context)

func (*StatScoreController) GetUpdateStatScore

func (ctl *StatScoreController) GetUpdateStatScore(ctx iris.Context)

func (*StatScoreController) ParseJSON

func (ctl *StatScoreController) ParseJSON(json []byte) (interface{}, error)

func (*StatScoreController) RefreshStatScore

func (ctl *StatScoreController) RefreshStatScore(ctx iris.Context)

func (*StatScoreController) Search

func (ctl *StatScoreController) Search(ctx iris.Context)

type StatScorePara

type StatScorePara struct {
	Terms   []int  `json:"terms,omitempty"`
	From    int    `json:"from,omitempty"`
	Limit   int    `json:"limit,omitempty"`
	Orderby string `json:"orderby,omitempty"`
	Count   int64  `json:"count,omitempty"`
	Keyword string `json:"keyword,omitempty"`
	TsCode  string `json:"ts_code,omitempty"`
}

type WmqyLineController

type WmqyLineController struct {
	controller.BaseController
}

WmqyLineController 控制层代码需要做数据转换,调用服务层的代码,由于数据转换的结构不一致, 因此每个实体(外部rest方式访问)的控制层都需要写一遍

func (*WmqyLineController) FindFollowing

func (ctl *WmqyLineController) FindFollowing(ctx iris.Context)

func (*WmqyLineController) FindPreceding

func (ctl *WmqyLineController) FindPreceding(ctx iris.Context)

func (*WmqyLineController) FindQExpress

func (ctl *WmqyLineController) FindQExpress(ctx iris.Context)

func (*WmqyLineController) FindQForecast

func (ctl *WmqyLineController) FindQForecast(ctx iris.Context)

func (*WmqyLineController) FindQPerformance

func (ctl *WmqyLineController) FindQPerformance(ctx iris.Context)

func (*WmqyLineController) GetUpdateWmqyLine

func (ctl *WmqyLineController) GetUpdateWmqyLine(ctx iris.Context)

func (*WmqyLineController) ParseJSON

func (ctl *WmqyLineController) ParseJSON(json []byte) (interface{}, error)

func (*WmqyLineController) RefreshWmqyLine

func (ctl *WmqyLineController) RefreshWmqyLine(ctx iris.Context)

func (*WmqyLineController) StdPath

func (ctl *WmqyLineController) StdPath(ctx iris.Context)

type WmqyLinePara

type WmqyLinePara struct {
	From      int    `json:"from,omitempty"`
	Limit     int    `json:"limit,omitempty"`
	Orderby   string `json:"orderby,omitempty"`
	Count     int64  `json:"count,omitempty"`
	TsCode    string `json:"ts_code,omitempty"`
	StartDate string `json:"start_date,omitempty"`
	EndDate   string `json:"end_date,omitempty"`
	TradeDate int64  `json:"trade_date,omitempty"`
	LineType  int    `json:"line_type,omitempty"`
}

Jump to

Keyboard shortcuts

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