修bug
This commit is contained in:
@@ -24,8 +24,8 @@ type ListSensorDataRequest struct {
|
|||||||
PageSize int `form:"pageSize,default=10"`
|
PageSize int `form:"pageSize,default=10"`
|
||||||
DeviceID *uint `form:"device_id"`
|
DeviceID *uint `form:"device_id"`
|
||||||
SensorType *string `form:"sensor_type"`
|
SensorType *string `form:"sensor_type"`
|
||||||
StartTime *time.Time `form:"start_time" time_format:"rfc3339"`
|
StartTime *time.Time `form:"start_time"`
|
||||||
EndTime *time.Time `form:"end_time" time_format:"rfc3339"`
|
EndTime *time.Time `form:"end_time"`
|
||||||
OrderBy string `form:"order_by"`
|
OrderBy string `form:"order_by"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -52,8 +52,8 @@ type ListDeviceCommandLogRequest struct {
|
|||||||
PageSize int `form:"pageSize,default=10"`
|
PageSize int `form:"pageSize,default=10"`
|
||||||
DeviceID *uint `form:"device_id"`
|
DeviceID *uint `form:"device_id"`
|
||||||
ReceivedSuccess *bool `form:"received_success"`
|
ReceivedSuccess *bool `form:"received_success"`
|
||||||
StartTime *time.Time `form:"start_time" time_format:"rfc3339"`
|
StartTime *time.Time `form:"start_time"`
|
||||||
EndTime *time.Time `form:"end_time" time_format:"rfc3339"`
|
EndTime *time.Time `form:"end_time"`
|
||||||
OrderBy string `form:"order_by"`
|
OrderBy string `form:"order_by"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -80,8 +80,8 @@ type ListPlanExecutionLogRequest struct {
|
|||||||
PageSize int `form:"pageSize,default=10"`
|
PageSize int `form:"pageSize,default=10"`
|
||||||
PlanID *uint `form:"plan_id"`
|
PlanID *uint `form:"plan_id"`
|
||||||
Status *string `form:"status"`
|
Status *string `form:"status"`
|
||||||
StartTime *time.Time `form:"start_time" time_format:"rfc3339"`
|
StartTime *time.Time `form:"start_time"`
|
||||||
EndTime *time.Time `form:"end_time" time_format:"rfc3339"`
|
EndTime *time.Time `form:"end_time"`
|
||||||
OrderBy string `form:"order_by"`
|
OrderBy string `form:"order_by"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,8 +112,8 @@ type ListTaskExecutionLogRequest struct {
|
|||||||
PlanExecutionLogID *uint `form:"plan_execution_log_id"`
|
PlanExecutionLogID *uint `form:"plan_execution_log_id"`
|
||||||
TaskID *int `form:"task_id"`
|
TaskID *int `form:"task_id"`
|
||||||
Status *string `form:"status"`
|
Status *string `form:"status"`
|
||||||
StartTime *time.Time `form:"start_time" time_format:"rfc3339"`
|
StartTime *time.Time `form:"start_time"`
|
||||||
EndTime *time.Time `form:"end_time" time_format:"rfc3339"`
|
EndTime *time.Time `form:"end_time"`
|
||||||
OrderBy string `form:"order_by"`
|
OrderBy string `form:"order_by"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -152,8 +152,8 @@ type ListPendingCollectionRequest struct {
|
|||||||
PageSize int `form:"pageSize,default=10"`
|
PageSize int `form:"pageSize,default=10"`
|
||||||
DeviceID *uint `form:"device_id"`
|
DeviceID *uint `form:"device_id"`
|
||||||
Status *string `form:"status"`
|
Status *string `form:"status"`
|
||||||
StartTime *time.Time `form:"start_time" time_format:"rfc3339"`
|
StartTime *time.Time `form:"start_time"`
|
||||||
EndTime *time.Time `form:"end_time" time_format:"rfc3339"`
|
EndTime *time.Time `form:"end_time"`
|
||||||
OrderBy string `form:"order_by"`
|
OrderBy string `form:"order_by"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -183,8 +183,8 @@ type ListUserActionLogRequest struct {
|
|||||||
Username *string `form:"username"`
|
Username *string `form:"username"`
|
||||||
ActionType *string `form:"action_type"`
|
ActionType *string `form:"action_type"`
|
||||||
Status *string `form:"status"`
|
Status *string `form:"status"`
|
||||||
StartTime *time.Time `form:"start_time" time_format:"rfc3339"`
|
StartTime *time.Time `form:"start_time"`
|
||||||
EndTime *time.Time `form:"end_time" time_format:"rfc3339"`
|
EndTime *time.Time `form:"end_time"`
|
||||||
OrderBy string `form:"order_by"`
|
OrderBy string `form:"order_by"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -218,8 +218,8 @@ type ListRawMaterialPurchaseRequest struct {
|
|||||||
PageSize int `form:"pageSize,default=10"`
|
PageSize int `form:"pageSize,default=10"`
|
||||||
RawMaterialID *uint `form:"raw_material_id"`
|
RawMaterialID *uint `form:"raw_material_id"`
|
||||||
Supplier *string `form:"supplier"`
|
Supplier *string `form:"supplier"`
|
||||||
StartTime *time.Time `form:"start_time" time_format:"rfc3339"`
|
StartTime *time.Time `form:"start_time"`
|
||||||
EndTime *time.Time `form:"end_time" time_format:"rfc3339"`
|
EndTime *time.Time `form:"end_time"`
|
||||||
OrderBy string `form:"order_by"`
|
OrderBy string `form:"order_by"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -257,8 +257,8 @@ type ListRawMaterialStockLogRequest struct {
|
|||||||
RawMaterialID *uint `form:"raw_material_id"`
|
RawMaterialID *uint `form:"raw_material_id"`
|
||||||
SourceType *string `form:"source_type"`
|
SourceType *string `form:"source_type"`
|
||||||
SourceID *uint `form:"source_id"`
|
SourceID *uint `form:"source_id"`
|
||||||
StartTime *time.Time `form:"start_time" time_format:"rfc3339"`
|
StartTime *time.Time `form:"start_time"`
|
||||||
EndTime *time.Time `form:"end_time" time_format:"rfc3339"`
|
EndTime *time.Time `form:"end_time"`
|
||||||
OrderBy string `form:"order_by"`
|
OrderBy string `form:"order_by"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -288,8 +288,8 @@ type ListFeedUsageRecordRequest struct {
|
|||||||
PenID *uint `form:"pen_id"`
|
PenID *uint `form:"pen_id"`
|
||||||
FeedFormulaID *uint `form:"feed_formula_id"`
|
FeedFormulaID *uint `form:"feed_formula_id"`
|
||||||
OperatorID *uint `form:"operator_id"`
|
OperatorID *uint `form:"operator_id"`
|
||||||
StartTime *time.Time `form:"start_time" time_format:"rfc3339"`
|
StartTime *time.Time `form:"start_time"`
|
||||||
EndTime *time.Time `form:"end_time" time_format:"rfc3339"`
|
EndTime *time.Time `form:"end_time"`
|
||||||
OrderBy string `form:"order_by"`
|
OrderBy string `form:"order_by"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -334,8 +334,8 @@ type ListMedicationLogRequest struct {
|
|||||||
MedicationID *uint `form:"medication_id"`
|
MedicationID *uint `form:"medication_id"`
|
||||||
Reason *string `form:"reason"`
|
Reason *string `form:"reason"`
|
||||||
OperatorID *uint `form:"operator_id"`
|
OperatorID *uint `form:"operator_id"`
|
||||||
StartTime *time.Time `form:"start_time" time_format:"rfc3339"`
|
StartTime *time.Time `form:"start_time"`
|
||||||
EndTime *time.Time `form:"end_time" time_format:"rfc3339"`
|
EndTime *time.Time `form:"end_time"`
|
||||||
OrderBy string `form:"order_by"`
|
OrderBy string `form:"order_by"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -374,8 +374,8 @@ type ListPigBatchLogRequest struct {
|
|||||||
PigBatchID *uint `form:"pig_batch_id"`
|
PigBatchID *uint `form:"pig_batch_id"`
|
||||||
ChangeType *string `form:"change_type"`
|
ChangeType *string `form:"change_type"`
|
||||||
OperatorID *uint `form:"operator_id"`
|
OperatorID *uint `form:"operator_id"`
|
||||||
StartTime *time.Time `form:"start_time" time_format:"rfc3339"`
|
StartTime *time.Time `form:"start_time"`
|
||||||
EndTime *time.Time `form:"end_time" time_format:"rfc3339"`
|
EndTime *time.Time `form:"end_time"`
|
||||||
OrderBy string `form:"order_by"`
|
OrderBy string `form:"order_by"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -407,8 +407,8 @@ type ListWeighingBatchRequest struct {
|
|||||||
Page int `form:"page,default=1"`
|
Page int `form:"page,default=1"`
|
||||||
PageSize int `form:"pageSize,default=10"`
|
PageSize int `form:"pageSize,default=10"`
|
||||||
PigBatchID *uint `form:"pig_batch_id"`
|
PigBatchID *uint `form:"pig_batch_id"`
|
||||||
StartTime *time.Time `form:"start_time" time_format:"rfc3339"`
|
StartTime *time.Time `form:"start_time"`
|
||||||
EndTime *time.Time `form:"end_time" time_format:"rfc3339"`
|
EndTime *time.Time `form:"end_time"`
|
||||||
OrderBy string `form:"order_by"`
|
OrderBy string `form:"order_by"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -437,8 +437,8 @@ type ListWeighingRecordRequest struct {
|
|||||||
WeighingBatchID *uint `form:"weighing_batch_id"`
|
WeighingBatchID *uint `form:"weighing_batch_id"`
|
||||||
PenID *uint `form:"pen_id"`
|
PenID *uint `form:"pen_id"`
|
||||||
OperatorID *uint `form:"operator_id"`
|
OperatorID *uint `form:"operator_id"`
|
||||||
StartTime *time.Time `form:"start_time" time_format:"rfc3339"`
|
StartTime *time.Time `form:"start_time"`
|
||||||
EndTime *time.Time `form:"end_time" time_format:"rfc3339"`
|
EndTime *time.Time `form:"end_time"`
|
||||||
OrderBy string `form:"order_by"`
|
OrderBy string `form:"order_by"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -472,8 +472,8 @@ type ListPigTransferLogRequest struct {
|
|||||||
TransferType *string `form:"transfer_type"`
|
TransferType *string `form:"transfer_type"`
|
||||||
OperatorID *uint `form:"operator_id"`
|
OperatorID *uint `form:"operator_id"`
|
||||||
CorrelationID *string `form:"correlation_id"`
|
CorrelationID *string `form:"correlation_id"`
|
||||||
StartTime *time.Time `form:"start_time" time_format:"rfc3339"`
|
StartTime *time.Time `form:"start_time"`
|
||||||
EndTime *time.Time `form:"end_time" time_format:"rfc3339"`
|
EndTime *time.Time `form:"end_time"`
|
||||||
OrderBy string `form:"order_by"`
|
OrderBy string `form:"order_by"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -509,8 +509,8 @@ type ListPigSickLogRequest struct {
|
|||||||
Reason *string `form:"reason"`
|
Reason *string `form:"reason"`
|
||||||
TreatmentLocation *string `form:"treatment_location"`
|
TreatmentLocation *string `form:"treatment_location"`
|
||||||
OperatorID *uint `form:"operator_id"`
|
OperatorID *uint `form:"operator_id"`
|
||||||
StartTime *time.Time `form:"start_time" time_format:"rfc3339"`
|
StartTime *time.Time `form:"start_time"`
|
||||||
EndTime *time.Time `form:"end_time" time_format:"rfc3339"`
|
EndTime *time.Time `form:"end_time"`
|
||||||
OrderBy string `form:"order_by"`
|
OrderBy string `form:"order_by"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -546,8 +546,8 @@ type ListPigPurchaseRequest struct {
|
|||||||
PigBatchID *uint `form:"pig_batch_id"`
|
PigBatchID *uint `form:"pig_batch_id"`
|
||||||
Supplier *string `form:"supplier"`
|
Supplier *string `form:"supplier"`
|
||||||
OperatorID *uint `form:"operator_id"`
|
OperatorID *uint `form:"operator_id"`
|
||||||
StartTime *time.Time `form:"start_time" time_format:"rfc3339"`
|
StartTime *time.Time `form:"start_time"`
|
||||||
EndTime *time.Time `form:"end_time" time_format:"rfc3339"`
|
EndTime *time.Time `form:"end_time"`
|
||||||
OrderBy string `form:"order_by"`
|
OrderBy string `form:"order_by"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -581,8 +581,8 @@ type ListPigSaleRequest struct {
|
|||||||
PigBatchID *uint `form:"pig_batch_id"`
|
PigBatchID *uint `form:"pig_batch_id"`
|
||||||
Buyer *string `form:"buyer"`
|
Buyer *string `form:"buyer"`
|
||||||
OperatorID *uint `form:"operator_id"`
|
OperatorID *uint `form:"operator_id"`
|
||||||
StartTime *time.Time `form:"start_time" time_format:"rfc3339"`
|
StartTime *time.Time `form:"start_time"`
|
||||||
EndTime *time.Time `form:"end_time" time_format:"rfc3339"`
|
EndTime *time.Time `form:"end_time"`
|
||||||
OrderBy string `form:"order_by"`
|
OrderBy string `form:"order_by"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user