user.pb.go 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0-devel
  4. // protoc v3.15.8
  5. // source: user.proto
  6. package user
  7. import (
  8. _ "google.golang.org/genproto/googleapis/api/annotations"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  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 DebugLoginRequest struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId"`
  25. Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code"`
  26. }
  27. func (x *DebugLoginRequest) Reset() {
  28. *x = DebugLoginRequest{}
  29. if protoimpl.UnsafeEnabled {
  30. mi := &file_user_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. }
  35. func (x *DebugLoginRequest) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*DebugLoginRequest) ProtoMessage() {}
  39. func (x *DebugLoginRequest) ProtoReflect() protoreflect.Message {
  40. mi := &file_user_proto_msgTypes[0]
  41. if protoimpl.UnsafeEnabled && x != nil {
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. if ms.LoadMessageInfo() == nil {
  44. ms.StoreMessageInfo(mi)
  45. }
  46. return ms
  47. }
  48. return mi.MessageOf(x)
  49. }
  50. // Deprecated: Use DebugLoginRequest.ProtoReflect.Descriptor instead.
  51. func (*DebugLoginRequest) Descriptor() ([]byte, []int) {
  52. return file_user_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *DebugLoginRequest) GetUserId() string {
  55. if x != nil {
  56. return x.UserId
  57. }
  58. return ""
  59. }
  60. func (x *DebugLoginRequest) GetCode() string {
  61. if x != nil {
  62. return x.Code
  63. }
  64. return ""
  65. }
  66. type LoginRequest struct {
  67. state protoimpl.MessageState
  68. sizeCache protoimpl.SizeCache
  69. unknownFields protoimpl.UnknownFields
  70. JsCode string `protobuf:"bytes,1,opt,name=jsCode,proto3" json:"jsCode"`
  71. }
  72. func (x *LoginRequest) Reset() {
  73. *x = LoginRequest{}
  74. if protoimpl.UnsafeEnabled {
  75. mi := &file_user_proto_msgTypes[1]
  76. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  77. ms.StoreMessageInfo(mi)
  78. }
  79. }
  80. func (x *LoginRequest) String() string {
  81. return protoimpl.X.MessageStringOf(x)
  82. }
  83. func (*LoginRequest) ProtoMessage() {}
  84. func (x *LoginRequest) ProtoReflect() protoreflect.Message {
  85. mi := &file_user_proto_msgTypes[1]
  86. if protoimpl.UnsafeEnabled && x != nil {
  87. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  88. if ms.LoadMessageInfo() == nil {
  89. ms.StoreMessageInfo(mi)
  90. }
  91. return ms
  92. }
  93. return mi.MessageOf(x)
  94. }
  95. // Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
  96. func (*LoginRequest) Descriptor() ([]byte, []int) {
  97. return file_user_proto_rawDescGZIP(), []int{1}
  98. }
  99. func (x *LoginRequest) GetJsCode() string {
  100. if x != nil {
  101. return x.JsCode
  102. }
  103. return ""
  104. }
  105. type LoginReply struct {
  106. state protoimpl.MessageState
  107. sizeCache protoimpl.SizeCache
  108. unknownFields protoimpl.UnknownFields
  109. Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token"`
  110. }
  111. func (x *LoginReply) Reset() {
  112. *x = LoginReply{}
  113. if protoimpl.UnsafeEnabled {
  114. mi := &file_user_proto_msgTypes[2]
  115. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  116. ms.StoreMessageInfo(mi)
  117. }
  118. }
  119. func (x *LoginReply) String() string {
  120. return protoimpl.X.MessageStringOf(x)
  121. }
  122. func (*LoginReply) ProtoMessage() {}
  123. func (x *LoginReply) ProtoReflect() protoreflect.Message {
  124. mi := &file_user_proto_msgTypes[2]
  125. if protoimpl.UnsafeEnabled && x != nil {
  126. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  127. if ms.LoadMessageInfo() == nil {
  128. ms.StoreMessageInfo(mi)
  129. }
  130. return ms
  131. }
  132. return mi.MessageOf(x)
  133. }
  134. // Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.
  135. func (*LoginReply) Descriptor() ([]byte, []int) {
  136. return file_user_proto_rawDescGZIP(), []int{2}
  137. }
  138. func (x *LoginReply) GetToken() string {
  139. if x != nil {
  140. return x.Token
  141. }
  142. return ""
  143. }
  144. var File_user_proto protoreflect.FileDescriptor
  145. var file_user_proto_rawDesc = []byte{
  146. 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x61, 0x70,
  147. 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
  148. 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
  149. 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3f, 0x0a, 0x11, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67,
  150. 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65,
  151. 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49,
  152. 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  153. 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x26, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65,
  154. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6a, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x18,
  155. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6a, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x22, 0x0a,
  156. 0x0a, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x74,
  157. 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65,
  158. 0x6e, 0x32, 0xb2, 0x01, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x5c, 0x0a, 0x0a, 0x44, 0x65,
  159. 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75,
  160. 0x73, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65,
  161. 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72,
  162. 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x1b, 0x82, 0xd3, 0xe4,
  163. 0x93, 0x02, 0x15, 0x22, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x2f,
  164. 0x64, 0x65, 0x62, 0x75, 0x67, 0x3a, 0x01, 0x2a, 0x12, 0x4c, 0x0a, 0x05, 0x4c, 0x6f, 0x67, 0x69,
  165. 0x6e, 0x12, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x4c, 0x6f, 0x67,
  166. 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  167. 0x75, 0x73, 0x65, 0x72, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22,
  168. 0x15, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x22, 0x0a, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x6f,
  169. 0x67, 0x69, 0x6e, 0x3a, 0x01, 0x2a, 0x42, 0x3d, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73,
  170. 0x65, 0x72, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e,
  171. 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70,
  172. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72,
  173. 0x3b, 0x75, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  174. }
  175. var (
  176. file_user_proto_rawDescOnce sync.Once
  177. file_user_proto_rawDescData = file_user_proto_rawDesc
  178. )
  179. func file_user_proto_rawDescGZIP() []byte {
  180. file_user_proto_rawDescOnce.Do(func() {
  181. file_user_proto_rawDescData = protoimpl.X.CompressGZIP(file_user_proto_rawDescData)
  182. })
  183. return file_user_proto_rawDescData
  184. }
  185. var file_user_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  186. var file_user_proto_goTypes = []interface{}{
  187. (*DebugLoginRequest)(nil), // 0: api.user.DebugLoginRequest
  188. (*LoginRequest)(nil), // 1: api.user.LoginRequest
  189. (*LoginReply)(nil), // 2: api.user.LoginReply
  190. }
  191. var file_user_proto_depIdxs = []int32{
  192. 0, // 0: api.user.User.DebugLogin:input_type -> api.user.DebugLoginRequest
  193. 1, // 1: api.user.User.Login:input_type -> api.user.LoginRequest
  194. 2, // 2: api.user.User.DebugLogin:output_type -> api.user.LoginReply
  195. 2, // 3: api.user.User.Login:output_type -> api.user.LoginReply
  196. 2, // [2:4] is the sub-list for method output_type
  197. 0, // [0:2] is the sub-list for method input_type
  198. 0, // [0:0] is the sub-list for extension type_name
  199. 0, // [0:0] is the sub-list for extension extendee
  200. 0, // [0:0] is the sub-list for field type_name
  201. }
  202. func init() { file_user_proto_init() }
  203. func file_user_proto_init() {
  204. if File_user_proto != nil {
  205. return
  206. }
  207. if !protoimpl.UnsafeEnabled {
  208. file_user_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  209. switch v := v.(*DebugLoginRequest); i {
  210. case 0:
  211. return &v.state
  212. case 1:
  213. return &v.sizeCache
  214. case 2:
  215. return &v.unknownFields
  216. default:
  217. return nil
  218. }
  219. }
  220. file_user_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  221. switch v := v.(*LoginRequest); i {
  222. case 0:
  223. return &v.state
  224. case 1:
  225. return &v.sizeCache
  226. case 2:
  227. return &v.unknownFields
  228. default:
  229. return nil
  230. }
  231. }
  232. file_user_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  233. switch v := v.(*LoginReply); i {
  234. case 0:
  235. return &v.state
  236. case 1:
  237. return &v.sizeCache
  238. case 2:
  239. return &v.unknownFields
  240. default:
  241. return nil
  242. }
  243. }
  244. }
  245. type x struct{}
  246. out := protoimpl.TypeBuilder{
  247. File: protoimpl.DescBuilder{
  248. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  249. RawDescriptor: file_user_proto_rawDesc,
  250. NumEnums: 0,
  251. NumMessages: 3,
  252. NumExtensions: 0,
  253. NumServices: 1,
  254. },
  255. GoTypes: file_user_proto_goTypes,
  256. DependencyIndexes: file_user_proto_depIdxs,
  257. MessageInfos: file_user_proto_msgTypes,
  258. }.Build()
  259. File_user_proto = out.File
  260. file_user_proto_rawDesc = nil
  261. file_user_proto_goTypes = nil
  262. file_user_proto_depIdxs = nil
  263. }