1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
| syntax = "proto3";
|
| option go_package = ".;outsourcing";
|
| service outsourcingService {
| rpc GetMaterialList(GetMaterialListRequest) returns(GetMaterialListResponse) {}
| }
|
|
| message Material {
| string ID = 1; //编号
| string Name = 2; //名称
| string Unit = 3; //单位
| string Specs = 4; // 规格
| string Type = 5; // 型号
| }
|
| message GetMaterialListRequest{
| int32 page = 1;
| int32 pageSize = 2;
| string Keyword = 3;
| }
|
| message GetMaterialListResponse{
| int32 Code = 1;
| string Msg = 2;
| repeated Material List = 3;
| int64 Total = 4;
| }
|
|