DeleteDeviceThresholdAlarm

DeleteAreaThresholdAlarm
This commit is contained in:
2025-11-10 18:22:00 +08:00
parent f44a94b451
commit cb075c907d
7 changed files with 131 additions and 8 deletions

View File

@@ -15,7 +15,7 @@ func NewPlanToResponse(plan *models.Plan) (*PlanResponse, error) {
response := &PlanResponse{
ID: plan.ID,
Name: plan.Name,
Name: string(plan.Name),
Description: plan.Description,
PlanType: plan.PlanType,
ExecutionType: plan.ExecutionType,
@@ -60,7 +60,7 @@ func NewPlanFromCreateRequest(req *CreatePlanRequest) (*models.Plan, error) {
}
plan := &models.Plan{
Name: req.Name,
Name: models.PlanName(req.Name),
Description: req.Description,
ExecutionType: req.ExecutionType,
ExecuteNum: req.ExecuteNum,
@@ -103,7 +103,7 @@ func NewPlanFromUpdateRequest(req *UpdatePlanRequest) (*models.Plan, error) {
}
plan := &models.Plan{
Name: req.Name,
Name: models.PlanName(req.Name),
Description: req.Description,
ExecutionType: req.ExecutionType,
ExecuteNum: req.ExecuteNum,