zhangqian
2023-12-27 5e1aa408c1b8bd36fefd0b5ea380a2fde6d57810
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
syntax = "proto3";
 
option go_package = "./code";
 
service codeService {
  rpc GetCodeList(GetCodeListRequest) returns(GetCodeListResponse) {}
}
 
message CodeStandard {
  string ID = 1;
  string Name = 2;
  string Type = 3;
  int32  Method = 4;
  string Status = 5;
  repeated CodeRule List = 6;
  CodeAuto AutoRule = 7;
}
 
message CodeRule {
  string Name = 1;
  int32 Length = 2;
  string Desc = 3;
}
 
message CodeAuto {
  int32 PrefixMethod = 1;
  string PrefixValue = 2;
  int32 SuffixMethod = 3;
  int32 AutoLength = 4;
  string Desc = 5;
}
 
 
 
message GetCodeListRequest{
  int32 page = 1;
  int32 pageSize = 2;
  string CodeStandID = 3;
  string Name = 4;
  string Type = 5;
}
 
message GetCodeListResponse{
  int32   Code = 1;
  string  Msg = 2;
  repeated CodeStandard List = 3;
  int64 Total = 4;
}