mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-09-28 12:52:16 +08:00
28 lines
594 B
Go
28 lines
594 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type WsShare struct {
|
|
gorm.Model
|
|
Pid int `gorm:"column:pid" json:"pid"`
|
|
Write bool `gorm:"column:write" json:"write"`
|
|
ExpireTime time.Time `gorm:"column:expire_time" json:"expireTime"`
|
|
CreateBy string `gorm:"column:create_by" json:"createBy"`
|
|
Token string `gorm:"column:token" json:"token"`
|
|
}
|
|
|
|
func (WsShare) TableName() string {
|
|
return "ws_share"
|
|
}
|
|
|
|
type WebsocketHandleReq struct {
|
|
Uuid int `form:"uuid"`
|
|
Cols int `form:"cols"`
|
|
Rows int `form:"rows"`
|
|
Token string `form:"token"`
|
|
}
|