DeleteDeviceThresholdAlarm
DeleteAreaThresholdAlarm
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user