1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package v1;
- // 用于生成指定语言go的包名称
- option go_package = "smart-supplier-management-gateway/pb/v1";
- message LogAddRequest {
- int64 uid = 1;
- string operation = 2;
- int32 result = 3;
- string detail = 4;
- int32 type = 5;
- string username = 6;
- int64 project_id = 7;
- }
- message LogAddReply {
- }
- message LogInfo {
- string name = 1;
- string operation = 2;
- string result = 3;
- string detail = 4;
- int64 uid = 5;
- string time = 6;
- string project_name = 7;
- int64 project_id = 8;
- string project_no = 9;
- string safety_record_no = 10;
- }
- message LogListRequest {
- int32 page = 1;
- int64 start = 2;
- int64 end = 3;
- int32 type = 4;
- }
- message LogListReply {
- repeated LogInfo list = 1;
- int64 total = 2;
- int32 page = 3;
- int32 page_size = 4;
- }
|