mobile.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.21.9
  5. // source: backend/operation/mobile.proto
  6. package operationPb
  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. type SearchMobileRequest struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 名称
  24. Pagination *PaginationModel `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // 分页
  25. }
  26. func (x *SearchMobileRequest) Reset() {
  27. *x = SearchMobileRequest{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_backend_operation_mobile_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. }
  34. func (x *SearchMobileRequest) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*SearchMobileRequest) ProtoMessage() {}
  38. func (x *SearchMobileRequest) ProtoReflect() protoreflect.Message {
  39. mi := &file_backend_operation_mobile_proto_msgTypes[0]
  40. if protoimpl.UnsafeEnabled && x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use SearchMobileRequest.ProtoReflect.Descriptor instead.
  50. func (*SearchMobileRequest) Descriptor() ([]byte, []int) {
  51. return file_backend_operation_mobile_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *SearchMobileRequest) GetName() string {
  54. if x != nil {
  55. return x.Name
  56. }
  57. return ""
  58. }
  59. func (x *SearchMobileRequest) GetPagination() *PaginationModel {
  60. if x != nil {
  61. return x.Pagination
  62. }
  63. return nil
  64. }
  65. type SearchMobileResponse struct {
  66. state protoimpl.MessageState
  67. sizeCache protoimpl.SizeCache
  68. unknownFields protoimpl.UnknownFields
  69. Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
  70. Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
  71. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  72. List []*MobileData `protobuf:"bytes,4,rep,name=list,proto3" json:"list,omitempty"`
  73. }
  74. func (x *SearchMobileResponse) Reset() {
  75. *x = SearchMobileResponse{}
  76. if protoimpl.UnsafeEnabled {
  77. mi := &file_backend_operation_mobile_proto_msgTypes[1]
  78. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  79. ms.StoreMessageInfo(mi)
  80. }
  81. }
  82. func (x *SearchMobileResponse) String() string {
  83. return protoimpl.X.MessageStringOf(x)
  84. }
  85. func (*SearchMobileResponse) ProtoMessage() {}
  86. func (x *SearchMobileResponse) ProtoReflect() protoreflect.Message {
  87. mi := &file_backend_operation_mobile_proto_msgTypes[1]
  88. if protoimpl.UnsafeEnabled && x != nil {
  89. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  90. if ms.LoadMessageInfo() == nil {
  91. ms.StoreMessageInfo(mi)
  92. }
  93. return ms
  94. }
  95. return mi.MessageOf(x)
  96. }
  97. // Deprecated: Use SearchMobileResponse.ProtoReflect.Descriptor instead.
  98. func (*SearchMobileResponse) Descriptor() ([]byte, []int) {
  99. return file_backend_operation_mobile_proto_rawDescGZIP(), []int{1}
  100. }
  101. func (x *SearchMobileResponse) GetPage() int32 {
  102. if x != nil {
  103. return x.Page
  104. }
  105. return 0
  106. }
  107. func (x *SearchMobileResponse) GetTotal() int32 {
  108. if x != nil {
  109. return x.Total
  110. }
  111. return 0
  112. }
  113. func (x *SearchMobileResponse) GetPageSize() int32 {
  114. if x != nil {
  115. return x.PageSize
  116. }
  117. return 0
  118. }
  119. func (x *SearchMobileResponse) GetList() []*MobileData {
  120. if x != nil {
  121. return x.List
  122. }
  123. return nil
  124. }
  125. type MobileData struct {
  126. state protoimpl.MessageState
  127. sizeCache protoimpl.SizeCache
  128. unknownFields protoimpl.UnknownFields
  129. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  130. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  131. CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  132. CreatedAtFormat string `protobuf:"bytes,4,opt,name=created_at_format,json=createdAtFormat,proto3" json:"created_at_format,omitempty"`
  133. }
  134. func (x *MobileData) Reset() {
  135. *x = MobileData{}
  136. if protoimpl.UnsafeEnabled {
  137. mi := &file_backend_operation_mobile_proto_msgTypes[2]
  138. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  139. ms.StoreMessageInfo(mi)
  140. }
  141. }
  142. func (x *MobileData) String() string {
  143. return protoimpl.X.MessageStringOf(x)
  144. }
  145. func (*MobileData) ProtoMessage() {}
  146. func (x *MobileData) ProtoReflect() protoreflect.Message {
  147. mi := &file_backend_operation_mobile_proto_msgTypes[2]
  148. if protoimpl.UnsafeEnabled && x != nil {
  149. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  150. if ms.LoadMessageInfo() == nil {
  151. ms.StoreMessageInfo(mi)
  152. }
  153. return ms
  154. }
  155. return mi.MessageOf(x)
  156. }
  157. // Deprecated: Use MobileData.ProtoReflect.Descriptor instead.
  158. func (*MobileData) Descriptor() ([]byte, []int) {
  159. return file_backend_operation_mobile_proto_rawDescGZIP(), []int{2}
  160. }
  161. func (x *MobileData) GetId() int64 {
  162. if x != nil {
  163. return x.Id
  164. }
  165. return 0
  166. }
  167. func (x *MobileData) GetName() string {
  168. if x != nil {
  169. return x.Name
  170. }
  171. return ""
  172. }
  173. func (x *MobileData) GetCreatedAt() int64 {
  174. if x != nil {
  175. return x.CreatedAt
  176. }
  177. return 0
  178. }
  179. func (x *MobileData) GetCreatedAtFormat() string {
  180. if x != nil {
  181. return x.CreatedAtFormat
  182. }
  183. return ""
  184. }
  185. var File_backend_operation_mobile_proto protoreflect.FileDescriptor
  186. var file_backend_operation_mobile_proto_rawDesc = []byte{
  187. 0x0a, 0x1e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,
  188. 0x69, 0x6f, 0x6e, 0x2f, 0x6d, 0x6f, 0x62, 0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  189. 0x12, 0x11, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,
  190. 0x69, 0x6f, 0x6e, 0x1a, 0x22, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x6f, 0x70, 0x65,
  191. 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f,
  192. 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6d, 0x0a, 0x13, 0x53, 0x65, 0x61, 0x72, 0x63,
  193. 0x68, 0x4d, 0x6f, 0x62, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12,
  194. 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
  195. 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e,
  196. 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64,
  197. 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e,
  198. 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69,
  199. 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x90, 0x01, 0x0a, 0x14, 0x53, 0x65, 0x61, 0x72, 0x63,
  200. 0x68, 0x4d, 0x6f, 0x62, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
  201. 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70,
  202. 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01,
  203. 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67,
  204. 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61,
  205. 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x04,
  206. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f,
  207. 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x62, 0x69, 0x6c, 0x65, 0x44,
  208. 0x61, 0x74, 0x61, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x7b, 0x0a, 0x0a, 0x4d, 0x6f, 0x62,
  209. 0x69, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
  210. 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
  211. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63,
  212. 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
  213. 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x63, 0x72,
  214. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18,
  215. 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74,
  216. 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x42, 0x0f, 0x5a, 0x0d, 0x2e, 0x3b, 0x6f, 0x70, 0x65, 0x72,
  217. 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  218. }
  219. var (
  220. file_backend_operation_mobile_proto_rawDescOnce sync.Once
  221. file_backend_operation_mobile_proto_rawDescData = file_backend_operation_mobile_proto_rawDesc
  222. )
  223. func file_backend_operation_mobile_proto_rawDescGZIP() []byte {
  224. file_backend_operation_mobile_proto_rawDescOnce.Do(func() {
  225. file_backend_operation_mobile_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_operation_mobile_proto_rawDescData)
  226. })
  227. return file_backend_operation_mobile_proto_rawDescData
  228. }
  229. var file_backend_operation_mobile_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  230. var file_backend_operation_mobile_proto_goTypes = []interface{}{
  231. (*SearchMobileRequest)(nil), // 0: backend.operation.SearchMobileRequest
  232. (*SearchMobileResponse)(nil), // 1: backend.operation.SearchMobileResponse
  233. (*MobileData)(nil), // 2: backend.operation.MobileData
  234. (*PaginationModel)(nil), // 3: backend.operation.PaginationModel
  235. }
  236. var file_backend_operation_mobile_proto_depIdxs = []int32{
  237. 3, // 0: backend.operation.SearchMobileRequest.pagination:type_name -> backend.operation.PaginationModel
  238. 2, // 1: backend.operation.SearchMobileResponse.list:type_name -> backend.operation.MobileData
  239. 2, // [2:2] is the sub-list for method output_type
  240. 2, // [2:2] is the sub-list for method input_type
  241. 2, // [2:2] is the sub-list for extension type_name
  242. 2, // [2:2] is the sub-list for extension extendee
  243. 0, // [0:2] is the sub-list for field type_name
  244. }
  245. func init() { file_backend_operation_mobile_proto_init() }
  246. func file_backend_operation_mobile_proto_init() {
  247. if File_backend_operation_mobile_proto != nil {
  248. return
  249. }
  250. file_backend_operation_pagination_proto_init()
  251. if !protoimpl.UnsafeEnabled {
  252. file_backend_operation_mobile_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  253. switch v := v.(*SearchMobileRequest); i {
  254. case 0:
  255. return &v.state
  256. case 1:
  257. return &v.sizeCache
  258. case 2:
  259. return &v.unknownFields
  260. default:
  261. return nil
  262. }
  263. }
  264. file_backend_operation_mobile_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  265. switch v := v.(*SearchMobileResponse); i {
  266. case 0:
  267. return &v.state
  268. case 1:
  269. return &v.sizeCache
  270. case 2:
  271. return &v.unknownFields
  272. default:
  273. return nil
  274. }
  275. }
  276. file_backend_operation_mobile_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  277. switch v := v.(*MobileData); i {
  278. case 0:
  279. return &v.state
  280. case 1:
  281. return &v.sizeCache
  282. case 2:
  283. return &v.unknownFields
  284. default:
  285. return nil
  286. }
  287. }
  288. }
  289. type x struct{}
  290. out := protoimpl.TypeBuilder{
  291. File: protoimpl.DescBuilder{
  292. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  293. RawDescriptor: file_backend_operation_mobile_proto_rawDesc,
  294. NumEnums: 0,
  295. NumMessages: 3,
  296. NumExtensions: 0,
  297. NumServices: 0,
  298. },
  299. GoTypes: file_backend_operation_mobile_proto_goTypes,
  300. DependencyIndexes: file_backend_operation_mobile_proto_depIdxs,
  301. MessageInfos: file_backend_operation_mobile_proto_msgTypes,
  302. }.Build()
  303. File_backend_operation_mobile_proto = out.File
  304. file_backend_operation_mobile_proto_rawDesc = nil
  305. file_backend_operation_mobile_proto_goTypes = nil
  306. file_backend_operation_mobile_proto_depIdxs = nil
  307. }