文档
测试

添加猪

POST
{{url}}/api/client/pig/add

请求参数

参数名
类型
描述
必填
batch_plan
object
数据字典
必填
id
int
示例:1
必填
start_time
string
示例:2020-12-17
必填
number
int
示例:100
必填
base_units
array
数据列表
必填
name
string
示例:后备
必填
number
int
示例:20
必填
type
int
示例:0
必填
plan
object
数据字典
必填
id
int
示例:1
必填

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
data
object
数据字典
必填
id
int
示例:15
必填
batch_number
string
示例:20201218
必填
number
int
示例:100
必填
status
int
示例:0
必填
base_units
array
数据列表
必填
id
int
示例:4
必填
code
string
示例:20201218
必填
create_at
string
示例:2020-12-18T10:42:46.7761942+08:00
必填
update_at
string
示例:2020-12-18T10:42:46.7761942+08:00
必填
type
int
示例:0
必填
company
object
数据字典
必填
id
int
示例:4
必填
logo
string
示例:
必填
name
string
示例:
必填
principal_name
string
示例:
必填
person
string
示例:
必填
province
string
示例:
必填
city
string
示例:
必填
district
string
示例:
必填
address
string
示例:
必填
longitude
int
示例:0
必填
latitude
int
示例:0
必填
type
int
示例:0
必填
current_profile
object
示例:null
必填
current_batch_plan
object
示例:null
必填
plan
object
数据字典
必填
id
int
示例:1
必填
name
string
示例:测试方案一
必填
create_at
string
示例:2020-09-08T13:35:25+08:00
必填
update_at
string
示例:2020-09-08T14:16:19+08:00
必填
type
int
示例:0
必填
pre_state
object
数据字典
必填
id
int
示例:1
必填
name
string
示例:
必填
create_at
string
示例:0001-01-01T00:00:00Z
必填
update_at
string
示例:0001-01-01T00:00:00Z
必填
type
int
示例:0
必填
is_pre_breed
boolean
示例:false
必填
company
object
示例:null
必填
next_state
object
数据字典
必填
id
int
示例:2
必填
name
string
示例:
必填
create_at
string
示例:0001-01-01T00:00:00Z
必填
update_at
string
示例:0001-01-01T00:00:00Z
必填
type
int
示例:0
必填
is_pre_breed
boolean
示例:false
必填
company
object
示例:null
必填
company
object
示例:null
必填
next_action
object
数据字典
必填
id
int
示例:6
必填
name
string
示例:喂药
必填
create_at
string
示例:2020-12-17T14:53:32+08:00
必填
update_at
string
示例:2020-12-17T14:53:32+08:00
必填
type
int
示例:0
必填
can_end
boolean
示例:true
必填
product
object
数据字典
必填
id
int
示例:1
必填
type
int
示例:0
必填
name
string
示例:
必填
main_img
string
示例:
必填
detail_html
string
示例:
必填
imgs
object
示例:null
必填
price
string
示例:
必填
quantity
int
示例:0
必填
soldout
int
示例:0
必填
sort
int
示例:0
必填
status
int
示例:0
必填
create_at
string
示例:0001-01-01T00:00:00Z
必填
supplier
object
示例:null
必填
use_num
string
示例:5ml
必填
duration
int
示例:10
必填
day
int
示例:9
必填
hour
int
示例:9
必填
start_time
string
示例:09:00
必填
company
object
示例:null
必填
is_daily
boolean
示例:true
必填
state
object
数据字典
必填
id
int
示例:2
必填
name
string
示例:
必填
create_at
string
示例:0001-01-01T00:00:00Z
必填
update_at
string
示例:0001-01-01T00:00:00Z
必填
type
int
示例:0
必填
is_pre_breed
boolean
示例:false
必填
company
object
示例:null
必填
next_action_start_time
string
示例:0001-01-01T00:00:00Z
必填
day
string
示例:0001-01-01
必填
current_action
object
数据字典
必填
id
int
示例:6
必填
name
string
示例:喂药
必填
create_at
string
示例:2020-12-17T14:53:32+08:00
必填
update_at
string
示例:2020-12-17T14:53:32+08:00
必填
type
int
示例:0
必填
can_end
boolean
示例:true
必填
product
object
数据字典
必填
id
int
示例:1
必填
type
int
示例:0
必填
name
string
示例:
必填
main_img
string
示例:
必填
detail_html
string
示例:
必填
imgs
object
示例:null
必填
price
string
示例:
必填
quantity
int
示例:0
必填
soldout
int
示例:0
必填
sort
int
示例:0
必填
status
int
示例:0
必填
create_at
string
示例:0001-01-01T00:00:00Z
必填
supplier
object
示例:null
必填
use_num
string
示例:5ml
必填
duration
int
示例:10
必填
day
int
示例:9
必填
hour
int
示例:9
必填
start_time
string
示例:09:00
必填
company
object
示例:null
必填
is_daily
boolean
示例:true
必填
state
object
数据字典
必填
id
int
示例:2
必填
name
string
示例:
必填
create_at
string
示例:0001-01-01T00:00:00Z
必填
update_at
string
示例:0001-01-01T00:00:00Z
必填
type
int
示例:0
必填
is_pre_breed
boolean
示例:false
必填
company
object
示例:null
必填
current_action_start_time
string
示例:2020-12-18T10:42:46.7761942+08:00
必填
current_state
object
数据字典
必填
id
int
示例:1
必填
name
string
示例:
必填
create_at
string
示例:0001-01-01T00:00:00Z
必填
update_at
string
示例:0001-01-01T00:00:00Z
必填
type
int
示例:0
必填
is_pre_breed
boolean
示例:false
必填
company
object
示例:null
必填
next_state
object
数据字典
必填
id
int
示例:2
必填
name
string
示例:
必填
create_at
string
示例:0001-01-01T00:00:00Z
必填
update_at
string
示例:0001-01-01T00:00:00Z
必填
type
int
示例:0
必填
is_pre_breed
boolean
示例:false
必填
company
object
示例:null
必填
start_days
int
示例:0
必填
status
int
示例:0
必填
number
int
示例:20
必填
name
string
示例:后备
必填
pig
object
数据字典
必填
id
int
示例:15
必填
batch_number
string
示例:
必填
number
int
示例:0
必填
status
int
示例:0
必填
base_units
object
示例:null
必填
state
object
示例:null
必填
create_at
string
示例:0001-01-01T00:00:00Z
必填
update_at
string
示例:0001-01-01T00:00:00Z
必填
start_time
string
示例:
必填
batch_plan
object
示例:null
必填
start_timne
string
示例:2020-12-17
必填
company
object
数据字典
必填
id
int
示例:4
必填
logo
string
示例:
必填
name
string
示例:
必填
principal_name
string
示例:
必填
person
string
示例:
必填
province
string
示例:
必填
city
string
示例:
必填
district
string
示例:
必填
address
string
示例:
必填
longitude
int
示例:0
必填
latitude
int
示例:0
必填
type
int
示例:0
必填
current_profile
object
示例:null
必填
current_batch_plan
object
示例:null
必填
state
object
示例:null
必填
create_at
string
示例:2020-12-18T10:42:46.7721954+08:00
必填
update_at
string
示例:2020-12-18T10:42:46.7721954+08:00
必填
start_time
string
示例:2020-12-17
必填
batch_plan
object
数据字典
必填
id
int
示例:1
必填
name
string
示例:
必填
batch_day
int
示例:0
必填
group_number
int
示例:0
必填
bed_number
int
示例:0
必填
feeding_time
int
示例:0
必填