model

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTime

func GetTime() time.Time

GetTime Return RPC time

func GetTimeString

func GetTimeString() string

GetTimeString Return RPC time

func ToTime

func ToTime(lTime string) time.Time

ToTime Return RPC time

Types

type APLogin

type APLogin struct {
	Account  string `bson:"account" json:"Account"`
	Password string `bson:"password" json:"Password"`
}

The APLogin holds

type Account

type Account struct {
	UID     primitive.ObjectID `bson:"_id" json:"UID"`
	Label   string             `bson:"label" json:"Label"`
	Login   APLogin            `bson:"login" json:"Login"`
	Phone   string             `bson:"phone" json:"Phone"`
	Role    uint               `bson:"role" json:"Role"`
	Auth    uint               `bson:"auth" json:"Auth"`
	Created time.Time          `bson:"created" json:"Created"`
}

The Account holds-Label:姓名

func (*Account) New

func (u *Account) New() *Account

New is generator default Account

type AuxFun

type AuxFun struct {
	UID     primitive.ObjectID `bson:"_id" json:"UID"`
	IKX     uint               `bson:"ikx" json:"IKX"`
	Label   string             `bson:"label" json:"Label"`
	Note    string             `bson:"note" json:"Note"`
	Created time.Time          `bson:"created" json:"Created"`
}

The AuxFun holds- IKX: 0X00-关机,0X01-启动中,0X02-就绪,0XFD-故障,0XFE-纸张告警,0XFF-墨盒告警

func (*AuxFun) New

func (u *AuxFun) New() *AuxFun

New is generator default AuxFun

type Auxiliary

type Auxiliary struct {
	State      uint   `bson:"state" json:"State"`
	Ink        uint   `bson:"ink" json:"Ink"`
	InkLimit   uint   `bson:"inklimit" json:"InkLimit"`
	DPBox      uint   `bson:"dpbox" json:"DPBox"`
	UPBox      uint   `bson:"upbox" json:"UPBox"`
	DPBoxLimit uint   `bson:"dpboxLimit" json:"DPBoxLimit"`
	UPBoxLimit uint   `bson:"upboxLimit" json:"UPBoxLimit"`
	APTime     string `bson:"aptime" json:"APTime"`
	InkTime    string `bson:"inktime" json:"InkTime"`
}

The Auxiliary holds

type Client

type Client struct {
	UID     primitive.ObjectID `bson:"_id" json:"UID"`
	Label   string             `bson:"label" json:"Label"`
	Note    string             `bson:"note" json:"Note"`
	Relevan []Correlation      `bson:"relevan" json:"Relevan"`
	Created time.Time          `bson:"created" json:"Created"`
}

The Client holds

func (*Client) New

func (u *Client) New() *Client

New is generator default Client

type Correlation

type Correlation struct {
	Mold  uint    `bson:"mold" json:"Mold"`
	Frees uint    `bson:"frees" json:"Frees"`
	CSPay float32 `bson:"cspay" json:"CSPay"`
}

The Correlation holds

type Diagnosis

type Diagnosis struct {
	UID     primitive.ObjectID `bson:"_id" json:"UID"`
	IKX     uint               `bson:"ikx" json:"IKX"`
	Label   string             `bson:"label" json:"Label"`
	Note    string             `bson:"note" json:"Note"`
	Created time.Time          `bson:"created" json:"Created"`
}

The Diagnosis holds

func (*Diagnosis) New

func (u *Diagnosis) New() *Diagnosis

New is generator default Host

type Fault

type Fault struct {
	UID       primitive.ObjectID `bson:"_id" json:"UID"`
	SNo       string             `bson:"sno" json:"SNo"`
	Name      string             `bson:"name" json:"Name"`
	Major     string             `bson:"major" json:"Major"`
	Terminal  uint               `bson:"terminal" json:"Terminal"`
	Diagnosis uint               `bson:"diagnosis" json:"Diagnosis"`
	Created   string             `bson:"created" json:"Created"`
}

The Fault holds

func (*Fault) New

func (u *Fault) New() *Fault

New is generator default Fault

type Host

type Host struct {
	UID     primitive.ObjectID `bson:"_id" json:"UID"`
	IKX     uint               `bson:"ikx" json:"IKX"`
	Label   string             `bson:"label" json:"Label"`
	Note    string             `bson:"note" json:"Note"`
	Created time.Time          `bson:"created" json:"Created"`
}

The Host holds- IKX: 0X00-关机,0X01-启动中,0X02-正常

func (*Host) New

func (u *Host) New() *Host

New is generator default Host

type Issue

type Issue struct {
	UID     primitive.ObjectID `bson:"_id" json:"UID"`
	IKX     uint               `bson:"ikx" json:"IKX"`
	Label   string             `bson:"label" json:"Label"`
	Note    string             `bson:"note" json:"Note"`
	Created time.Time          `bson:"created" json:"Created"`
}

