Database

package
v1.3.35 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StockCode

type StockCode struct {
	Flag       string    `json:"flag" xorm:"default '01' comment('标志($): 00-禁止检测,01-正常检测') CHAR(2)"`
	Code       string    `json:"code" xorm:"not null comment('股票代码') index CHAR(32)"`
	FullCode   string    `json:"full_code" xorm:"not null comment('完整的股票代码') CHAR(32)"`
	Name       string    `json:"name" xorm:"not null comment('股票名称(?$)') CHAR(128)"`
	Operator   string    `json:"operator" xorm:"default 'system' comment('操作人(?$)') VARCHAR(50)"`
	Createtime time.Time `json:"createTime" xorm:"comment('创建时间($)') DATETIME"`
	Id         int       `json:"id" xorm:"not null pk autoincr INT(10)"`
}

type StockHistory

type StockHistory struct {
	Day        time.Time `json:"day" xorm:"comment('日期') index DATE"`
	Code       string    `json:"code" xorm:"not null comment('股票代码') index VARCHAR(20)"`
	Open       string    `json:"open" xorm:"not null comment('开盘价') VARCHAR(20)"`
	High       string    `json:"high" xorm:"not null comment('最高价') VARCHAR(20)"`
	Low        string    `json:"low" xorm:"not null comment('最低价') VARCHAR(20)"`
	Close      string    `json:"close" xorm:"not null comment('收盘价') VARCHAR(20)"`
	Volume     string    `json:"volume" xorm:"not null comment('成交量') VARCHAR(20)"`
	Ma5        string    `json:"MA5" xorm:"not null comment('MA5价') VARCHAR(20)"`
	Ma5Volume  string    `json:"MA5_volume" xorm:"not null comment('MA5量') VARCHAR(20)"`
	Ma10       string    `json:"MA10" xorm:"not null comment('MA10价') VARCHAR(20)"`
	Ma10Volume string    `json:"MA10_volume" xorm:"not null comment('MA10量') VARCHAR(20)"`
	Ma30       string    `json:"MA30" xorm:"not null comment('MA30价') VARCHAR(20)"`
	Ma30Volume string    `json:"MA30_volume" xorm:"not null comment('MA30量') VARCHAR(20)"`
}

type StockMessages

type StockMessages struct {
	Flag       string    `json:"flag" xorm:"default '00' comment('标志($): 00-未发送,01-正常发送,97-丢弃的策略消息') CHAR(2)"`
	Phone      string    `json:"phone" xorm:"not null comment('客户ID') index CHAR(32)"`
	Code       string    `json:"code" xorm:"not null comment('股票代码') index CHAR(32)"`
	Policy     string    `json:"policy" xorm:"default '' comment('策略') index VARCHAR(512)"`
	Price      string    `json:"price" xorm:"default '' comment('交易价格') CHAR(20)"`
	Remark     string    `json:"remark" xorm:"comment('策略命中备注') TEXT"`
	Createtime time.Time `json:"createTime" xorm:"comment('创建时间($)') DATETIME"`
	Senddate   time.Time `json:"sendDate" xorm:"comment('发送日期') DATE"`
	Operator   string    `json:"operator" xorm:"default 'system' comment('操作人(?$)') VARCHAR(50)"`
	Id         int       `json:"id" xorm:"not null pk autoincr INT(10)"`
}

type StockMonitor

type StockMonitor struct {
	Flag       string    `json:"flag" xorm:"default '00' comment('标志($): 00-禁止检测,01-正常检测') CHAR(2)"`
	Code       string    `json:"code" xorm:"not null comment('股票代码') index CHAR(32)"`
	Day        time.Time `json:"day" xorm:"not null comment('日期') index DATE"`
	Support1   string    `json:"support1" xorm:"default '0.000' comment('第一支撑位') CHAR(20)"`
	Support2   string    `json:"support2" xorm:"default '0.000' comment('第二支撑位') CHAR(20)"`
	Pressure1  string    `json:"pressure1" xorm:"default '0.000' comment('第一压力位') CHAR(20)"`
	Pressure2  string    `json:"pressure2" xorm:"default '0.000' comment('第二压力位') CHAR(20)"`
	Stop       string    `json:"stop" xorm:"default '0.000' comment('止损位') CHAR(20)"`
	Resistance string    `json:"resistance" xorm:"default '0.000' comment('压力位') CHAR(20)"`
	Remark     string    `json:"remark" xorm:"comment('策略命中备注') TEXT"`
	Createtime time.Time `json:"createTime" xorm:"comment('创建时间($)') DATETIME"`
	Operator   string    `json:"operator" xorm:"default 'system' comment('操作人(?$)') VARCHAR(50)"`
	Id         int       `json:"id" xorm:"not null pk autoincr INT(10)"`
}

type StockRealtime

