1234567891011121314151617181920212223242526272829303132 |
- syntax = "proto3";
- package backend.operation;
- option go_package = ".;operationPb";
- import "backend/operation/enum.proto";
- message AddPastureRequest {
- int64 id = 1;
- string name = 2; // 牧场名称
- string manager_user = 3; // 牧场负责人名称
- string manager_phone = 5; // 牧场负责人手机号
- string address = 6; // 牧场地址
- IsShow.Kind is_show = 7; // 是否启用
- int64 created_at = 8; // 创建时间
- }
- message SearchPastureRequest {
- int32 page = 1; // 第几页,从1开始
- int32 page_size = 2; // 每页size,一般为20
- string name = 3; // 牧场名称
- string manager_user = 4; // 牧场负责人名称
- string manager_phone = 5; // 牧场负责人手机号
- int64 start_time = 6; // 开始时间
- int64 end_time = 7; // 结束时间
- }
- message SearchPastureResponse {
- int32 page = 1;
- int32 total = 2;
- repeated AddPastureRequest list = 3;
- }
|