The Issue holds- IKX: 0X00-待发布,0X01-已发布

func (*Issue) New

func (u *Issue) New() *Issue

New is generator default Issue

type Layout

type Layout struct {
	UID     primitive.ObjectID `bson:"_id" json:"UID"`
	IKX     uint               `bson:"ikx" json:"IKX"`
	Label   string             `bson:"label" json:"Label"`
	Note    string             `bson:"note" json:"Note"`
	Created time.Time          `bson:"created" json:"Created"`
}

The Layout holds- IKX: 0X00-纵版,0X01-横版

func (*Layout) New

func (u *Layout) New() *Layout

New is generator default Layout

type Location

type Location struct {
	UID     primitive.ObjectID `bson:"_id" json:"UID"`
	IKX     uint               `bson:"ikx" json:"IKX"`
	Label   string             `bson:"label" json:"Label"`
	Note    string             `bson:"note" json:"Note"`
	Created time.Time          `bson:"created" json:"Created"`
}

The Location holds

func (*Location) New

func (u *Location) New() *Location

New is generator default Location

type Mold

type Mold struct {
	UID      primitive.ObjectID `bson:"_id" json:"UID"`
	IKX      uint               `bson:"ikx" json:"IKX"`
	Label    string             `bson:"label" json:"Label"`
	MFun     uint               `bson:"mfun" json:"MFun"`
	IconName string             `bson:"iconname" json:"IconName"`
	Active   bool               `bson:"active" json:"Active"`
	Created  time.Time          `bson:"created" json:"Created"`
}

The Mold holds- IKX: 0X00-个人信息,0X01-收费标准,0X02-委托打印,0X03-预交费用,0X03-问卷调查,...,0X10-中文成绩单,0X11-英文成绩单,0X12-中文在读证明,0X13-英文在读证明,0X14-中英文在读证明

func (*Mold) New

func (u *Mold) New() *Mold

New is generator default Mold

type MoldFun

type MoldFun struct {
	UID     primitive.ObjectID `bson:"_id" json:"UID"`
	IKX     uint               `bson:"ikx" json:"IKX"`
	Label   string             `bson:"label" json:"Label"`
	Layout  uint               `bson:"layout" json:"Layout"`
	Note    string             `bson:"note" json:"Note"`
	Created time.Time          `bson:"created" json:"Created"`
}

The MoldFun holds- IKX: 0X00-成绩模板,0X01-证明模板,0X02-信息显示,0X03-附加功能

func (*MoldFun) New

func (u *MoldFun) New() *MoldFun

New is generator default MoldFun

type Monitor

type Monitor struct {
	UID         primitive.ObjectID `bson:"_id" json:"UID"`
	Device      uint               `bson:"device" json:"Device"`
	Location    uint               `bson:"location" json:"Location"`
	Host        uint               `bson:"host" json:"Host"`
	Note        string             `bson:"note" json:"Note"`
	Auxiliaries uint               `bson:"auxiliaries" json:"Auxiliaries"`
}

The Monitor holds

func (*Monitor) New

func (u *Monitor) New() *Monitor

New is generator default Monitor

type Notice

type Notice struct {
	UID     primitive.ObjectID `bson:"_id" json:"UID"`
	NFun    uint               `bson:"nfun" json:"NFun"`
	Issue   uint               `bson:"issue" json:"Issue"`
	ITime   string             `bson:"itime" json:"ITime"`
	ITpcs   string             `bson:"itpcs" json:"ITpcs"`
	Label   string             `bson:"label" json:"Label"`
	Content string             `bson:"content" json:"Content"`
	Created time.Time          `bson:"created" json:"Created"`
}

The Notice holds:NFun -NoticeFun:IKX

func (*Notice) New

func (u *Notice) New() *Notice

New is generator default Notice

type NoticeFun

type NoticeFun struct {
	UID     primitive.ObjectID `bson:"_id" json:"UID"`
	IKX     uint               `bson:"ikx" json:"IKX"`
	Label   string             `bson:"label" json:"Label"`
	Note    string             `bson:"note" json:"Note"`
	Created time.Time          `bson:"created" json:"Created"`
}

The NoticeFun holds-IKX:0X00-打印公告, 0X01-登录提示, 0X02-功能提示, 0X03-故障提示,0X04-加纸提示, 0X05-支付提示, 0X06-委托提示, 0X07-选课提示,0X08-问卷提示, 0X10-通知公告,

func (*NoticeFun) New

func (u *NoticeFun) New() *NoticeFun

New is generator default NoticeFun

type PPLogs

type PPLogs struct {
	UID      primitive.ObjectID `bson:"_id" json:"UID"`
	SNo      string             `bson:"sno" json:"SNo"`
	Name     string             `bson:"name" json:"Name"`
	Academy  string             `bson:"academy" json:"Academy"`
	Major    string             `bson:"major" json:"Major"`
	Class    string             `bson:"class" json:"Class"`
	Mold     uint               `bson:"mold" json:"Mold"`
	Paper    uint               `bson:"aper" json:"Paper"`
	CardNo   string             `bson:"cardno" json:"CardNo"`
	Amount   float32            `bson:"amount" json:"Amount"`
	Terminal uint               `bson:"terminal" json:"Terminal"`
	Created  string             `bson:"created" json:"Created"`
}

