修改api接口定义
This commit is contained in:
@@ -14,7 +14,25 @@ definitions:
|
||||
type: object
|
||||
device.CreateDeviceRequest:
|
||||
type: object
|
||||
device.DeviceResponse:
|
||||
device.UpdateDeviceRequest:
|
||||
properties:
|
||||
location:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
parent_id:
|
||||
type: integer
|
||||
properties:
|
||||
$ref: '#/definitions/controller.Properties'
|
||||
sub_type:
|
||||
$ref: '#/definitions/models.DeviceSubType'
|
||||
type:
|
||||
$ref: '#/definitions/models.DeviceType'
|
||||
required:
|
||||
- name
|
||||
- type
|
||||
type: object
|
||||
git_huangwc_com_pig_pig-farm-controller_internal_app_controller_device.DeviceResponse:
|
||||
properties:
|
||||
created_at:
|
||||
type: string
|
||||
@@ -35,24 +53,6 @@ definitions:
|
||||
updated_at:
|
||||
type: string
|
||||
type: object
|
||||
device.UpdateDeviceRequest:
|
||||
properties:
|
||||
location:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
parent_id:
|
||||
type: integer
|
||||
properties:
|
||||
$ref: '#/definitions/controller.Properties'
|
||||
sub_type:
|
||||
$ref: '#/definitions/models.DeviceSubType'
|
||||
type:
|
||||
$ref: '#/definitions/models.DeviceType'
|
||||
required:
|
||||
- name
|
||||
- type
|
||||
type: object
|
||||
models.DeviceSubType:
|
||||
enum:
|
||||
- ""
|
||||
@@ -107,15 +107,38 @@ definitions:
|
||||
x-enum-varnames:
|
||||
- PlanExecutionTypeAutomatic
|
||||
- PlanExecutionTypeManual
|
||||
models.PlanStatus:
|
||||
enum:
|
||||
- 0
|
||||
- 1
|
||||
- 2
|
||||
format: int32
|
||||
type: integer
|
||||
x-enum-comments:
|
||||
PlanStatusDisabled: 禁用计划
|
||||
PlanStatusEnabled: 启用计划
|
||||
PlanStatusStopeed: 执行完毕
|
||||
x-enum-descriptions:
|
||||
- 启用计划
|
||||
- 禁用计划
|
||||
- 执行完毕
|
||||
x-enum-varnames:
|
||||
- PlanStatusEnabled
|
||||
- PlanStatusDisabled
|
||||
- PlanStatusStopeed
|
||||
models.TaskType:
|
||||
enum:
|
||||
- plan_analysis
|
||||
- waiting
|
||||
type: string
|
||||
x-enum-comments:
|
||||
TaskPlanAnalysis: 解析Plan的Task列表并添加到待执行队列的特殊任务
|
||||
TaskTypeWaiting: 等待任务
|
||||
x-enum-descriptions:
|
||||
- 解析Plan的Task列表并添加到待执行队列的特殊任务
|
||||
- 等待任务
|
||||
x-enum-varnames:
|
||||
- TaskPlanAnalysis
|
||||
- TaskTypeWaiting
|
||||
plan.CreatePlanRequest:
|
||||
properties:
|
||||
@@ -171,6 +194,12 @@ definitions:
|
||||
description:
|
||||
example: 根据温度自动调节风扇和加热器
|
||||
type: string
|
||||
execute_count:
|
||||
example: 0
|
||||
type: integer
|
||||
execute_num:
|
||||
example: 10
|
||||
type: integer
|
||||
execution_type:
|
||||
allOf:
|
||||
- $ref: '#/definitions/models.PlanExecutionType'
|
||||
@@ -181,6 +210,10 @@ definitions:
|
||||
name:
|
||||
example: 猪舍温度控制计划
|
||||
type: string
|
||||
status:
|
||||
allOf:
|
||||
- $ref: '#/definitions/models.PlanStatus'
|
||||
example: 0
|
||||
sub_plans:
|
||||
items:
|
||||
$ref: '#/definitions/plan.SubPlanResponse'
|
||||
|
||||
Reference in New Issue
Block a user