1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- package model
- const (
-
- MonitorClosed = int32(0)
- MonitorBefore = int32(1)
- MonitorAfter = int32(2)
- )
- type MonitorResult struct {
- Order string `json:"order"`
- Sort string `json:"sort"`
- Page int64 `json:"page"`
- PageSize int64 `json:"pagesize"`
- Total int64 `json:"total"`
- Result []*Monitor `json:"result"`
- }
- type Monitor struct {
- ID int64 `json:"id"`
- Type int32 `json:"type"`
- Pid int64 `json:"pid"`
- Oid int64 `json:"oid"`
- State int32 `json:"state"`
- MCount int64 `json:"mcount"`
- Ctime string `json:"ctime"`
- Mtime string `json:"mtime"`
- Mid int64 `json:"mid"`
- Title string `json:"title"`
- Author string `json:"author"`
- }
- type SearchMonitor struct {
- ID int64 `json:"id"`
- Type int32 `json:"type"`
- Pid int64 `json:"pid"`
- Oid int64 `json:"oid"`
- State int32 `json:"state"`
- Attr int32 `json:"attr"`
- MCount int64 `json:"mcount"`
- Ctime string `json:"ctime"`
- Mtime string `json:"mtime"`
- Mid int64 `json:"mid"`
- Title string `json:"title"`
- Author string `json:"author"`
- }
- type Page struct {
- Num int64 `json:"num"`
- Size int64 `json:"size"`
- Total int64 `json:"total"`
- }
- type SearchMonitorResult struct {
- Order string `json:"order"`
- Sort string `json:"sort"`
- Page *Page `json:"page"`
- Result []*SearchMonitor `json:"result"`
- }
|