The PPLogs holds

func (*PPLogs) New

func (u *PPLogs) New() *PPLogs

New is generator default PPLogs

type Paging

type Paging struct {
	Skip      *int64
	Limit     *int64
	SortKey   string
	SortVal   int
	Condition interface{}
}

Paging Model

type Permissions

type Permissions struct {
	UID     primitive.ObjectID `bson:"_id" json:"UID"`
	IKX     uint               `bson:"ikx" json:"IKX"`
	Label   string             `bson:"label" json:"Label"`
	Note    string             `bson:"note" json:"Note"`
	Created time.Time          `bson:"created" json:"Created"`
}

The Permissions holds- IKX: 0X01-故障预警,0X02-终端监控,0X10-添加记录,0X20-编辑记录,0X40-删除记录

func (*Permissions) New

func (u *Permissions) New() *Permissions

New is generator default Permissions

type Role

type Role struct {
	UID     primitive.ObjectID `bson:"_id" json:"UID"`
	IKX     uint               `bson:"ikx" json:"IKX"`
	Auth    uint               `bson:"auth" json:"Auth"`
	Label   string             `bson:"label" json:"Label"`
	Note    string             `bson:"note" json:"Note"`
	Created time.Time          `bson:"created" json:"Created"`
}

The Role holds- IKX: 0X00-管理员,0X01-日常维护员,0X02-故障维护员

func (*Role) New

func (u *Role) New() *Role

New is generator default Role

type Scholar

type Scholar struct {
	Students []Student `bson:"students" json:"Students"`
}

The Scholar holds: Student Array

type Signin

type Signin struct {
	UID   primitive.ObjectID `bson:"_id" json:"UID"`
	IP    string             `bson:"ip" json:"IP"`
	Label string             `bson:"label" json:"Label"`
	OTime string             `bson:"otime" json:"OTime"`
	ITime string             `bson:"itime" json:"ITime"`
}

The Signin holds

func (*Signin) New

func (u *Signin) New() *Signin

New is generator default Signin

type Student

type Student struct {
	UID      primitive.ObjectID `bson:"_id" json:"UID"`
	SNo      string             `bson:"sno" json:"SNo"`
	Name     string             `bson:"name" json:"Name"`
	Password string             `bson:"password" json:"Password"`
	IDCard   string             `bson:"idcard" json:"IDCard"`
	Academy  string             `bson:"academy" json:"Academy"`
	Major    string             `bson:"major" json:"Major"`
	Class    string             `bson:"class" json:"Class"`
	Note     string             `bson:"note" json:"Note"`
	Created  time.Time          `bson:"created" json:"Created"`
}

The Student holds:学号,姓名,性别,身份证号,学院,专业,班级,备注, ---类别,问卷调查,支付,委托,授权号0,授权号1

func (*Student) New

func (u *Student) New() *Student

New is generator default Student

type Survey

type Survey struct {
	UID     primitive.ObjectID `bson:"_id" json:"UID"`
	IKX     uint               `bson:"ikx" json:"IKX"`
	Label   string             `bson:"label" json:"Label"`
	Note    string             `bson:"note" json:"Note"`
	Created time.Time          `bson:"created" json:"Created"`
}

The Survey holds

func (*Survey) New

func (u *Survey) New() *Survey

New is generator default Survey

type Terminal

type Terminal struct {
	UID      primitive.ObjectID `bson:"_id" json:"UID"`
	IKX      uint               `bson:"ikx" json:"IKX"`
	Host     uint               `bson:"host" json:"Host"`
	Location uint               `bson:"location" json:"Location"`
	Label    string             `bson:"label" json:"Label"`
	IP       string             `bson:"ip" json:"IP"`
	Auxs     Auxiliary          `bson:"auxs" json:"Auxs"`
	Created  time.Time          `bson:"created" json:"Created"`
}

The Terminal holds

func (*Terminal) New

func (u *Terminal) New() *Terminal

New is generator default Terminal

type University

type University struct {
	UID         primitive.ObjectID `bson:"_id" json:"UID"`
	UName       string             `bson:"uname" json:"UName"`
	UEName      string             `bson:"uename" json:"UEName"`
	SMName      string             `bson:"smname" json:"SMName"`
	SMEName     string             `bson:"smename" json:"SMEName"`
	ServiceCall string             `bson:"serviccall" json:"ServiceCall"`
	Created     time.Time          `bson:"created" json:"Created"`
}

The University holds

func (*University) New

func (u *University) New() *University

New is generator default University

Jump to

Keyboard shortcuts

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