operation_log.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: operation_log.proto
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package v1
  5. import (
  6. fmt "fmt"
  7. proto "github.com/golang/protobuf/proto"
  8. math "math"
  9. )
  10. // Reference imports to suppress errors if they are not otherwise used.
  11. var _ = proto.Marshal
  12. var _ = fmt.Errorf
  13. var _ = math.Inf
  14. // This is a compile-time assertion to ensure that this generated file
  15. // is compatible with the proto package it is being compiled against.
  16. // A compilation error at this line likely means your copy of the
  17. // proto package needs to be updated.
  18. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  19. type LogAddRequest struct {
  20. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  21. Operation string `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation"`
  22. Result int32 `protobuf:"varint,3,opt,name=result,proto3" json:"result"`
  23. Detail string `protobuf:"bytes,4,opt,name=detail,proto3" json:"detail"`
  24. Type int32 `protobuf:"varint,5,opt,name=type,proto3" json:"type"`
  25. Username string `protobuf:"bytes,6,opt,name=username,proto3" json:"username"`
  26. ProjectId int64 `protobuf:"varint,7,opt,name=project_id,json=projectId,proto3" json:"project_id"`
  27. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  28. XXX_unrecognized []byte `json:"-"`
  29. XXX_sizecache int32 `json:"-"`
  30. }
  31. func (m *LogAddRequest) Reset() { *m = LogAddRequest{} }
  32. func (m *LogAddRequest) String() string { return proto.CompactTextString(m) }
  33. func (*LogAddRequest) ProtoMessage() {}
  34. func (*LogAddRequest) Descriptor() ([]byte, []int) {
  35. return fileDescriptor_c759f6398179ec0e, []int{0}
  36. }
  37. func (m *LogAddRequest) XXX_Unmarshal(b []byte) error {
  38. return xxx_messageInfo_LogAddRequest.Unmarshal(m, b)
  39. }
  40. func (m *LogAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  41. return xxx_messageInfo_LogAddRequest.Marshal(b, m, deterministic)
  42. }
  43. func (m *LogAddRequest) XXX_Merge(src proto.Message) {
  44. xxx_messageInfo_LogAddRequest.Merge(m, src)
  45. }
  46. func (m *LogAddRequest) XXX_Size() int {
  47. return xxx_messageInfo_LogAddRequest.Size(m)
  48. }
  49. func (m *LogAddRequest) XXX_DiscardUnknown() {
  50. xxx_messageInfo_LogAddRequest.DiscardUnknown(m)
  51. }
  52. var xxx_messageInfo_LogAddRequest proto.InternalMessageInfo
  53. func (m *LogAddRequest) GetUid() int64 {
  54. if m != nil {
  55. return m.Uid
  56. }
  57. return 0
  58. }
  59. func (m *LogAddRequest) GetOperation() string {
  60. if m != nil {
  61. return m.Operation
  62. }
  63. return ""
  64. }
  65. func (m *LogAddRequest) GetResult() int32 {
  66. if m != nil {
  67. return m.Result
  68. }
  69. return 0
  70. }
  71. func (m *LogAddRequest) GetDetail() string {
  72. if m != nil {
  73. return m.Detail
  74. }
  75. return ""
  76. }
  77. func (m *LogAddRequest) GetType() int32 {
  78. if m != nil {
  79. return m.Type
  80. }
  81. return 0
  82. }
  83. func (m *LogAddRequest) GetUsername() string {
  84. if m != nil {
  85. return m.Username
  86. }
  87. return ""
  88. }
  89. func (m *LogAddRequest) GetProjectId() int64 {
  90. if m != nil {
  91. return m.ProjectId
  92. }
  93. return 0
  94. }
  95. type LogAddReply struct {
  96. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  97. XXX_unrecognized []byte `json:"-"`
  98. XXX_sizecache int32 `json:"-"`
  99. }
  100. func (m *LogAddReply) Reset() { *m = LogAddReply{} }
  101. func (m *LogAddReply) String() string { return proto.CompactTextString(m) }
  102. func (*LogAddReply) ProtoMessage() {}
  103. func (*LogAddReply) Descriptor() ([]byte, []int) {
  104. return fileDescriptor_c759f6398179ec0e, []int{1}
  105. }
  106. func (m *LogAddReply) XXX_Unmarshal(b []byte) error {
  107. return xxx_messageInfo_LogAddReply.Unmarshal(m, b)
  108. }
  109. func (m *LogAddReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  110. return xxx_messageInfo_LogAddReply.Marshal(b, m, deterministic)
  111. }
  112. func (m *LogAddReply) XXX_Merge(src proto.Message) {
  113. xxx_messageInfo_LogAddReply.Merge(m, src)
  114. }
  115. func (m *LogAddReply) XXX_Size() int {
  116. return xxx_messageInfo_LogAddReply.Size(m)
  117. }
  118. func (m *LogAddReply) XXX_DiscardUnknown() {
  119. xxx_messageInfo_LogAddReply.DiscardUnknown(m)
  120. }
  121. var xxx_messageInfo_LogAddReply proto.InternalMessageInfo
  122. type LogInfo struct {
  123. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name"`
  124. Operation string `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation"`
  125. Result string `protobuf:"bytes,3,opt,name=result,proto3" json:"result"`
  126. Detail string `protobuf:"bytes,4,opt,name=detail,proto3" json:"detail"`
  127. Uid int64 `protobuf:"varint,5,opt,name=uid,proto3" json:"uid"`
  128. Time string `protobuf:"bytes,6,opt,name=time,proto3" json:"time"`
  129. ProjectName string `protobuf:"bytes,7,opt,name=project_name,json=projectName,proto3" json:"project_name"`
  130. ProjectId int64 `protobuf:"varint,8,opt,name=project_id,json=projectId,proto3" json:"project_id"`
  131. ProjectNo string `protobuf:"bytes,9,opt,name=project_no,json=projectNo,proto3" json:"project_no"`
  132. SafetyRecordNo string `protobuf:"bytes,10,opt,name=safety_record_no,json=safetyRecordNo,proto3" json:"safety_record_no"`
  133. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  134. XXX_unrecognized []byte `json:"-"`
  135. XXX_sizecache int32 `json:"-"`
  136. }
  137. func (m *LogInfo) Reset() { *m = LogInfo{} }
  138. func (m *LogInfo) String() string { return proto.CompactTextString(m) }
  139. func (*LogInfo) ProtoMessage() {}
  140. func (*LogInfo) Descriptor() ([]byte, []int) {
  141. return fileDescriptor_c759f6398179ec0e, []int{2}
  142. }
  143. func (m *LogInfo) XXX_Unmarshal(b []byte) error {
  144. return xxx_messageInfo_LogInfo.Unmarshal(m, b)
  145. }
  146. func (m *LogInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  147. return xxx_messageInfo_LogInfo.Marshal(b, m, deterministic)
  148. }
  149. func (m *LogInfo) XXX_Merge(src proto.Message) {
  150. xxx_messageInfo_LogInfo.Merge(m, src)
  151. }
  152. func (m *LogInfo) XXX_Size() int {
  153. return xxx_messageInfo_LogInfo.Size(m)
  154. }
  155. func (m *LogInfo) XXX_DiscardUnknown() {
  156. xxx_messageInfo_LogInfo.DiscardUnknown(m)
  157. }
  158. var xxx_messageInfo_LogInfo proto.InternalMessageInfo
  159. func (m *LogInfo) GetName() string {
  160. if m != nil {
  161. return m.Name
  162. }
  163. return ""
  164. }
  165. func (m *LogInfo) GetOperation() string {
  166. if m != nil {
  167. return m.Operation
  168. }
  169. return ""
  170. }
  171. func (m *LogInfo) GetResult() string {
  172. if m != nil {
  173. return m.Result
  174. }
  175. return ""
  176. }
  177. func (m *LogInfo) GetDetail() string {
  178. if m != nil {
  179. return m.Detail
  180. }
  181. return ""
  182. }
  183. func (m *LogInfo) GetUid() int64 {
  184. if m != nil {
  185. return m.Uid
  186. }
  187. return 0
  188. }
  189. func (m *LogInfo) GetTime() string {
  190. if m != nil {
  191. return m.Time
  192. }
  193. return ""
  194. }
  195. func (m *LogInfo) GetProjectName() string {
  196. if m != nil {
  197. return m.ProjectName
  198. }
  199. return ""
  200. }
  201. func (m *LogInfo) GetProjectId() int64 {
  202. if m != nil {
  203. return m.ProjectId
  204. }
  205. return 0
  206. }
  207. func (m *LogInfo) GetProjectNo() string {
  208. if m != nil {
  209. return m.ProjectNo
  210. }
  211. return ""
  212. }
  213. func (m *LogInfo) GetSafetyRecordNo() string {
  214. if m != nil {
  215. return m.SafetyRecordNo
  216. }
  217. return ""
  218. }
  219. type LogListRequest struct {
  220. Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page"`
  221. Start int64 `protobuf:"varint,2,opt,name=start,proto3" json:"start"`
  222. End int64 `protobuf:"varint,3,opt,name=end,proto3" json:"end"`
  223. Type int32 `protobuf:"varint,4,opt,name=type,proto3" json:"type"`
  224. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  225. XXX_unrecognized []byte `json:"-"`
  226. XXX_sizecache int32 `json:"-"`
  227. }
  228. func (m *LogListRequest) Reset() { *m = LogListRequest{} }
  229. func (m *LogListRequest) String() string { return proto.CompactTextString(m) }
  230. func (*LogListRequest) ProtoMessage() {}
  231. func (*LogListRequest) Descriptor() ([]byte, []int) {
  232. return fileDescriptor_c759f6398179ec0e, []int{3}
  233. }
  234. func (m *LogListRequest) XXX_Unmarshal(b []byte) error {
  235. return xxx_messageInfo_LogListRequest.Unmarshal(m, b)
  236. }
  237. func (m *LogListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  238. return xxx_messageInfo_LogListRequest.Marshal(b, m, deterministic)
  239. }
  240. func (m *LogListRequest) XXX_Merge(src proto.Message) {
  241. xxx_messageInfo_LogListRequest.Merge(m, src)
  242. }
  243. func (m *LogListRequest) XXX_Size() int {
  244. return xxx_messageInfo_LogListRequest.Size(m)
  245. }
  246. func (m *LogListRequest) XXX_DiscardUnknown() {
  247. xxx_messageInfo_LogListRequest.DiscardUnknown(m)
  248. }
  249. var xxx_messageInfo_LogListRequest proto.InternalMessageInfo
  250. func (m *LogListRequest) GetPage() int32 {
  251. if m != nil {
  252. return m.Page
  253. }
  254. return 0
  255. }
  256. func (m *LogListRequest) GetStart() int64 {
  257. if m != nil {
  258. return m.Start
  259. }
  260. return 0
  261. }
  262. func (m *LogListRequest) GetEnd() int64 {
  263. if m != nil {
  264. return m.End
  265. }
  266. return 0
  267. }
  268. func (m *LogListRequest) GetType() int32 {
  269. if m != nil {
  270. return m.Type
  271. }
  272. return 0
  273. }
  274. type LogListReply struct {
  275. List []*LogInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list"`
  276. Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total"`
  277. Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page"`
  278. PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size"`
  279. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  280. XXX_unrecognized []byte `json:"-"`
  281. XXX_sizecache int32 `json:"-"`
  282. }
  283. func (m *LogListReply) Reset() { *m = LogListReply{} }
  284. func (m *LogListReply) String() string { return proto.CompactTextString(m) }
  285. func (*LogListReply) ProtoMessage() {}
  286. func (*LogListReply) Descriptor() ([]byte, []int) {
  287. return fileDescriptor_c759f6398179ec0e, []int{4}
  288. }
  289. func (m *LogListReply) XXX_Unmarshal(b []byte) error {
  290. return xxx_messageInfo_LogListReply.Unmarshal(m, b)
  291. }
  292. func (m *LogListReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  293. return xxx_messageInfo_LogListReply.Marshal(b, m, deterministic)
  294. }
  295. func (m *LogListReply) XXX_Merge(src proto.Message) {
  296. xxx_messageInfo_LogListReply.Merge(m, src)
  297. }
  298. func (m *LogListReply) XXX_Size() int {
  299. return xxx_messageInfo_LogListReply.Size(m)
  300. }
  301. func (m *LogListReply) XXX_DiscardUnknown() {
  302. xxx_messageInfo_LogListReply.DiscardUnknown(m)
  303. }
  304. var xxx_messageInfo_LogListReply proto.InternalMessageInfo
  305. func (m *LogListReply) GetList() []*LogInfo {
  306. if m != nil {
  307. return m.List
  308. }
  309. return nil
  310. }
  311. func (m *LogListReply) GetTotal() int64 {
  312. if m != nil {
  313. return m.Total
  314. }
  315. return 0
  316. }
  317. func (m *LogListReply) GetPage() int32 {
  318. if m != nil {
  319. return m.Page
  320. }
  321. return 0
  322. }
  323. func (m *LogListReply) GetPageSize() int32 {
  324. if m != nil {
  325. return m.PageSize
  326. }
  327. return 0
  328. }
  329. func init() {
  330. proto.RegisterType((*LogAddRequest)(nil), "v1.LogAddRequest")
  331. proto.RegisterType((*LogAddReply)(nil), "v1.LogAddReply")
  332. proto.RegisterType((*LogInfo)(nil), "v1.LogInfo")
  333. proto.RegisterType((*LogListRequest)(nil), "v1.LogListRequest")
  334. proto.RegisterType((*LogListReply)(nil), "v1.LogListReply")
  335. }
  336. func init() {
  337. proto.RegisterFile("operation_log.proto", fileDescriptor_c759f6398179ec0e)
  338. }
  339. var fileDescriptor_c759f6398179ec0e = []byte{
  340. // 431 bytes of a gzipped FileDescriptorProto
  341. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xcd, 0x6e, 0xd3, 0x40,
  342. 0x10, 0x96, 0x63, 0x3b, 0x89, 0x27, 0x6d, 0x55, 0x2d, 0x08, 0xad, 0xf8, 0x11, 0xc1, 0x17, 0xcc,
  343. 0x21, 0xa9, 0x02, 0x4f, 0x00, 0xb7, 0x4a, 0x51, 0x0f, 0xcb, 0x8d, 0x4b, 0xd8, 0xd6, 0x5b, 0x6b,
  344. 0x91, 0xe3, 0x5d, 0x76, 0xc7, 0x41, 0xee, 0xb3, 0xf0, 0x2c, 0x3c, 0x1b, 0xda, 0x89, 0xed, 0x54,
  345. 0x70, 0x40, 0x9c, 0xfc, 0xcd, 0x37, 0x33, 0x3b, 0xdf, 0x37, 0x63, 0x78, 0x62, 0xac, 0x72, 0x12,
  346. 0xb5, 0x69, 0x76, 0xb5, 0xa9, 0xd6, 0xd6, 0x19, 0x34, 0x6c, 0x72, 0xd8, 0xe4, 0xbf, 0x22, 0x38,
  347. 0xdf, 0x9a, 0xea, 0x63, 0x59, 0x0a, 0xf5, 0xbd, 0x55, 0x1e, 0xd9, 0x25, 0xc4, 0xad, 0x2e, 0x79,
  348. 0xb4, 0x8c, 0x8a, 0x58, 0x04, 0xc8, 0x5e, 0x42, 0x36, 0xb6, 0xf3, 0xc9, 0x32, 0x2a, 0x32, 0x71,
  349. 0x22, 0xd8, 0x33, 0x98, 0x3a, 0xe5, 0xdb, 0x1a, 0x79, 0xbc, 0x8c, 0x8a, 0x54, 0xf4, 0x51, 0xe0,
  350. 0x4b, 0x85, 0x52, 0xd7, 0x3c, 0xa1, 0x96, 0x3e, 0x62, 0x0c, 0x12, 0xec, 0xac, 0xe2, 0x29, 0x55,
  351. 0x13, 0x66, 0xcf, 0x61, 0xde, 0x7a, 0xe5, 0x1a, 0xb9, 0x57, 0x7c, 0x4a, 0xd5, 0x63, 0xcc, 0x5e,
  352. 0x01, 0x58, 0x67, 0xbe, 0xa9, 0x3b, 0xdc, 0xe9, 0x92, 0xcf, 0x48, 0x56, 0xd6, 0x33, 0xd7, 0x65,
  353. 0x7e, 0x0e, 0x8b, 0x41, 0xbf, 0xad, 0xbb, 0xfc, 0xe7, 0x04, 0x66, 0x5b, 0x53, 0x5d, 0x37, 0xf7,
  354. 0x26, 0x4c, 0xa2, 0x17, 0x23, 0x7a, 0x91, 0xf0, 0x7f, 0x79, 0xc9, 0xfe, 0xe9, 0xa5, 0xdf, 0x55,
  355. 0x7a, 0xda, 0x55, 0x70, 0xa7, 0x47, 0x17, 0x84, 0xd9, 0x1b, 0x38, 0x1b, 0x1c, 0x90, 0x9e, 0x19,
  356. 0xe5, 0x16, 0x3d, 0x77, 0xf3, 0xb7, 0xc9, 0xf9, 0x1f, 0x26, 0x1f, 0xa7, 0x1b, 0xc3, 0xb3, 0xa3,
  357. 0xec, 0xa1, 0xdf, 0xb0, 0x02, 0x2e, 0xbd, 0xbc, 0x57, 0xd8, 0xed, 0x9c, 0xba, 0x33, 0xae, 0x0c,
  358. 0x45, 0x40, 0x45, 0x17, 0x47, 0x5e, 0x10, 0x7d, 0x63, 0xf2, 0xaf, 0x70, 0xb1, 0x35, 0xd5, 0x56,
  359. 0x7b, 0x1c, 0xce, 0xcd, 0x20, 0xb1, 0xb2, 0x3a, 0x2e, 0x29, 0x15, 0x84, 0xd9, 0x53, 0x48, 0x3d,
  360. 0x4a, 0x87, 0xb4, 0xa0, 0x58, 0x1c, 0x83, 0x60, 0x56, 0x35, 0x25, 0x6d, 0x26, 0x16, 0x01, 0x8e,
  361. 0xa7, 0x4c, 0x4e, 0xa7, 0xcc, 0x0f, 0x70, 0x36, 0x4e, 0xb0, 0x75, 0xc7, 0x5e, 0x43, 0x52, 0x6b,
  362. 0x8f, 0x3c, 0x5a, 0xc6, 0xc5, 0xe2, 0xfd, 0x62, 0x7d, 0xd8, 0xac, 0xfb, 0xfb, 0x08, 0x4a, 0x84,
  363. 0x61, 0x68, 0x50, 0xd6, 0xc3, 0x30, 0x0a, 0x46, 0x59, 0xf1, 0x23, 0x59, 0x2f, 0x20, 0x0b, 0xdf,
  364. 0x9d, 0xd7, 0x0f, 0xc3, 0xcc, 0x79, 0x20, 0x3e, 0xeb, 0x07, 0xf5, 0xe9, 0xdd, 0x97, 0xb7, 0x7e,
  365. 0x2f, 0x1d, 0xae, 0x7c, 0x6b, 0x6d, 0xad, 0x95, 0x5b, 0xed, 0x65, 0x23, 0x2b, 0xb5, 0x57, 0x0d,
  366. 0xae, 0x2a, 0x89, 0xea, 0x87, 0xec, 0xae, 0xec, 0xed, 0xd5, 0x61, 0x73, 0x3b, 0xa5, 0xdf, 0xff,
  367. 0xc3, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf5, 0x7e, 0xd0, 0x34, 0x15, 0x03, 0x00, 0x00,
  368. }