uint ->int

This commit is contained in:
renzhiyuan 2024-11-29 20:49:06 +08:00
parent 77b7c9c207
commit 8180112e5a
1 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,9 @@ func Add(request *backend.CmdAddRequest) (err error) {
var db croncmdmodel.CronCmd var db croncmdmodel.CronCmd
_ = mapstructure.Decode(request, &db) _ = mapstructure.Decode(request, &db)
db.Status = common.CMD_STATUS_STOP db.Status = common.CMD_STATUS_STOP
if db.MatchJson == "" {
db.MatchJson = "{}"
}
_, err = croncmdmodel.GetInstance().GetDb().InsertOne(db) _, err = croncmdmodel.GetInstance().GetDb().InsertOne(db)
return return
} }