mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-04 23:52:53 +08:00
19 lines
502 B
Go
19 lines
502 B
Go
package model
|
|
|
|
type Push struct {
|
|
Id int64 `gorm:"column:id;NOT NULL" json:"id"`
|
|
Method string `gorm:"column:method;NOT NULL" json:"method"`
|
|
Url string `gorm:"column:url;NOT NULL" json:"url"`
|
|
Body string `gorm:"column:body;NOT NULL" json:"body"`
|
|
Remark string `gorm:"column:remark;NOT NULL" json:"remark"`
|
|
Enable bool `gorm:"column:enable;NOT NULL" json:"enable"`
|
|
}
|
|
|
|
func (*Push) TableName() string {
|
|
return "push"
|
|
}
|
|
|
|
type PushIdReq struct {
|
|
Id int `form:"id" binding:"required"`
|
|
}
|