mirror of
https://gitee.com/goploy/goploy.git
synced 2024-11-29 18:57:59 +08:00
fix project set auto deploy
This commit is contained in:
parent
bc2cfdecc6
commit
f3c356a830
@ -597,7 +597,7 @@ func (Project) Edit(gp *server.Goploy) server.Response {
|
||||
func (Project) SetAutoDeploy(gp *server.Goploy) server.Response {
|
||||
type ReqData struct {
|
||||
ID int64 `json:"id" validate:"required,gt=0"`
|
||||
AutoDeploy uint8 `json:"autoDeploy" validate:"required,gte=0"`
|
||||
AutoDeploy uint8 `json:"autoDeploy" validate:"oneof=0 1"`
|
||||
}
|
||||
var reqData ReqData
|
||||
if err := gp.Decode(&reqData); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user