From 3e7492ab7528c67c386e5052187fd77e9951c1cd Mon Sep 17 00:00:00 2001
From: renzhiyuan <465386466@qq.com>
Date: Mon, 30 Dec 2024 14:28:29 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 app/http/entities/backend/cmd.go | 4 ++++
 1 file changed, 4 insertions(+)

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