sso.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.2
  4. // protoc v5.28.0--rc2
  5. // source: rpc/protos/sso.proto
  6. //protoc --go_out=. --go-grpc_out=. rpc/protos/sso.proto
  7. package sso
  8. import (
  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 LoginRequest struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
  25. Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
  26. }
  27. func (x *LoginRequest) Reset() {
  28. *x = LoginRequest{}
  29. if protoimpl.UnsafeEnabled {
  30. mi := &file_rpc_protos_sso_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. }
  35. func (x *LoginRequest) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*LoginRequest) ProtoMessage() {}
  39. func (x *LoginRequest) ProtoReflect() protoreflect.Message {
  40. mi := &file_rpc_protos_sso_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 LoginRequest.ProtoReflect.Descriptor instead.
  51. func (*LoginRequest) Descriptor() ([]byte, []int) {
  52. return file_rpc_protos_sso_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *LoginRequest) GetCode() string {
  55. if x != nil {
  56. return x.Code
  57. }
  58. return ""
  59. }
  60. func (x *LoginRequest) GetSource() string {
  61. if x != nil {
  62. return x.Source
  63. }
  64. return ""
  65. }
  66. type UserInfo struct {
  67. state protoimpl.MessageState
  68. sizeCache protoimpl.SizeCache
  69. unknownFields protoimpl.UnknownFields
  70. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
  71. Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
  72. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
  73. }
  74. func (x *UserInfo) Reset() {
  75. *x = UserInfo{}
  76. if protoimpl.UnsafeEnabled {
  77. mi := &file_rpc_protos_sso_proto_msgTypes[1]
  78. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  79. ms.StoreMessageInfo(mi)
  80. }
  81. }
  82. func (x *UserInfo) String() string {
  83. return protoimpl.X.MessageStringOf(x)
  84. }
  85. func (*UserInfo) ProtoMessage() {}
  86. func (x *UserInfo) ProtoReflect() protoreflect.Message {
  87. mi := &file_rpc_protos_sso_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 UserInfo.ProtoReflect.Descriptor instead.
  98. func (*UserInfo) Descriptor() ([]byte, []int) {
  99. return file_rpc_protos_sso_proto_rawDescGZIP(), []int{1}
  100. }
  101. func (x *UserInfo) GetUserId() string {
  102. if x != nil {
  103. return x.UserId
  104. }
  105. return ""
  106. }
  107. func (x *UserInfo) GetUsername() string {
  108. if x != nil {
  109. return x.Username
  110. }
  111. return ""
  112. }
  113. func (x *UserInfo) GetName() string {
  114. if x != nil {
  115. return x.Name
  116. }
  117. return ""
  118. }
  119. type LoginResponse struct {
  120. state protoimpl.MessageState
  121. sizeCache protoimpl.SizeCache
  122. unknownFields protoimpl.UnknownFields
  123. ErrCode int32 `protobuf:"varint,1,opt,name=errCode,proto3" json:"errCode,omitempty"`
  124. ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
  125. Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
  126. Data *UserInfo `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
  127. }
  128. func (x *LoginResponse) Reset() {
  129. *x = LoginResponse{}
  130. if protoimpl.UnsafeEnabled {
  131. mi := &file_rpc_protos_sso_proto_msgTypes[2]
  132. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  133. ms.StoreMessageInfo(mi)
  134. }
  135. }
  136. func (x *LoginResponse) String() string {
  137. return protoimpl.X.MessageStringOf(x)
  138. }
  139. func (*LoginResponse) ProtoMessage() {}
  140. func (x *LoginResponse) ProtoReflect() protoreflect.Message {
  141. mi := &file_rpc_protos_sso_proto_msgTypes[2]
  142. if protoimpl.UnsafeEnabled && x != nil {
  143. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  144. if ms.LoadMessageInfo() == nil {
  145. ms.StoreMessageInfo(mi)
  146. }
  147. return ms
  148. }
  149. return mi.MessageOf(x)
  150. }
  151. // Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
  152. func (*LoginResponse) Descriptor() ([]byte, []int) {
  153. return file_rpc_protos_sso_proto_rawDescGZIP(), []int{2}
  154. }
  155. func (x *LoginResponse) GetErrCode() int32 {
  156. if x != nil {
  157. return x.ErrCode
  158. }
  159. return 0
  160. }
  161. func (x *LoginResponse) GetErrMsg() string {
  162. if x != nil {
  163. return x.ErrMsg
  164. }
  165. return ""
  166. }
  167. func (x *LoginResponse) GetMsg() string {
  168. if x != nil {
  169. return x.Msg
  170. }
  171. return ""
  172. }
  173. func (x *LoginResponse) GetData() *UserInfo {
  174. if x != nil {
  175. return x.Data
  176. }
  177. return nil
  178. }
  179. var File_rpc_protos_sso_proto protoreflect.FileDescriptor
  180. var file_rpc_protos_sso_proto_rawDesc = []byte{
  181. 0x0a, 0x14, 0x72, 0x70, 0x63, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x73, 0x73, 0x6f,
  182. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x72, 0x70, 0x63, 0x22, 0x3a, 0x0a, 0x0c, 0x4c,
  183. 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63,
  184. 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12,
  185. 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  186. 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x52, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x49,
  187. 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20,
  188. 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75,
  189. 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75,
  190. 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
  191. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x76, 0x0a, 0x0d, 0x4c,
  192. 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07,
  193. 0x65, 0x72, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x65,
  194. 0x72, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73, 0x67,
  195. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x10,
  196. 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67,
  197. 0x12, 0x21, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d,
  198. 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x64,
  199. 0x61, 0x74, 0x61, 0x32, 0x3c, 0x0a, 0x08, 0x53, 0x53, 0x4f, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12,
  200. 0x30, 0x0a, 0x05, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x11, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c,
  201. 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x72, 0x70,
  202. 0x63, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
  203. 0x00, 0x42, 0x10, 0x5a, 0x0e, 0x2e, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x73, 0x6f, 0x2f, 0x3b,
  204. 0x73, 0x73, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  205. }
  206. var (
  207. file_rpc_protos_sso_proto_rawDescOnce sync.Once
  208. file_rpc_protos_sso_proto_rawDescData = file_rpc_protos_sso_proto_rawDesc
  209. )
  210. func file_rpc_protos_sso_proto_rawDescGZIP() []byte {
  211. file_rpc_protos_sso_proto_rawDescOnce.Do(func() {
  212. file_rpc_protos_sso_proto_rawDescData = protoimpl.X.CompressGZIP(file_rpc_protos_sso_proto_rawDescData)
  213. })
  214. return file_rpc_protos_sso_proto_rawDescData
  215. }
  216. var file_rpc_protos_sso_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  217. var file_rpc_protos_sso_proto_goTypes = []any{
  218. (*LoginRequest)(nil), // 0: rpc.LoginRequest
  219. (*UserInfo)(nil), // 1: rpc.UserInfo
  220. (*LoginResponse)(nil), // 2: rpc.LoginResponse
  221. }
  222. var file_rpc_protos_sso_proto_depIdxs = []int32{
  223. 1, // 0: rpc.LoginResponse.data:type_name -> rpc.UserInfo
  224. 0, // 1: rpc.SSOLogin.Login:input_type -> rpc.LoginRequest
  225. 2, // 2: rpc.SSOLogin.Login:output_type -> rpc.LoginResponse
  226. 2, // [2:3] is the sub-list for method output_type
  227. 1, // [1:2] is the sub-list for method input_type
  228. 1, // [1:1] is the sub-list for extension type_name
  229. 1, // [1:1] is the sub-list for extension extendee
  230. 0, // [0:1] is the sub-list for field type_name
  231. }
  232. func init() { file_rpc_protos_sso_proto_init() }
  233. func file_rpc_protos_sso_proto_init() {
  234. if File_rpc_protos_sso_proto != nil {
  235. return
  236. }
  237. if !protoimpl.UnsafeEnabled {
  238. file_rpc_protos_sso_proto_msgTypes[0].Exporter = func(v any, i int) any {
  239. switch v := v.(*LoginRequest); i {
  240. case 0:
  241. return &v.state
  242. case 1:
  243. return &v.sizeCache
  244. case 2:
  245. return &v.unknownFields
  246. default:
  247. return nil
  248. }
  249. }
  250. file_rpc_protos_sso_proto_msgTypes[1].Exporter = func(v any, i int) any {
  251. switch v := v.(*UserInfo); i {
  252. case 0:
  253. return &v.state
  254. case 1:
  255. return &v.sizeCache
  256. case 2:
  257. return &v.unknownFields
  258. default:
  259. return nil
  260. }
  261. }
  262. file_rpc_protos_sso_proto_msgTypes[2].Exporter = func(v any, i int) any {
  263. switch v := v.(*LoginResponse); i {
  264. case 0:
  265. return &v.state
  266. case 1:
  267. return &v.sizeCache
  268. case 2:
  269. return &v.unknownFields
  270. default:
  271. return nil
  272. }
  273. }
  274. }
  275. type x struct{}
  276. out := protoimpl.TypeBuilder{
  277. File: protoimpl.DescBuilder{
  278. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  279. RawDescriptor: file_rpc_protos_sso_proto_rawDesc,
  280. NumEnums: 0,
  281. NumMessages: 3,
  282. NumExtensions: 0,
  283. NumServices: 1,
  284. },
  285. GoTypes: file_rpc_protos_sso_proto_goTypes,
  286. DependencyIndexes: file_rpc_protos_sso_proto_depIdxs,
  287. MessageInfos: file_rpc_protos_sso_proto_msgTypes,
  288. }.Build()
  289. File_rpc_protos_sso_proto = out.File
  290. file_rpc_protos_sso_proto_rawDesc = nil
  291. file_rpc_protos_sso_proto_goTypes = nil
  292. file_rpc_protos_sso_proto_depIdxs = nil
  293. }