fileCenter.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.19.4
  5. // source: fileCenter.proto
  6. package pb
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. //公共返回 status
  20. type Resp struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. ErrorMsg string `protobuf:"bytes,1,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
  25. ErrorCode int64 `protobuf:"varint,2,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
  26. Status int64 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
  27. }
  28. func (x *Resp) Reset() {
  29. *x = Resp{}
  30. if protoimpl.UnsafeEnabled {
  31. mi := &file_fileCenter_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. }
  36. func (x *Resp) String() string {
  37. return protoimpl.X.MessageStringOf(x)
  38. }
  39. func (*Resp) ProtoMessage() {}
  40. func (x *Resp) ProtoReflect() protoreflect.Message {
  41. mi := &file_fileCenter_proto_msgTypes[0]
  42. if protoimpl.UnsafeEnabled && x != nil {
  43. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  44. if ms.LoadMessageInfo() == nil {
  45. ms.StoreMessageInfo(mi)
  46. }
  47. return ms
  48. }
  49. return mi.MessageOf(x)
  50. }
  51. // Deprecated: Use Resp.ProtoReflect.Descriptor instead.
  52. func (*Resp) Descriptor() ([]byte, []int) {
  53. return file_fileCenter_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *Resp) GetErrorMsg() string {
  56. if x != nil {
  57. return x.ErrorMsg
  58. }
  59. return ""
  60. }
  61. func (x *Resp) GetErrorCode() int64 {
  62. if x != nil {
  63. return x.ErrorCode
  64. }
  65. return 0
  66. }
  67. func (x *Resp) GetStatus() int64 {
  68. if x != nil {
  69. return x.Status
  70. }
  71. return 0
  72. }
  73. type UploadReq struct {
  74. state protoimpl.MessageState
  75. sizeCache protoimpl.SizeCache
  76. unknownFields protoimpl.UnknownFields
  77. File []byte `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
  78. OssBucketName string `protobuf:"bytes,2,opt,name=ossBucketName,proto3" json:"ossBucketName,omitempty"`
  79. OssUrl string `protobuf:"bytes,3,opt,name=ossUrl,proto3" json:"ossUrl,omitempty"`
  80. Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
  81. }
  82. func (x *UploadReq) Reset() {
  83. *x = UploadReq{}
  84. if protoimpl.UnsafeEnabled {
  85. mi := &file_fileCenter_proto_msgTypes[1]
  86. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  87. ms.StoreMessageInfo(mi)
  88. }
  89. }
  90. func (x *UploadReq) String() string {
  91. return protoimpl.X.MessageStringOf(x)
  92. }
  93. func (*UploadReq) ProtoMessage() {}
  94. func (x *UploadReq) ProtoReflect() protoreflect.Message {
  95. mi := &file_fileCenter_proto_msgTypes[1]
  96. if protoimpl.UnsafeEnabled && x != nil {
  97. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  98. if ms.LoadMessageInfo() == nil {
  99. ms.StoreMessageInfo(mi)
  100. }
  101. return ms
  102. }
  103. return mi.MessageOf(x)
  104. }
  105. // Deprecated: Use UploadReq.ProtoReflect.Descriptor instead.
  106. func (*UploadReq) Descriptor() ([]byte, []int) {
  107. return file_fileCenter_proto_rawDescGZIP(), []int{1}
  108. }
  109. func (x *UploadReq) GetFile() []byte {
  110. if x != nil {
  111. return x.File
  112. }
  113. return nil
  114. }
  115. func (x *UploadReq) GetOssBucketName() string {
  116. if x != nil {
  117. return x.OssBucketName
  118. }
  119. return ""
  120. }
  121. func (x *UploadReq) GetOssUrl() string {
  122. if x != nil {
  123. return x.OssUrl
  124. }
  125. return ""
  126. }
  127. func (x *UploadReq) GetName() string {
  128. if x != nil {
  129. return x.Name
  130. }
  131. return ""
  132. }
  133. //文件上传返回参数
  134. type UploadResp struct {
  135. state protoimpl.MessageState
  136. sizeCache protoimpl.SizeCache
  137. unknownFields protoimpl.UnknownFields
  138. ErrorMsg string `protobuf:"bytes,1,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
  139. ErrorCode int64 `protobuf:"varint,2,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
  140. Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
  141. }
  142. func (x *UploadResp) Reset() {
  143. *x = UploadResp{}
  144. if protoimpl.UnsafeEnabled {
  145. mi := &file_fileCenter_proto_msgTypes[2]
  146. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  147. ms.StoreMessageInfo(mi)
  148. }
  149. }
  150. func (x *UploadResp) String() string {
  151. return protoimpl.X.MessageStringOf(x)
  152. }
  153. func (*UploadResp) ProtoMessage() {}
  154. func (x *UploadResp) ProtoReflect() protoreflect.Message {
  155. mi := &file_fileCenter_proto_msgTypes[2]
  156. if protoimpl.UnsafeEnabled && x != nil {
  157. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  158. if ms.LoadMessageInfo() == nil {
  159. ms.StoreMessageInfo(mi)
  160. }
  161. return ms
  162. }
  163. return mi.MessageOf(x)
  164. }
  165. // Deprecated: Use UploadResp.ProtoReflect.Descriptor instead.
  166. func (*UploadResp) Descriptor() ([]byte, []int) {
  167. return file_fileCenter_proto_rawDescGZIP(), []int{2}
  168. }
  169. func (x *UploadResp) GetErrorMsg() string {
  170. if x != nil {
  171. return x.ErrorMsg
  172. }
  173. return ""
  174. }
  175. func (x *UploadResp) GetErrorCode() int64 {
  176. if x != nil {
  177. return x.ErrorCode
  178. }
  179. return 0
  180. }
  181. func (x *UploadResp) GetUrl() string {
  182. if x != nil {
  183. return x.Url
  184. }
  185. return ""
  186. }
  187. type DeleteFileReq struct {
  188. state protoimpl.MessageState
  189. sizeCache protoimpl.SizeCache
  190. unknownFields protoimpl.UnknownFields
  191. }
  192. func (x *DeleteFileReq) Reset() {
  193. *x = DeleteFileReq{}
  194. if protoimpl.UnsafeEnabled {
  195. mi := &file_fileCenter_proto_msgTypes[3]
  196. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  197. ms.StoreMessageInfo(mi)
  198. }
  199. }
  200. func (x *DeleteFileReq) String() string {
  201. return protoimpl.X.MessageStringOf(x)
  202. }
  203. func (*DeleteFileReq) ProtoMessage() {}
  204. func (x *DeleteFileReq) ProtoReflect() protoreflect.Message {
  205. mi := &file_fileCenter_proto_msgTypes[3]
  206. if protoimpl.UnsafeEnabled && x != nil {
  207. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  208. if ms.LoadMessageInfo() == nil {
  209. ms.StoreMessageInfo(mi)
  210. }
  211. return ms
  212. }
  213. return mi.MessageOf(x)
  214. }
  215. // Deprecated: Use DeleteFileReq.ProtoReflect.Descriptor instead.
  216. func (*DeleteFileReq) Descriptor() ([]byte, []int) {
  217. return file_fileCenter_proto_rawDescGZIP(), []int{3}
  218. }
  219. var File_fileCenter_proto protoreflect.FileDescriptor
  220. var file_fileCenter_proto_rawDesc = []byte{
  221. 0x0a, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f,
  222. 0x74, 0x6f, 0x22, 0x5a, 0x0a, 0x04, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72,
  223. 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65,
  224. 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72,
  225. 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72,
  226. 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
  227. 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x71,
  228. 0x0a, 0x09, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x66,
  229. 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12,
  230. 0x24, 0x0a, 0x0d, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65,
  231. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x63, 0x6b, 0x65,
  232. 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x73, 0x73, 0x55, 0x72, 0x6c, 0x18,
  233. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x73, 0x73, 0x55, 0x72, 0x6c, 0x12, 0x12, 0x0a,
  234. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
  235. 0x65, 0x22, 0x5a, 0x0a, 0x0a, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12,
  236. 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01,
  237. 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x1d, 0x0a, 0x0a,
  238. 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03,
  239. 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75,
  240. 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x0f, 0x0a,
  241. 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x32, 0x50,
  242. 0x0a, 0x0a, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x06,
  243. 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x0a, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52,
  244. 0x65, 0x71, 0x1a, 0x0b, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12,
  245. 0x1f, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x0e, 0x2e, 0x44, 0x65, 0x6c, 0x65,
  246. 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70,
  247. 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  248. }
  249. var (
  250. file_fileCenter_proto_rawDescOnce sync.Once
  251. file_fileCenter_proto_rawDescData = file_fileCenter_proto_rawDesc
  252. )
  253. func file_fileCenter_proto_rawDescGZIP() []byte {
  254. file_fileCenter_proto_rawDescOnce.Do(func() {
  255. file_fileCenter_proto_rawDescData = protoimpl.X.CompressGZIP(file_fileCenter_proto_rawDescData)
  256. })
  257. return file_fileCenter_proto_rawDescData
  258. }
  259. var file_fileCenter_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  260. var file_fileCenter_proto_goTypes = []interface{}{
  261. (*Resp)(nil), // 0: Resp
  262. (*UploadReq)(nil), // 1: UploadReq
  263. (*UploadResp)(nil), // 2: UploadResp
  264. (*DeleteFileReq)(nil), // 3: DeleteFileReq
  265. }
  266. var file_fileCenter_proto_depIdxs = []int32{
  267. 1, // 0: fileCenter.Upload:input_type -> UploadReq
  268. 3, // 1: fileCenter.Delete:input_type -> DeleteFileReq
  269. 2, // 2: fileCenter.Upload:output_type -> UploadResp
  270. 0, // 3: fileCenter.Delete:output_type -> Resp
  271. 2, // [2:4] is the sub-list for method output_type
  272. 0, // [0:2] is the sub-list for method input_type
  273. 0, // [0:0] is the sub-list for extension type_name
  274. 0, // [0:0] is the sub-list for extension extendee
  275. 0, // [0:0] is the sub-list for field type_name
  276. }
  277. func init() { file_fileCenter_proto_init() }
  278. func file_fileCenter_proto_init() {
  279. if File_fileCenter_proto != nil {
  280. return
  281. }
  282. if !protoimpl.UnsafeEnabled {
  283. file_fileCenter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  284. switch v := v.(*Resp); i {
  285. case 0:
  286. return &v.state
  287. case 1:
  288. return &v.sizeCache
  289. case 2:
  290. return &v.unknownFields
  291. default:
  292. return nil
  293. }
  294. }
  295. file_fileCenter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  296. switch v := v.(*UploadReq); i {
  297. case 0:
  298. return &v.state
  299. case 1:
  300. return &v.sizeCache
  301. case 2:
  302. return &v.unknownFields
  303. default:
  304. return nil
  305. }
  306. }
  307. file_fileCenter_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  308. switch v := v.(*UploadResp); i {
  309. case 0:
  310. return &v.state
  311. case 1:
  312. return &v.sizeCache
  313. case 2:
  314. return &v.unknownFields
  315. default:
  316. return nil
  317. }
  318. }
  319. file_fileCenter_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  320. switch v := v.(*DeleteFileReq); i {
  321. case 0:
  322. return &v.state
  323. case 1:
  324. return &v.sizeCache
  325. case 2:
  326. return &v.unknownFields
  327. default:
  328. return nil
  329. }
  330. }
  331. }
  332. type x struct{}
  333. out := protoimpl.TypeBuilder{
  334. File: protoimpl.DescBuilder{
  335. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  336. RawDescriptor: file_fileCenter_proto_rawDesc,
  337. NumEnums: 0,
  338. NumMessages: 4,
  339. NumExtensions: 0,
  340. NumServices: 1,
  341. },
  342. GoTypes: file_fileCenter_proto_goTypes,
  343. DependencyIndexes: file_fileCenter_proto_depIdxs,
  344. MessageInfos: file_fileCenter_proto_msgTypes,
  345. }.Build()
  346. File_fileCenter_proto = out.File
  347. file_fileCenter_proto_rawDesc = nil
  348. file_fileCenter_proto_goTypes = nil
  349. file_fileCenter_proto_depIdxs = nil
  350. }