check.pb.go 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1-devel
  4. // protoc v3.21.8
  5. // source: check.proto
  6. package check
  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 CheckRequest struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content"` // 内容 (url或者文本)
  24. Level int64 `protobuf:"varint,2,opt,name=level,proto3" json:"level"` // 审核的等级 (0是最高级)
  25. OpenId string `protobuf:"bytes,3,opt,name=openId,proto3" json:"openId"`
  26. AppId string `protobuf:"bytes,4,opt,name=appId,proto3" json:"appId"`
  27. IsMiniProgram bool `protobuf:"varint,5,opt,name=isMiniProgram,proto3" json:"isMiniProgram"` // 是否是小程序用户
  28. }
  29. func (x *CheckRequest) Reset() {
  30. *x = CheckRequest{}
  31. if protoimpl.UnsafeEnabled {
  32. mi := &file_check_proto_msgTypes[0]
  33. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  34. ms.StoreMessageInfo(mi)
  35. }
  36. }
  37. func (x *CheckRequest) String() string {
  38. return protoimpl.X.MessageStringOf(x)
  39. }
  40. func (*CheckRequest) ProtoMessage() {}
  41. func (x *CheckRequest) ProtoReflect() protoreflect.Message {
  42. mi := &file_check_proto_msgTypes[0]
  43. if protoimpl.UnsafeEnabled && x != nil {
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. if ms.LoadMessageInfo() == nil {
  46. ms.StoreMessageInfo(mi)
  47. }
  48. return ms
  49. }
  50. return mi.MessageOf(x)
  51. }
  52. // Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead.
  53. func (*CheckRequest) Descriptor() ([]byte, []int) {
  54. return file_check_proto_rawDescGZIP(), []int{0}
  55. }
  56. func (x *CheckRequest) GetContent() string {
  57. if x != nil {
  58. return x.Content
  59. }
  60. return ""
  61. }
  62. func (x *CheckRequest) GetLevel() int64 {
  63. if x != nil {
  64. return x.Level
  65. }
  66. return 0
  67. }
  68. func (x *CheckRequest) GetOpenId() string {
  69. if x != nil {
  70. return x.OpenId
  71. }
  72. return ""
  73. }
  74. func (x *CheckRequest) GetAppId() string {
  75. if x != nil {
  76. return x.AppId
  77. }
  78. return ""
  79. }
  80. func (x *CheckRequest) GetIsMiniProgram() bool {
  81. if x != nil {
  82. return x.IsMiniProgram
  83. }
  84. return false
  85. }
  86. type CheckReply struct {
  87. state protoimpl.MessageState
  88. sizeCache protoimpl.SizeCache
  89. unknownFields protoimpl.UnknownFields
  90. IsUnPass bool `protobuf:"varint,1,opt,name=isUnPass,proto3" json:"isUnPass"`
  91. }
  92. func (x *CheckReply) Reset() {
  93. *x = CheckReply{}
  94. if protoimpl.UnsafeEnabled {
  95. mi := &file_check_proto_msgTypes[1]
  96. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  97. ms.StoreMessageInfo(mi)
  98. }
  99. }
  100. func (x *CheckReply) String() string {
  101. return protoimpl.X.MessageStringOf(x)
  102. }
  103. func (*CheckReply) ProtoMessage() {}
  104. func (x *CheckReply) ProtoReflect() protoreflect.Message {
  105. mi := &file_check_proto_msgTypes[1]
  106. if protoimpl.UnsafeEnabled && x != nil {
  107. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  108. if ms.LoadMessageInfo() == nil {
  109. ms.StoreMessageInfo(mi)
  110. }
  111. return ms
  112. }
  113. return mi.MessageOf(x)
  114. }
  115. // Deprecated: Use CheckReply.ProtoReflect.Descriptor instead.
  116. func (*CheckReply) Descriptor() ([]byte, []int) {
  117. return file_check_proto_rawDescGZIP(), []int{1}
  118. }
  119. func (x *CheckReply) GetIsUnPass() bool {
  120. if x != nil {
  121. return x.IsUnPass
  122. }
  123. return false
  124. }
  125. var File_check_proto protoreflect.FileDescriptor
  126. var file_check_proto_rawDesc = []byte{
  127. 0x0a, 0x0b, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x61,
  128. 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x22, 0x92, 0x01, 0x0a, 0x0c, 0x43, 0x68, 0x65,
  129. 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e,
  130. 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74,
  131. 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01,
  132. 0x28, 0x03, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x70, 0x65,
  133. 0x6e, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x70, 0x65, 0x6e, 0x49,
  134. 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
  135. 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x69, 0x73, 0x4d, 0x69, 0x6e,
  136. 0x69, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d,
  137. 0x69, 0x73, 0x4d, 0x69, 0x6e, 0x69, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x22, 0x28, 0x0a,
  138. 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69,
  139. 0x73, 0x55, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69,
  140. 0x73, 0x55, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x32, 0xc8, 0x01, 0x0a, 0x05, 0x43, 0x68, 0x65, 0x63,
  141. 0x6b, 0x12, 0x3d, 0x0a, 0x09, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x65, 0x78, 0x74, 0x12, 0x17,
  142. 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b,
  143. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68,
  144. 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00,
  145. 0x12, 0x40, 0x0a, 0x0c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65,
  146. 0x12, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65,
  147. 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  148. 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79,
  149. 0x22, 0x00, 0x12, 0x3e, 0x0a, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x56, 0x6f, 0x69, 0x63, 0x65,
  150. 0x12, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65,
  151. 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  152. 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79,
  153. 0x22, 0x00, 0x42, 0x40, 0x0a, 0x09, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x50,
  154. 0x01, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f,
  155. 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74,
  156. 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x3b, 0x63,
  157. 0x68, 0x65, 0x63, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  158. }
  159. var (
  160. file_check_proto_rawDescOnce sync.Once
  161. file_check_proto_rawDescData = file_check_proto_rawDesc
  162. )
  163. func file_check_proto_rawDescGZIP() []byte {
  164. file_check_proto_rawDescOnce.Do(func() {
  165. file_check_proto_rawDescData = protoimpl.X.CompressGZIP(file_check_proto_rawDescData)
  166. })
  167. return file_check_proto_rawDescData
  168. }
  169. var file_check_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  170. var file_check_proto_goTypes = []interface{}{
  171. (*CheckRequest)(nil), // 0: api.check.CheckRequest
  172. (*CheckReply)(nil), // 1: api.check.CheckReply
  173. }
  174. var file_check_proto_depIdxs = []int32{
  175. 0, // 0: api.check.Check.CheckText:input_type -> api.check.CheckRequest
  176. 0, // 1: api.check.Check.CheckPicture:input_type -> api.check.CheckRequest
  177. 0, // 2: api.check.Check.CheckVoice:input_type -> api.check.CheckRequest
  178. 1, // 3: api.check.Check.CheckText:output_type -> api.check.CheckReply
  179. 1, // 4: api.check.Check.CheckPicture:output_type -> api.check.CheckReply
  180. 1, // 5: api.check.Check.CheckVoice:output_type -> api.check.CheckReply
  181. 3, // [3:6] is the sub-list for method output_type
  182. 0, // [0:3] is the sub-list for method input_type
  183. 0, // [0:0] is the sub-list for extension type_name
  184. 0, // [0:0] is the sub-list for extension extendee
  185. 0, // [0:0] is the sub-list for field type_name
  186. }
  187. func init() { file_check_proto_init() }
  188. func file_check_proto_init() {
  189. if File_check_proto != nil {
  190. return
  191. }
  192. if !protoimpl.UnsafeEnabled {
  193. file_check_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  194. switch v := v.(*CheckRequest); i {
  195. case 0:
  196. return &v.state
  197. case 1:
  198. return &v.sizeCache
  199. case 2:
  200. return &v.unknownFields
  201. default:
  202. return nil
  203. }
  204. }
  205. file_check_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  206. switch v := v.(*CheckReply); i {
  207. case 0:
  208. return &v.state
  209. case 1:
  210. return &v.sizeCache
  211. case 2:
  212. return &v.unknownFields
  213. default:
  214. return nil
  215. }
  216. }
  217. }
  218. type x struct{}
  219. out := protoimpl.TypeBuilder{
  220. File: protoimpl.DescBuilder{
  221. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  222. RawDescriptor: file_check_proto_rawDesc,
  223. NumEnums: 0,
  224. NumMessages: 2,
  225. NumExtensions: 0,
  226. NumServices: 1,
  227. },
  228. GoTypes: file_check_proto_goTypes,
  229. DependencyIndexes: file_check_proto_depIdxs,
  230. MessageInfos: file_check_proto_msgTypes,
  231. }.Build()
  232. File_check_proto = out.File
  233. file_check_proto_rawDesc = nil
  234. file_check_proto_goTypes = nil
  235. file_check_proto_depIdxs = nil
  236. }