check.pb.go 9.9 KB

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