mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-03-23 11:31:51 +00:00
fix struct tags (#7)
This commit is contained in:
@@ -2,12 +2,12 @@ package model
|
||||
|
||||
type CronForm struct {
|
||||
ID uint64 `json:"id,omitempty"`
|
||||
TaskType uint8 `json:"task_type,omitempty"` // 0:计划任务 1:触发任务
|
||||
Name string `json:"name,omitempty"`
|
||||
TaskType uint8 `json:"task_type,omitempty" default:"0"` // 0:计划任务 1:触发任务
|
||||
Name string `json:"name,omitempty" minLength:"1"`
|
||||
Scheduler string `json:"scheduler,omitempty"`
|
||||
Command string `json:"command,omitempty"`
|
||||
Command string `json:"command,omitempty" validate:"optional"`
|
||||
Servers []uint64 `json:"servers,omitempty"`
|
||||
Cover uint8 `json:"cover,omitempty"`
|
||||
PushSuccessful bool `json:"push_successful,omitempty"`
|
||||
Cover uint8 `json:"cover,omitempty" default:"0"`
|
||||
PushSuccessful bool `json:"push_successful,omitempty" validate:"optional"`
|
||||
NotificationGroupID uint64 `json:"notification_group_id,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user