diff --git a/app/http/entities/backend/cmd.go b/app/http/entities/backend/cmd.go index 5ef75a6..d140152 100644 --- a/app/http/entities/backend/cmd.go +++ b/app/http/entities/backend/cmd.go @@ -45,6 +45,7 @@ type CmdListResponse struct { ReadDb *crondbmodel.CronDb `json:"read_db"` WriteDb *crondbmodel.CronDb `json:"write_db"` ReportChannel *cronreportchannelmodel.CronReportChannel `json:"report_channel"` + IsDynamicUsers int `json:"is_dynamic_users"` } type CmdAddRequest struct { @@ -60,6 +61,7 @@ type CmdAddRequest struct { SendTimeType int `json:"send_time_type"` SendLimit int `json:"send_limit"` ReportChannelId int `json:"report_channel_id"` + IsDynamicUsers int `json:"is_dynamic_users"` } type CmdEditRequest struct { @@ -76,6 +78,7 @@ type CmdEditRequest struct { SendTimeType int `json:"send_time_type"` SendLimit int `json:"send_limit"` ReportChannelId int `json:"report_channel_id"` + IsDynamicUsers int `json:"is_dynamic_users"` } type CmdDeleteRequest struct { @@ -105,6 +108,7 @@ type CmdStopRequest struct { func (response *CmdListResponse) ResponseFromDb(l croncmdmodel.CronCmd) { response.CmdId = l.CmdId + response.CmdId = l.IsDynamicUsers response.CmdName = l.CmdName response.UserIds = l.UserIds response.EntryId = l.EntryId