type StockRealtime struct {
	Type            int       `json:"type" xorm:"default 2 comment('类型: 1-指数,2-股票') TINYINT(4)"`
	Date            time.Time `json:"date" xorm:"comment('日期') DATE"`
	Time            time.Time `json:"time" xorm:"comment('时间') TIME"`
	Code            string    `json:"code" xorm:"not null comment('证券代码') index CHAR(32)"`
	Name            string    `json:"name" xorm:"not null comment('证券名称') CHAR(32)"`
	Open            string    `json:"open" xorm:"default '0.000' comment('开盘价') VARCHAR(20)"`
	Close           string    `json:"close" xorm:"default '0.000' comment('收盘价') VARCHAR(20)"`
	Now             string    `json:"now" xorm:"default '0.000' comment('最新价') VARCHAR(20)"`
	High            string    `json:"high" xorm:"default '0.000' comment('最高价') VARCHAR(20)"`
	Low             string    `json:"low" xorm:"default '0.000' comment('最低价') VARCHAR(20)"`
	BuyPrice        string    `json:"buy_price" xorm:"default '0.000' comment('买入价') VARCHAR(20)"`
	SellPrice       string    `json:"sell_price" xorm:"default '0.000' comment('卖出价') VARCHAR(20)"`
	Volume          string    `json:"volume" xorm:"default '0' comment('成交量') VARCHAR(20)"`
	VolumePrice     string    `json:"volume_price" xorm:"default '0.000' comment('成交额') VARCHAR(20)"`
	Buy1Num         string    `json:"buy_1_num" xorm:"default '0' comment('委托买一量') VARCHAR(20)"`
	Buy1Price       string    `json:"buy_1_price" xorm:"default '0.000' comment('委托买一价') VARCHAR(20)"`
	Buy2Num         string    `json:"buy_2_num" xorm:"default '0' comment('委托买二量') VARCHAR(20)"`
	Buy2Price       string    `json:"buy_2_price" xorm:"default '0.000' comment('委托买二价') VARCHAR(20)"`
	Buy3Num         string    `json:"buy_3_num" xorm:"default '0' comment('委托买三量') VARCHAR(20)"`
	Buy3Price       string    `json:"buy_3_price" xorm:"default '0.000' comment('委托买三价') VARCHAR(20)"`
	Buy4Num         string    `json:"buy_4_num" xorm:"default '0' comment('委托买四量') VARCHAR(20)"`
	Buy4Price       string    `json:"buy_4_price" xorm:"default '0.000' comment('委托买四价') VARCHAR(20)"`
	Buy5Num         string    `json:"buy_5_num" xorm:"default '0' comment('委托买五量') VARCHAR(20)"`
	Buy5Price       string    `json:"buy_5_price" xorm:"default '0.000' comment('委托买五价') VARCHAR(20)"`
	Sell1Num        string    `json:"sell_1_num" xorm:"default '0' comment('委托卖一量') VARCHAR(20)"`
	Sell1Price      string    `json:"sell_1_price" xorm:"default '0.000' comment('委托卖一价') VARCHAR(20)"`
	Sell2Num        string    `json:"sell_2_num" xorm:"default '0' comment('委托卖二量') VARCHAR(20)"`
	Sell2Price      string    `json:"sell_2_price" xorm:"default '0.000' comment('委托卖二价') VARCHAR(20)"`
	Sell3Num        string    `json:"sell_3_num" xorm:"default '0' comment('委托卖三量') VARCHAR(20)"`
	Sell3Price      string    `json:"sell_3_price" xorm:"default '0.000' comment('委托卖三价') VARCHAR(20)"`
	Sell4Num        string    `json:"sell_4_num" xorm:"default '0' comment('委托卖四量') VARCHAR(20)"`
	Sell4Price      string    `json:"sell_4_price" xorm:"default '0.000' comment('委托卖四价') VARCHAR(20)"`
	Sell5Num        string    `json:"sell_5_num" xorm:"default '0' comment('委托卖五量') VARCHAR(20)"`
	Sell5Price      string    `json:"sell_5_price" xorm:"default '0.000' comment('委托买五价') VARCHAR(20)"`
	RiseFall        string    `json:"rise_fall" xorm:"default '0.000' comment('涨跌价') VARCHAR(20)"`
	RiseFallPercent string    `json:"rise_fall_percent" xorm:"default '0.000' comment('涨跌幅') VARCHAR(20)"`
}

type StockSubscribe

type StockSubscribe struct {
	Flag       string    `json:"flag" xorm:"default '00' comment('标志($): 00-禁止订阅,01-正常订阅') CHAR(2)"`
	Phone      string    `json:"phone" xorm:"not null comment('客户ID') index CHAR(32)"`
	Code       string    `json:"code" xorm:"not null comment('股票代码') index CHAR(32)"`
	Createtime time.Time `json:"createTime" xorm:"comment('创建时间($)') DATETIME"`
	Senddate   time.Time `json:"sendDate" xorm:"comment('发送日期') DATE"`
	Remark     string    `json:"remark" xorm:"comment('策略命中备注') TEXT"`
	Operator   string    `json:"operator" xorm:"default 'system' comment('操作人(?$)') VARCHAR(50)"`
	Id         int       `json:"id" xorm:"not null pk autoincr INT(10)"`
}

type StockUser

type StockUser struct {
	Flag       string    `json:"flag" xorm:"default '00' comment('标志($): 00-禁止,01-正常') CHAR(2)"`
	Memberid   string    `json:"memberId" xorm:"default '' comment('客户ID') index CHAR(128)"`
	Membername string    `json:"memberName" xorm:"default '' comment('客户姓名') index CHAR(128)"`
	Phone      string    `json:"phone" xorm:"not null comment('手机号码(?$)') index CHAR(32)"`
	Weixin     string    `json:"weixin" xorm:"default '' comment('微信id(?$)') CHAR(128)"`
	Email      string    `json:"email" xorm:"default '' comment('邮箱(?$)') CHAR(128)"`
	Createtime time.Time `json:"createTime" xorm:"comment('创建时间($)') DATETIME"`
	Senddate   time.Time `json:"sendDate" xorm:"comment('发送日期') DATE"`
	Operator   string    `json:"operator" xorm:"default 'system' comment('操作人(?$)') VARCHAR(50)"`
	Id         int       `json:"id" xorm:"not null pk autoincr INT(10)"`
}

Jump to

Keyboard shortcuts

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