修正page_size
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
type PaginationDTO struct {
|
||||
Total int64 `json:"total"`
|
||||
Page int `json:"page"`
|
||||
PageSize int `json:"pageSize"`
|
||||
PageSize int `json:"page_size"`
|
||||
}
|
||||
|
||||
// --- SensorData ---
|
||||
@@ -21,7 +21,7 @@ type PaginationDTO struct {
|
||||
// ListSensorDataRequest 定义了获取传感器数据列表的请求参数
|
||||
type ListSensorDataRequest struct {
|
||||
Page int `query:"page"`
|
||||
PageSize int `query:"pageSize"`
|
||||
PageSize int `query:"page_size"`
|
||||
DeviceID *uint `query:"device_id"`
|
||||
SensorType *string `query:"sensor_type"`
|
||||
StartTime *time.Time `query:"start_time"`
|
||||
@@ -49,7 +49,7 @@ type ListSensorDataResponse struct {
|
||||
// ListDeviceCommandLogRequest 定义了获取设备命令日志列表的请求参数
|
||||
type ListDeviceCommandLogRequest struct {
|
||||
Page int `query:"page"`
|
||||
PageSize int `query:"pageSize"`
|
||||
PageSize int `query:"page_size"`
|
||||
DeviceID *uint `query:"device_id"`
|
||||
ReceivedSuccess *bool `query:"received_success"`
|
||||
StartTime *time.Time `query:"start_time"`
|
||||
@@ -77,7 +77,7 @@ type ListDeviceCommandLogResponse struct {
|
||||
// ListPlanExecutionLogRequest 定义了获取计划执行日志列表的请求参数
|
||||
type ListPlanExecutionLogRequest struct {
|
||||
Page int `query:"page"`
|
||||
PageSize int `query:"pageSize"`
|
||||
PageSize int `query:"page_size"`
|
||||
PlanID *uint `query:"plan_id"`
|
||||
Status *string `query:"status"`
|
||||
StartTime *time.Time `query:"start_time"`
|
||||
@@ -109,7 +109,7 @@ type ListPlanExecutionLogResponse struct {
|
||||
// ListTaskExecutionLogRequest 定义了获取任务执行日志列表的请求参数
|
||||
type ListTaskExecutionLogRequest struct {
|
||||
Page int `query:"page"`
|
||||
PageSize int `query:"pageSize"`
|
||||
PageSize int `query:"page_size"`
|
||||
PlanExecutionLogID *uint `query:"plan_execution_log_id"`
|
||||
TaskID *int `query:"task_id"`
|
||||
Status *string `query:"status"`
|
||||
@@ -150,7 +150,7 @@ type ListTaskExecutionLogResponse struct {
|
||||
// ListPendingCollectionRequest 定义了获取待采集请求列表的请求参数
|
||||
type ListPendingCollectionRequest struct {
|
||||
Page int `query:"page"`
|
||||
PageSize int `query:"pageSize"`
|
||||
PageSize int `query:"page_size"`
|
||||
DeviceID *uint `query:"device_id"`
|
||||
Status *string `query:"status"`
|
||||
StartTime *time.Time `query:"start_time"`
|
||||
@@ -179,7 +179,7 @@ type ListPendingCollectionResponse struct {
|
||||
// ListUserActionLogRequest 定义了获取用户操作日志列表的请求参数
|
||||
type ListUserActionLogRequest struct {
|
||||
Page int `query:"page"`
|
||||
PageSize int `query:"pageSize"`
|
||||
PageSize int `query:"page_size"`
|
||||
UserID *uint `query:"user_id"`
|
||||
Username *string `query:"username"`
|
||||
ActionType *string `query:"action_type"`
|
||||
@@ -216,7 +216,7 @@ type ListUserActionLogResponse struct {
|
||||
// ListRawMaterialPurchaseRequest 定义了获取原料采购列表的请求参数
|
||||
type ListRawMaterialPurchaseRequest struct {
|
||||
Page int `query:"page"`
|
||||
PageSize int `query:"pageSize"`
|
||||
PageSize int `query:"page_size"`
|
||||
RawMaterialID *uint `query:"raw_material_id"`
|
||||
Supplier *string `query:"supplier"`
|
||||
StartTime *time.Time `query:"start_time"`
|
||||
@@ -254,7 +254,7 @@ type ListRawMaterialPurchaseResponse struct {
|
||||
// ListRawMaterialStockLogRequest 定义了获取原料库存日志列表的请求参数
|
||||
type ListRawMaterialStockLogRequest struct {
|
||||
Page int `query:"page"`
|
||||
PageSize int `query:"pageSize"`
|
||||
PageSize int `query:"page_size"`
|
||||
RawMaterialID *uint `query:"raw_material_id"`
|
||||
SourceType *string `query:"source_type"`
|
||||
SourceID *uint `query:"source_id"`
|
||||
@@ -285,7 +285,7 @@ type ListRawMaterialStockLogResponse struct {
|
||||
// ListFeedUsageRecordRequest 定义了获取饲料使用记录列表的请求参数
|
||||
type ListFeedUsageRecordRequest struct {
|
||||
Page int `query:"page"`
|
||||
PageSize int `query:"pageSize"`
|
||||
PageSize int `query:"page_size"`
|
||||
PenID *uint `query:"pen_id"`
|
||||
FeedFormulaID *uint `query:"feed_formula_id"`
|
||||
OperatorID *uint `query:"operator_id"`
|
||||
@@ -330,7 +330,7 @@ type ListFeedUsageRecordResponse struct {
|
||||
// ListMedicationLogRequest 定义了获取用药记录列表的请求参数
|
||||
type ListMedicationLogRequest struct {
|
||||
Page int `query:"page"`
|
||||
PageSize int `query:"pageSize"`
|
||||
PageSize int `query:"page_size"`
|
||||
PigBatchID *uint `query:"pig_batch_id"`
|
||||
MedicationID *uint `query:"medication_id"`
|
||||
Reason *string `query:"reason"`
|
||||
@@ -371,7 +371,7 @@ type ListMedicationLogResponse struct {
|
||||
// ListPigBatchLogRequest 定义了获取猪批次日志列表的请求参数
|
||||
type ListPigBatchLogRequest struct {
|
||||
Page int `query:"page"`
|
||||
PageSize int `query:"pageSize"`
|
||||
PageSize int `query:"page_size"`
|
||||
PigBatchID *uint `query:"pig_batch_id"`
|
||||
ChangeType *string `query:"change_type"`
|
||||
OperatorID *uint `query:"operator_id"`
|
||||
@@ -406,7 +406,7 @@ type ListPigBatchLogResponse struct {
|
||||
// ListWeighingBatchRequest 定义了获取批次称重记录列表的请求参数
|
||||
type ListWeighingBatchRequest struct {
|
||||
Page int `query:"page"`
|
||||
PageSize int `query:"pageSize"`
|
||||
PageSize int `query:"page_size"`
|
||||
PigBatchID *uint `query:"pig_batch_id"`
|
||||
StartTime *time.Time `query:"start_time"`
|
||||
EndTime *time.Time `query:"end_time"`
|
||||
@@ -434,7 +434,7 @@ type ListWeighingBatchResponse struct {
|
||||
// ListWeighingRecordRequest 定义了获取单次称重记录列表的请求参数
|
||||
type ListWeighingRecordRequest struct {
|
||||
Page int `query:"page"`
|
||||
PageSize int `query:"pageSize"`
|
||||
PageSize int `query:"page_size"`
|
||||
WeighingBatchID *uint `query:"weighing_batch_id"`
|
||||
PenID *uint `query:"pen_id"`
|
||||
OperatorID *uint `query:"operator_id"`
|
||||
@@ -467,7 +467,7 @@ type ListWeighingRecordResponse struct {
|
||||
// ListPigTransferLogRequest 定义了获取猪只迁移日志列表的请求参数
|
||||
type ListPigTransferLogRequest struct {
|
||||
Page int `query:"page"`
|
||||
PageSize int `query:"pageSize"`
|
||||
PageSize int `query:"page_size"`
|
||||
PigBatchID *uint `query:"pig_batch_id"`
|
||||
PenID *uint `query:"pen_id"`
|
||||
TransferType *string `query:"transfer_type"`
|
||||
@@ -504,7 +504,7 @@ type ListPigTransferLogResponse struct {
|
||||
// ListPigSickLogRequest 定义了获取病猪日志列表的请求参数
|
||||
type ListPigSickLogRequest struct {
|
||||
Page int `query:"page"`
|
||||
PageSize int `query:"pageSize"`
|
||||
PageSize int `query:"page_size"`
|
||||
PigBatchID *uint `query:"pig_batch_id"`
|
||||
PenID *uint `query:"pen_id"`
|
||||
Reason *string `query:"reason"`
|
||||
@@ -543,7 +543,7 @@ type ListPigSickLogResponse struct {
|
||||
// ListPigPurchaseRequest 定义了获取猪只采购记录列表的请求参数
|
||||
type ListPigPurchaseRequest struct {
|
||||
Page int `query:"page"`
|
||||
PageSize int `query:"pageSize"`
|
||||
PageSize int `query:"page_size"`
|
||||
PigBatchID *uint `query:"pig_batch_id"`
|
||||
Supplier *string `query:"supplier"`
|
||||
OperatorID *uint `query:"operator_id"`
|
||||
@@ -578,7 +578,7 @@ type ListPigPurchaseResponse struct {
|
||||
// ListPigSaleRequest 定义了获取猪只销售记录列表的请求参数
|
||||
type ListPigSaleRequest struct {
|
||||
Page int `query:"page"`
|
||||
PageSize int `query:"pageSize"`
|
||||
PageSize int `query:"page_size"`
|
||||
PigBatchID *uint `query:"pig_batch_id"`
|
||||
Buyer *string `query:"buyer"`
|
||||
OperatorID *uint `query:"operator_id"`
|
||||
|
||||
Reference in New Issue
Block a user