| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- package trigger
- import (
- "time"
- )
- type Triggers struct {
- Id int `xorm:"not null pk INT(11)"`
- AId int
- AccCode string
- RemindTime time.Time
- ValidityDate time.Time
- KCCount float32
- ContentMode string
- Notification int
- TimeNotification int
- KCMin float32
- KCMax float32
- SPara3 string
- Feedback int
- FeedbackTime int
- SurplusCount int
- Category int
- Code string
- Switchalarm int
- }
- type Channels struct {
- Id int `xorm:"not null pk INT(11)"`
- Title string
- DataItem int
- About string
- ProjectSourse string
- ProjectAccount string
- ProjectAccountName string
- Well_ID string
- }
- //报警历史
- type Record_History struct {
- Id int
- ProjectSourse string
- ProjectAccount string
- ProjectAccountName string
- SendTo string
- ActionType string
- Message string
- IsRead int
- IsSend int
- SendErrorMsg string
- DeviceId string
- DeviceName string
- ChannelCode string
- ChannelName string
- CreateOn time.Time
- CreateUserId int
- CreateBy string
- ModifiedOn time.Time
- ModifiedUserId int
- ModifiedBy string
- }
- type Channels_dg_oilwell struct {
- Id int `xorm:"not null pk INT(11)"`
- WellCode string
- WellType string
- OrgCode string
- Well_Name string
- Scalar string
- Vector string
- CreateOn time.Time
- }
- type Channelslat struct {
- Id int `xorm:"not null pk INT(11)"`
- Unit string
- UnitSign string
- }
- type TriggerAction struct {
- To string `json:"tomail"`
- Subject string `json:"title"`
- Body string `json:"body"`
- }
- type TriggerActionSms struct {
- To string `json:"to"`
- Body string `json:"body"`
- }
- type Series struct {
- Name string `json:"name"`
- Columns []string `json:"columns"`
- Points [][]interface{} `json:"points"`
- }
- type UserInfo struct {
- Id int
- UserName string
- UserPassword string
- PublicKey string
- }
- //冲减
- type AccountInfo struct {
- Id int `xorm:"not null pk autoincr INT(11)" json:"id"`
- ProjectSourse string `xorm:"VARCHAR(50)" json:"sourse"`
- ProjectAccount string `xorm:"VARCHAR(50)" json:"account"`
- ProjectAccountName string `xorm:"VARCHAR(50)" json:"name"`
- ActionType string `xorm:"VARCHAR(50)" json:"type"`
- SurplusCount int `xorm:"INT(10)" json:"surplus"`
- StartTime time.Time `xorm:"DATETIME" json:"start"`
- EndTime time.Time `xorm:"DATETIME" json:"end"`
- CreateOn time.Time `xorm:"DATETIME created"`
- CreateUserId int `xorm:"INT(11)" form:"-" json:"-"`
- CreateBy string `xorm:"VARCHAR(50)"`
- ModifiedOn time.Time `xorm:"DATETIME updated" form:"-" json:"-"`
- ModifiedUserId int `xorm:"INT(11)" form:"-" json:"-"`
- ModifiedBy string `xorm:"VARCHAR(50)"`
- }
|