mirror of
https://github.com/nicksherron/bashhub-server.git
synced 2025-09-06 20:34:24 +08:00
get command by uuid
This commit is contained in:
parent
7930a9bf8c
commit
51dfeb11b3
1 changed files with 3 additions and 2 deletions
|
@ -28,7 +28,8 @@ type Query struct {
|
|||
Path string `form:"path" json:"path" xml:"path"`
|
||||
ExitStatus int `form:"exitStatus" json:"exitStatus" xml:"exitStatus"`
|
||||
Username string `form:"username" json:"username" xml:"username"`
|
||||
SystemName string `gorm:"-" json:"systemName" `
|
||||
SystemName string `gorm:"-" json:"systemName"`
|
||||
SessionID string `form:"session_id" json:"session_id" xml:"session_id"`
|
||||
}
|
||||
type SystemQuery struct {
|
||||
ID uint `form:"id" json:"id" xml:"id" gorm:"primary_key"`
|
||||
|
@ -220,7 +221,7 @@ func Run() {
|
|||
}
|
||||
|
||||
})
|
||||
|
||||
|
||||
r.POST("/api/v1/command", func(c *gin.Context) {
|
||||
var command Command
|
||||
if err := c.ShouldBindJSON(&command); err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue