From 46da4b0ef65a2ff3f399571f02e58bde5a94ca9b Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Thu, 14 Oct 2021 05:20:06 +0000 Subject: [PATCH] update compiled proto --- audit.pb.go | 214 +++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 188 insertions(+), 26 deletions(-) diff --git a/audit.pb.go b/audit.pb.go index 3a17c87..09552ba 100644 --- a/audit.pb.go +++ b/audit.pb.go @@ -60,12 +60,12 @@ func (m *SendLogRequest) GetLogs() []byte { } type AuditResponse struct { - PageInfo *PageInfo `protobuf:"bytes,1,opt,name=pageInfo,proto3" json:"pageInfo,omitempty"` - CrudResponse *CrudResponse `protobuf:"bytes,2,opt,name=crudResponse,proto3" json:"crudResponse,omitempty"` - Logs [][]byte `protobuf:"bytes,3,rep,name=logs,proto3" json:"logs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PageInfo *PageInfo `protobuf:"bytes,1,opt,name=pageInfo,proto3" json:"pageInfo,omitempty"` + CrudResponse *CrudResponse `protobuf:"bytes,2,opt,name=crudResponse,proto3" json:"crudResponse,omitempty"` + Logs []*AuditRecord `protobuf:"bytes,3,rep,name=logs,proto3" json:"logs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *AuditResponse) Reset() { *m = AuditResponse{} } @@ -107,7 +107,7 @@ func (m *AuditResponse) GetCrudResponse() *CrudResponse { return nil } -func (m *AuditResponse) GetLogs() [][]byte { +func (m *AuditResponse) GetLogs() []*AuditRecord { if m != nil { return m.Logs } @@ -169,32 +169,194 @@ func (m *ReadLogRequest) GetPage() int32 { return 0 } +type AuditRecord struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Timestamp string `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + UserName string `protobuf:"bytes,3,opt,name=userName,proto3" json:"userName,omitempty"` + Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` + Role string `protobuf:"bytes,5,opt,name=role,proto3" json:"role,omitempty"` + Action string `protobuf:"bytes,6,opt,name=action,proto3" json:"action,omitempty"` + Status string `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"` + Product string `protobuf:"bytes,8,opt,name=product,proto3" json:"product,omitempty"` + Organization string `protobuf:"bytes,9,opt,name=organization,proto3" json:"organization,omitempty"` + AuditDetails *AuditRecordDetails `protobuf:"bytes,10,opt,name=auditDetails,proto3" json:"auditDetails,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AuditRecord) Reset() { *m = AuditRecord{} } +func (m *AuditRecord) String() string { return proto.CompactTextString(m) } +func (*AuditRecord) ProtoMessage() {} +func (*AuditRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_5594839dd8e38a1b, []int{3} +} + +func (m *AuditRecord) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AuditRecord.Unmarshal(m, b) +} +func (m *AuditRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AuditRecord.Marshal(b, m, deterministic) +} +func (m *AuditRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_AuditRecord.Merge(m, src) +} +func (m *AuditRecord) XXX_Size() int { + return xxx_messageInfo_AuditRecord.Size(m) +} +func (m *AuditRecord) XXX_DiscardUnknown() { + xxx_messageInfo_AuditRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_AuditRecord proto.InternalMessageInfo + +func (m *AuditRecord) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *AuditRecord) GetTimestamp() string { + if m != nil { + return m.Timestamp + } + return "" +} + +func (m *AuditRecord) GetUserName() string { + if m != nil { + return m.UserName + } + return "" +} + +func (m *AuditRecord) GetEmail() string { + if m != nil { + return m.Email + } + return "" +} + +func (m *AuditRecord) GetRole() string { + if m != nil { + return m.Role + } + return "" +} + +func (m *AuditRecord) GetAction() string { + if m != nil { + return m.Action + } + return "" +} + +func (m *AuditRecord) GetStatus() string { + if m != nil { + return m.Status + } + return "" +} + +func (m *AuditRecord) GetProduct() string { + if m != nil { + return m.Product + } + return "" +} + +func (m *AuditRecord) GetOrganization() string { + if m != nil { + return m.Organization + } + return "" +} + +func (m *AuditRecord) GetAuditDetails() *AuditRecordDetails { + if m != nil { + return m.AuditDetails + } + return nil +} + +type AuditRecordDetails struct { + Details string `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AuditRecordDetails) Reset() { *m = AuditRecordDetails{} } +func (m *AuditRecordDetails) String() string { return proto.CompactTextString(m) } +func (*AuditRecordDetails) ProtoMessage() {} +func (*AuditRecordDetails) Descriptor() ([]byte, []int) { + return fileDescriptor_5594839dd8e38a1b, []int{4} +} + +func (m *AuditRecordDetails) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AuditRecordDetails.Unmarshal(m, b) +} +func (m *AuditRecordDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AuditRecordDetails.Marshal(b, m, deterministic) +} +func (m *AuditRecordDetails) XXX_Merge(src proto.Message) { + xxx_messageInfo_AuditRecordDetails.Merge(m, src) +} +func (m *AuditRecordDetails) XXX_Size() int { + return xxx_messageInfo_AuditRecordDetails.Size(m) +} +func (m *AuditRecordDetails) XXX_DiscardUnknown() { + xxx_messageInfo_AuditRecordDetails.DiscardUnknown(m) +} + +var xxx_messageInfo_AuditRecordDetails proto.InternalMessageInfo + +func (m *AuditRecordDetails) GetDetails() string { + if m != nil { + return m.Details + } + return "" +} + func init() { proto.RegisterType((*SendLogRequest)(nil), "commonproto.SendLogRequest") proto.RegisterType((*AuditResponse)(nil), "commonproto.AuditResponse") proto.RegisterType((*ReadLogRequest)(nil), "commonproto.ReadLogRequest") + proto.RegisterType((*AuditRecord)(nil), "commonproto.AuditRecord") + proto.RegisterType((*AuditRecordDetails)(nil), "commonproto.AuditRecordDetails") } func init() { proto.RegisterFile("audit.proto", fileDescriptor_5594839dd8e38a1b) } var fileDescriptor_5594839dd8e38a1b = []byte{ - // 281 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xbf, 0x4e, 0xc3, 0x30, - 0x10, 0xc6, 0x31, 0x21, 0xfc, 0xb9, 0x94, 0xaa, 0xb2, 0x40, 0x0a, 0x61, 0xa9, 0x22, 0x86, 0x4e, - 0x91, 0x28, 0x33, 0x03, 0x85, 0x05, 0xa9, 0x43, 0x65, 0x98, 0xd8, 0xdc, 0xc4, 0x44, 0x96, 0x92, - 0x5c, 0x70, 0x12, 0x09, 0xf1, 0x1e, 0x48, 0x3c, 0x2e, 0xf2, 0x35, 0x44, 0x31, 0x43, 0x27, 0xdf, - 0xf9, 0xbe, 0xfb, 0xee, 0xe7, 0x33, 0x04, 0xb2, 0xcb, 0x74, 0x9b, 0xd4, 0x06, 0x5b, 0xe4, 0x41, - 0x8a, 0x65, 0x89, 0x15, 0x25, 0x11, 0xa4, 0x68, 0xd4, 0xae, 0x10, 0xdf, 0xc0, 0xf4, 0x45, 0x55, - 0xd9, 0x1a, 0x73, 0xa1, 0x3e, 0x3a, 0xd5, 0xb4, 0x9c, 0xc3, 0x51, 0x81, 0x79, 0x13, 0xb2, 0x39, - 0x5b, 0x4c, 0x04, 0xc5, 0xf1, 0x37, 0x83, 0xf3, 0x07, 0x6b, 0x27, 0x54, 0x53, 0x63, 0xd5, 0x28, - 0x7e, 0x0b, 0xa7, 0xb5, 0xcc, 0xd5, 0x73, 0xf5, 0x8e, 0xa4, 0x0c, 0x96, 0x97, 0xc9, 0x68, 0x46, - 0xb2, 0xe9, 0x8b, 0x62, 0x90, 0xf1, 0x7b, 0x98, 0xa4, 0xa6, 0xcb, 0xfe, 0x2c, 0xc2, 0x43, 0x6a, - 0xbb, 0x72, 0xda, 0x1e, 0x47, 0x02, 0xe1, 0xc8, 0x07, 0x2e, 0x6f, 0xee, 0x0d, 0x5c, 0x6b, 0x98, - 0x0a, 0x25, 0xc7, 0xf4, 0x33, 0xf0, 0x0a, 0xcc, 0x09, 0xe9, 0x4c, 0xd8, 0x90, 0x5f, 0x80, 0x5f, - 0xe8, 0x52, 0xb7, 0x34, 0xcf, 0x17, 0xbb, 0xc4, 0xba, 0x59, 0xb0, 0xd0, 0xa3, 0x4b, 0x8a, 0x97, - 0x3f, 0x0c, 0x80, 0x5e, 0xf9, 0x6a, 0xa4, 0x2e, 0xf8, 0x13, 0x9c, 0xf4, 0xab, 0xe1, 0xd7, 0x0e, - 0xa4, 0xbb, 0xb0, 0x28, 0x72, 0x8a, 0xce, 0x9a, 0xe2, 0x03, 0xeb, 0xd2, 0x23, 0xfe, 0x73, 0x71, - 0xc1, 0xf7, 0xbb, 0xac, 0x16, 0x30, 0xd3, 0x59, 0xf2, 0xa5, 0xb6, 0x46, 0x7e, 0xf6, 0xc2, 0x95, - 0x4f, 0xa2, 0x0d, 0x7b, 0x1b, 0x7f, 0xee, 0xf6, 0x98, 0x8e, 0xbb, 0xdf, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x05, 0xb9, 0xbd, 0xf1, 0xff, 0x01, 0x00, 0x00, + // 442 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x53, 0x4d, 0x6f, 0xd4, 0x30, + 0x10, 0x25, 0xbb, 0xdd, 0x8f, 0x4c, 0x96, 0x55, 0x35, 0x02, 0x64, 0x16, 0x24, 0xaa, 0x88, 0xc3, + 0x1e, 0x50, 0x24, 0x96, 0x33, 0x07, 0xda, 0x5e, 0x90, 0x2a, 0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