自动生成 protobuf 代码 (tag: v1.9.0)

This commit is contained in:
sky
2025-09-07 20:38:57 +08:00
parent 07182b7a81
commit 9a503df460
15 changed files with 607 additions and 606 deletions

View File

@@ -1,78 +0,0 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.7
// protoc (unknown)
// source: admin/v1/service.proto
package adminv1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
var File_admin_v1_service_proto protoreflect.FileDescriptor
const file_admin_v1_service_proto_rawDesc = "" +
"\n" +
"\x16admin/v1/service.proto\x12\badmin.v1\x1a\x12admin/v1/sms.proto\x1a\x13admin/v1/user.proto2\xe6\x01\n" +
"\fAdminService\x12J\n" +
"\vListSMSSign\x12\x1c.admin.v1.ListSMSSignRequest\x1a\x1d.admin.v1.ListSMSSignResponse\x12>\n" +
"\aSendSMS\x12\x18.admin.v1.SendSMSRequest\x1a\x19.admin.v1.SendSMSResponse\x12J\n" +
"\vGetUserInfo\x12\x1c.admin.v1.GetUserInfoRequest\x1a\x1d.admin.v1.GetUserInfoResponseB3Z1git.shenxianhe.cn/shenxianhe/sdk/admin/v1;adminv1b\x06proto3"
var file_admin_v1_service_proto_goTypes = []any{
(*ListSMSSignRequest)(nil), // 0: admin.v1.ListSMSSignRequest
(*SendSMSRequest)(nil), // 1: admin.v1.SendSMSRequest
(*GetUserInfoRequest)(nil), // 2: admin.v1.GetUserInfoRequest
(*ListSMSSignResponse)(nil), // 3: admin.v1.ListSMSSignResponse
(*SendSMSResponse)(nil), // 4: admin.v1.SendSMSResponse
(*GetUserInfoResponse)(nil), // 5: admin.v1.GetUserInfoResponse
}
var file_admin_v1_service_proto_depIdxs = []int32{
0, // 0: admin.v1.AdminService.ListSMSSign:input_type -> admin.v1.ListSMSSignRequest
1, // 1: admin.v1.AdminService.SendSMS:input_type -> admin.v1.SendSMSRequest
2, // 2: admin.v1.AdminService.GetUserInfo:input_type -> admin.v1.GetUserInfoRequest
3, // 3: admin.v1.AdminService.ListSMSSign:output_type -> admin.v1.ListSMSSignResponse
4, // 4: admin.v1.AdminService.SendSMS:output_type -> admin.v1.SendSMSResponse
5, // 5: admin.v1.AdminService.GetUserInfo:output_type -> admin.v1.GetUserInfoResponse
3, // [3:6] is the sub-list for method output_type
0, // [0:3] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_admin_v1_service_proto_init() }
func file_admin_v1_service_proto_init() {
if File_admin_v1_service_proto != nil {
return
}
file_admin_v1_sms_proto_init()
file_admin_v1_user_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_admin_v1_service_proto_rawDesc), len(file_admin_v1_service_proto_rawDesc)),
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_admin_v1_service_proto_goTypes,
DependencyIndexes: file_admin_v1_service_proto_depIdxs,
}.Build()
File_admin_v1_service_proto = out.File
file_admin_v1_service_proto_goTypes = nil
file_admin_v1_service_proto_depIdxs = nil
}

View File

@@ -1,72 +0,0 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.7
// protoc (unknown)
// source: anonymous/v1/service.proto
package anonymousv1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
var File_anonymous_v1_service_proto protoreflect.FileDescriptor
const file_anonymous_v1_service_proto_rawDesc = "" +
"\n" +
"\x1aanonymous/v1/service.proto\x12\fanonymous.v1\x1a\x17anonymous/v1/user.proto2\xae\x01\n" +
"\x10AnonymousService\x12=\n" +
"\x04Auth\x12\x19.anonymous.v1.AuthRequest\x1a\x1a.anonymous.v1.AuthResponse\x12[\n" +
"\x0eSendCredential\x12#.anonymous.v1.SendCredentialRequest\x1a$.anonymous.v1.SendCredentialResponseB;Z9git.shenxianhe.cn/shenxianhe/sdk/anonymous/v1;anonymousv1b\x06proto3"
var file_anonymous_v1_service_proto_goTypes = []any{
(*AuthRequest)(nil), // 0: anonymous.v1.AuthRequest
(*SendCredentialRequest)(nil), // 1: anonymous.v1.SendCredentialRequest
(*AuthResponse)(nil), // 2: anonymous.v1.AuthResponse
(*SendCredentialResponse)(nil), // 3: anonymous.v1.SendCredentialResponse
}
var file_anonymous_v1_service_proto_depIdxs = []int32{
0, // 0: anonymous.v1.AnonymousService.Auth:input_type -> anonymous.v1.AuthRequest
1, // 1: anonymous.v1.AnonymousService.SendCredential:input_type -> anonymous.v1.SendCredentialRequest
2, // 2: anonymous.v1.AnonymousService.Auth:output_type -> anonymous.v1.AuthResponse
3, // 3: anonymous.v1.AnonymousService.SendCredential:output_type -> anonymous.v1.SendCredentialResponse
2, // [2:4] is the sub-list for method output_type
0, // [0:2] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_anonymous_v1_service_proto_init() }
func file_anonymous_v1_service_proto_init() {
if File_anonymous_v1_service_proto != nil {
return
}
file_anonymous_v1_user_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_anonymous_v1_service_proto_rawDesc), len(file_anonymous_v1_service_proto_rawDesc)),
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_anonymous_v1_service_proto_goTypes,
DependencyIndexes: file_anonymous_v1_service_proto_depIdxs,
}.Build()
File_anonymous_v1_service_proto = out.File
file_anonymous_v1_service_proto_goTypes = nil
file_anonymous_v1_service_proto_depIdxs = nil
}

View File

@@ -1,6 +1,6 @@
// Code generated by protoc-gen-connect-go. DO NOT EDIT. // Code generated by protoc-gen-connect-go. DO NOT EDIT.
// //
// Source: admin/v1/service.proto // Source: corestack/admin/v1/service.proto
package adminv1connect package adminv1connect
@@ -8,7 +8,7 @@ import (
connect "connectrpc.com/connect" connect "connectrpc.com/connect"
context "context" context "context"
errors "errors" errors "errors"
v1 "git.shenxianhe.cn/shenxianhe/sdk/admin/v1" v1 "git.shenxianhe.cn/shenxianhe/sdk/corestack/admin/v1"
http "net/http" http "net/http"
strings "strings" strings "strings"
) )
@@ -22,7 +22,7 @@ const _ = connect.IsAtLeastVersion1_13_0
const ( const (
// AdminServiceName is the fully-qualified name of the AdminService service. // AdminServiceName is the fully-qualified name of the AdminService service.
AdminServiceName = "admin.v1.AdminService" AdminServiceName = "corestack.admin.v1.AdminService"
) )
// These constants are the fully-qualified names of the RPCs defined in this package. They're // These constants are the fully-qualified names of the RPCs defined in this package. They're
@@ -35,31 +35,31 @@ const (
const ( const (
// AdminServiceListSMSSignProcedure is the fully-qualified name of the AdminService's ListSMSSign // AdminServiceListSMSSignProcedure is the fully-qualified name of the AdminService's ListSMSSign
// RPC. // RPC.
AdminServiceListSMSSignProcedure = "/admin.v1.AdminService/ListSMSSign" AdminServiceListSMSSignProcedure = "/corestack.admin.v1.AdminService/ListSMSSign"
// AdminServiceSendSMSProcedure is the fully-qualified name of the AdminService's SendSMS RPC. // AdminServiceSendSMSProcedure is the fully-qualified name of the AdminService's SendSMS RPC.
AdminServiceSendSMSProcedure = "/admin.v1.AdminService/SendSMS" AdminServiceSendSMSProcedure = "/corestack.admin.v1.AdminService/SendSMS"
// AdminServiceGetUserInfoProcedure is the fully-qualified name of the AdminService's GetUserInfo // AdminServiceGetUserInfoProcedure is the fully-qualified name of the AdminService's GetUserInfo
// RPC. // RPC.
AdminServiceGetUserInfoProcedure = "/admin.v1.AdminService/GetUserInfo" AdminServiceGetUserInfoProcedure = "/corestack.admin.v1.AdminService/GetUserInfo"
) )
// AdminServiceClient is a client for the admin.v1.AdminService service. // AdminServiceClient is a client for the corestack.admin.v1.AdminService service.
type AdminServiceClient interface { type AdminServiceClient interface {
ListSMSSign(context.Context, *connect.Request[v1.ListSMSSignRequest]) (*connect.Response[v1.ListSMSSignResponse], error) ListSMSSign(context.Context, *connect.Request[v1.ListSMSSignRequest]) (*connect.Response[v1.ListSMSSignResponse], error)
SendSMS(context.Context, *connect.Request[v1.SendSMSRequest]) (*connect.Response[v1.SendSMSResponse], error) SendSMS(context.Context, *connect.Request[v1.SendSMSRequest]) (*connect.Response[v1.SendSMSResponse], error)
GetUserInfo(context.Context, *connect.Request[v1.GetUserInfoRequest]) (*connect.Response[v1.GetUserInfoResponse], error) GetUserInfo(context.Context, *connect.Request[v1.GetUserInfoRequest]) (*connect.Response[v1.GetUserInfoResponse], error)
} }
// NewAdminServiceClient constructs a client for the admin.v1.AdminService service. By default, it // NewAdminServiceClient constructs a client for the corestack.admin.v1.AdminService service. By
// uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends // default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses,
// uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or // and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the
// connect.WithGRPCWeb() options. // connect.WithGRPC() or connect.WithGRPCWeb() options.
// //
// The URL supplied here should be the base URL for the Connect or gRPC server (for example, // The URL supplied here should be the base URL for the Connect or gRPC server (for example,
// http://api.acme.com or https://acme.com/grpc). // http://api.acme.com or https://acme.com/grpc).
func NewAdminServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AdminServiceClient { func NewAdminServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AdminServiceClient {
baseURL = strings.TrimRight(baseURL, "/") baseURL = strings.TrimRight(baseURL, "/")
adminServiceMethods := v1.File_admin_v1_service_proto.Services().ByName("AdminService").Methods() adminServiceMethods := v1.File_corestack_admin_v1_service_proto.Services().ByName("AdminService").Methods()
return &adminServiceClient{ return &adminServiceClient{
listSMSSign: connect.NewClient[v1.ListSMSSignRequest, v1.ListSMSSignResponse]( listSMSSign: connect.NewClient[v1.ListSMSSignRequest, v1.ListSMSSignResponse](
httpClient, httpClient,
@@ -89,22 +89,22 @@ type adminServiceClient struct {
getUserInfo *connect.Client[v1.GetUserInfoRequest, v1.GetUserInfoResponse] getUserInfo *connect.Client[v1.GetUserInfoRequest, v1.GetUserInfoResponse]
} }
// ListSMSSign calls admin.v1.AdminService.ListSMSSign. // ListSMSSign calls corestack.admin.v1.AdminService.ListSMSSign.
func (c *adminServiceClient) ListSMSSign(ctx context.Context, req *connect.Request[v1.ListSMSSignRequest]) (*connect.Response[v1.ListSMSSignResponse], error) { func (c *adminServiceClient) ListSMSSign(ctx context.Context, req *connect.Request[v1.ListSMSSignRequest]) (*connect.Response[v1.ListSMSSignResponse], error) {
return c.listSMSSign.CallUnary(ctx, req) return c.listSMSSign.CallUnary(ctx, req)
} }
// SendSMS calls admin.v1.AdminService.SendSMS. // SendSMS calls corestack.admin.v1.AdminService.SendSMS.
func (c *adminServiceClient) SendSMS(ctx context.Context, req *connect.Request[v1.SendSMSRequest]) (*connect.Response[v1.SendSMSResponse], error) { func (c *adminServiceClient) SendSMS(ctx context.Context, req *connect.Request[v1.SendSMSRequest]) (*connect.Response[v1.SendSMSResponse], error) {
return c.sendSMS.CallUnary(ctx, req) return c.sendSMS.CallUnary(ctx, req)
} }
// GetUserInfo calls admin.v1.AdminService.GetUserInfo. // GetUserInfo calls corestack.admin.v1.AdminService.GetUserInfo.
func (c *adminServiceClient) GetUserInfo(ctx context.Context, req *connect.Request[v1.GetUserInfoRequest]) (*connect.Response[v1.GetUserInfoResponse], error) { func (c *adminServiceClient) GetUserInfo(ctx context.Context, req *connect.Request[v1.GetUserInfoRequest]) (*connect.Response[v1.GetUserInfoResponse], error) {
return c.getUserInfo.CallUnary(ctx, req) return c.getUserInfo.CallUnary(ctx, req)
} }
// AdminServiceHandler is an implementation of the admin.v1.AdminService service. // AdminServiceHandler is an implementation of the corestack.admin.v1.AdminService service.
type AdminServiceHandler interface { type AdminServiceHandler interface {
ListSMSSign(context.Context, *connect.Request[v1.ListSMSSignRequest]) (*connect.Response[v1.ListSMSSignResponse], error) ListSMSSign(context.Context, *connect.Request[v1.ListSMSSignRequest]) (*connect.Response[v1.ListSMSSignResponse], error)
SendSMS(context.Context, *connect.Request[v1.SendSMSRequest]) (*connect.Response[v1.SendSMSResponse], error) SendSMS(context.Context, *connect.Request[v1.SendSMSRequest]) (*connect.Response[v1.SendSMSResponse], error)
@@ -117,7 +117,7 @@ type AdminServiceHandler interface {
// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
// and JSON codecs. They also support gzip compression. // and JSON codecs. They also support gzip compression.
func NewAdminServiceHandler(svc AdminServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { func NewAdminServiceHandler(svc AdminServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
adminServiceMethods := v1.File_admin_v1_service_proto.Services().ByName("AdminService").Methods() adminServiceMethods := v1.File_corestack_admin_v1_service_proto.Services().ByName("AdminService").Methods()
adminServiceListSMSSignHandler := connect.NewUnaryHandler( adminServiceListSMSSignHandler := connect.NewUnaryHandler(
AdminServiceListSMSSignProcedure, AdminServiceListSMSSignProcedure,
svc.ListSMSSign, svc.ListSMSSign,
@@ -136,7 +136,7 @@ func NewAdminServiceHandler(svc AdminServiceHandler, opts ...connect.HandlerOpti
connect.WithSchema(adminServiceMethods.ByName("GetUserInfo")), connect.WithSchema(adminServiceMethods.ByName("GetUserInfo")),
connect.WithHandlerOptions(opts...), connect.WithHandlerOptions(opts...),
) )
return "/admin.v1.AdminService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { return "/corestack.admin.v1.AdminService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
switch r.URL.Path { switch r.URL.Path {
case AdminServiceListSMSSignProcedure: case AdminServiceListSMSSignProcedure:
adminServiceListSMSSignHandler.ServeHTTP(w, r) adminServiceListSMSSignHandler.ServeHTTP(w, r)
@@ -154,13 +154,13 @@ func NewAdminServiceHandler(svc AdminServiceHandler, opts ...connect.HandlerOpti
type UnimplementedAdminServiceHandler struct{} type UnimplementedAdminServiceHandler struct{}
func (UnimplementedAdminServiceHandler) ListSMSSign(context.Context, *connect.Request[v1.ListSMSSignRequest]) (*connect.Response[v1.ListSMSSignResponse], error) { func (UnimplementedAdminServiceHandler) ListSMSSign(context.Context, *connect.Request[v1.ListSMSSignRequest]) (*connect.Response[v1.ListSMSSignResponse], error) {
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("admin.v1.AdminService.ListSMSSign is not implemented")) return nil, connect.NewError(connect.CodeUnimplemented, errors.New("corestack.admin.v1.AdminService.ListSMSSign is not implemented"))
} }
func (UnimplementedAdminServiceHandler) SendSMS(context.Context, *connect.Request[v1.SendSMSRequest]) (*connect.Response[v1.SendSMSResponse], error) { func (UnimplementedAdminServiceHandler) SendSMS(context.Context, *connect.Request[v1.SendSMSRequest]) (*connect.Response[v1.SendSMSResponse], error) {
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("admin.v1.AdminService.SendSMS is not implemented")) return nil, connect.NewError(connect.CodeUnimplemented, errors.New("corestack.admin.v1.AdminService.SendSMS is not implemented"))
} }
func (UnimplementedAdminServiceHandler) GetUserInfo(context.Context, *connect.Request[v1.GetUserInfoRequest]) (*connect.Response[v1.GetUserInfoResponse], error) { func (UnimplementedAdminServiceHandler) GetUserInfo(context.Context, *connect.Request[v1.GetUserInfoRequest]) (*connect.Response[v1.GetUserInfoResponse], error) {
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("admin.v1.AdminService.GetUserInfo is not implemented")) return nil, connect.NewError(connect.CodeUnimplemented, errors.New("corestack.admin.v1.AdminService.GetUserInfo is not implemented"))
} }

View File

@@ -0,0 +1,78 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.7
// protoc (unknown)
// source: corestack/admin/v1/service.proto
package adminv1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
var File_corestack_admin_v1_service_proto protoreflect.FileDescriptor
const file_corestack_admin_v1_service_proto_rawDesc = "" +
"\n" +
" corestack/admin/v1/service.proto\x12\x12corestack.admin.v1\x1a\x1ccorestack/admin/v1/sms.proto\x1a\x1dcorestack/admin/v1/user.proto2\xa2\x02\n" +
"\fAdminService\x12^\n" +
"\vListSMSSign\x12&.corestack.admin.v1.ListSMSSignRequest\x1a'.corestack.admin.v1.ListSMSSignResponse\x12R\n" +
"\aSendSMS\x12\".corestack.admin.v1.SendSMSRequest\x1a#.corestack.admin.v1.SendSMSResponse\x12^\n" +
"\vGetUserInfo\x12&.corestack.admin.v1.GetUserInfoRequest\x1a'.corestack.admin.v1.GetUserInfoResponseB=Z;git.shenxianhe.cn/shenxianhe/sdk/corestack/admin/v1;adminv1b\x06proto3"
var file_corestack_admin_v1_service_proto_goTypes = []any{
(*ListSMSSignRequest)(nil), // 0: corestack.admin.v1.ListSMSSignRequest
(*SendSMSRequest)(nil), // 1: corestack.admin.v1.SendSMSRequest
(*GetUserInfoRequest)(nil), // 2: corestack.admin.v1.GetUserInfoRequest
(*ListSMSSignResponse)(nil), // 3: corestack.admin.v1.ListSMSSignResponse
(*SendSMSResponse)(nil), // 4: corestack.admin.v1.SendSMSResponse
(*GetUserInfoResponse)(nil), // 5: corestack.admin.v1.GetUserInfoResponse
}
var file_corestack_admin_v1_service_proto_depIdxs = []int32{
0, // 0: corestack.admin.v1.AdminService.ListSMSSign:input_type -> corestack.admin.v1.ListSMSSignRequest
1, // 1: corestack.admin.v1.AdminService.SendSMS:input_type -> corestack.admin.v1.SendSMSRequest
2, // 2: corestack.admin.v1.AdminService.GetUserInfo:input_type -> corestack.admin.v1.GetUserInfoRequest
3, // 3: corestack.admin.v1.AdminService.ListSMSSign:output_type -> corestack.admin.v1.ListSMSSignResponse
4, // 4: corestack.admin.v1.AdminService.SendSMS:output_type -> corestack.admin.v1.SendSMSResponse
5, // 5: corestack.admin.v1.AdminService.GetUserInfo:output_type -> corestack.admin.v1.GetUserInfoResponse
3, // [3:6] is the sub-list for method output_type
0, // [0:3] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_corestack_admin_v1_service_proto_init() }
func file_corestack_admin_v1_service_proto_init() {
if File_corestack_admin_v1_service_proto != nil {
return
}
file_corestack_admin_v1_sms_proto_init()
file_corestack_admin_v1_user_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_corestack_admin_v1_service_proto_rawDesc), len(file_corestack_admin_v1_service_proto_rawDesc)),
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_corestack_admin_v1_service_proto_goTypes,
DependencyIndexes: file_corestack_admin_v1_service_proto_depIdxs,
}.Build()
File_corestack_admin_v1_service_proto = out.File
file_corestack_admin_v1_service_proto_goTypes = nil
file_corestack_admin_v1_service_proto_depIdxs = nil
}

View File

@@ -2,12 +2,12 @@
// versions: // versions:
// protoc-gen-go v1.36.7 // protoc-gen-go v1.36.7
// protoc (unknown) // protoc (unknown)
// source: admin/v1/sms.proto // source: corestack/admin/v1/sms.proto
package adminv1 package adminv1
import ( import (
v1 "git.shenxianhe.cn/shenxianhe/sdk/enums/v1" v1 "git.shenxianhe.cn/shenxianhe/sdk/corestack/enums/v1"
protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl" protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect" reflect "reflect"
@@ -34,7 +34,7 @@ type SendSMSRequest struct {
func (x *SendSMSRequest) Reset() { func (x *SendSMSRequest) Reset() {
*x = SendSMSRequest{} *x = SendSMSRequest{}
mi := &file_admin_v1_sms_proto_msgTypes[0] mi := &file_corestack_admin_v1_sms_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -46,7 +46,7 @@ func (x *SendSMSRequest) String() string {
func (*SendSMSRequest) ProtoMessage() {} func (*SendSMSRequest) ProtoMessage() {}
func (x *SendSMSRequest) ProtoReflect() protoreflect.Message { func (x *SendSMSRequest) ProtoReflect() protoreflect.Message {
mi := &file_admin_v1_sms_proto_msgTypes[0] mi := &file_corestack_admin_v1_sms_proto_msgTypes[0]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -59,7 +59,7 @@ func (x *SendSMSRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SendSMSRequest.ProtoReflect.Descriptor instead. // Deprecated: Use SendSMSRequest.ProtoReflect.Descriptor instead.
func (*SendSMSRequest) Descriptor() ([]byte, []int) { func (*SendSMSRequest) Descriptor() ([]byte, []int) {
return file_admin_v1_sms_proto_rawDescGZIP(), []int{0} return file_corestack_admin_v1_sms_proto_rawDescGZIP(), []int{0}
} }
func (x *SendSMSRequest) GetPhone() string { func (x *SendSMSRequest) GetPhone() string {
@@ -98,7 +98,7 @@ type SendSMSResponse struct {
func (x *SendSMSResponse) Reset() { func (x *SendSMSResponse) Reset() {
*x = SendSMSResponse{} *x = SendSMSResponse{}
mi := &file_admin_v1_sms_proto_msgTypes[1] mi := &file_corestack_admin_v1_sms_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -110,7 +110,7 @@ func (x *SendSMSResponse) String() string {
func (*SendSMSResponse) ProtoMessage() {} func (*SendSMSResponse) ProtoMessage() {}
func (x *SendSMSResponse) ProtoReflect() protoreflect.Message { func (x *SendSMSResponse) ProtoReflect() protoreflect.Message {
mi := &file_admin_v1_sms_proto_msgTypes[1] mi := &file_corestack_admin_v1_sms_proto_msgTypes[1]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -123,7 +123,7 @@ func (x *SendSMSResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use SendSMSResponse.ProtoReflect.Descriptor instead. // Deprecated: Use SendSMSResponse.ProtoReflect.Descriptor instead.
func (*SendSMSResponse) Descriptor() ([]byte, []int) { func (*SendSMSResponse) Descriptor() ([]byte, []int) {
return file_admin_v1_sms_proto_rawDescGZIP(), []int{1} return file_corestack_admin_v1_sms_proto_rawDescGZIP(), []int{1}
} }
type ListSMSSignRequest struct { type ListSMSSignRequest struct {
@@ -135,7 +135,7 @@ type ListSMSSignRequest struct {
func (x *ListSMSSignRequest) Reset() { func (x *ListSMSSignRequest) Reset() {
*x = ListSMSSignRequest{} *x = ListSMSSignRequest{}
mi := &file_admin_v1_sms_proto_msgTypes[2] mi := &file_corestack_admin_v1_sms_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -147,7 +147,7 @@ func (x *ListSMSSignRequest) String() string {
func (*ListSMSSignRequest) ProtoMessage() {} func (*ListSMSSignRequest) ProtoMessage() {}
func (x *ListSMSSignRequest) ProtoReflect() protoreflect.Message { func (x *ListSMSSignRequest) ProtoReflect() protoreflect.Message {
mi := &file_admin_v1_sms_proto_msgTypes[2] mi := &file_corestack_admin_v1_sms_proto_msgTypes[2]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -160,7 +160,7 @@ func (x *ListSMSSignRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListSMSSignRequest.ProtoReflect.Descriptor instead. // Deprecated: Use ListSMSSignRequest.ProtoReflect.Descriptor instead.
func (*ListSMSSignRequest) Descriptor() ([]byte, []int) { func (*ListSMSSignRequest) Descriptor() ([]byte, []int) {
return file_admin_v1_sms_proto_rawDescGZIP(), []int{2} return file_corestack_admin_v1_sms_proto_rawDescGZIP(), []int{2}
} }
func (x *ListSMSSignRequest) GetOffset() int32 { func (x *ListSMSSignRequest) GetOffset() int32 {
@@ -181,7 +181,7 @@ type SMSSignReason struct {
func (x *SMSSignReason) Reset() { func (x *SMSSignReason) Reset() {
*x = SMSSignReason{} *x = SMSSignReason{}
mi := &file_admin_v1_sms_proto_msgTypes[3] mi := &file_corestack_admin_v1_sms_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -193,7 +193,7 @@ func (x *SMSSignReason) String() string {
func (*SMSSignReason) ProtoMessage() {} func (*SMSSignReason) ProtoMessage() {}
func (x *SMSSignReason) ProtoReflect() protoreflect.Message { func (x *SMSSignReason) ProtoReflect() protoreflect.Message {
mi := &file_admin_v1_sms_proto_msgTypes[3] mi := &file_corestack_admin_v1_sms_proto_msgTypes[3]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -206,7 +206,7 @@ func (x *SMSSignReason) ProtoReflect() protoreflect.Message {
// Deprecated: Use SMSSignReason.ProtoReflect.Descriptor instead. // Deprecated: Use SMSSignReason.ProtoReflect.Descriptor instead.
func (*SMSSignReason) Descriptor() ([]byte, []int) { func (*SMSSignReason) Descriptor() ([]byte, []int) {
return file_admin_v1_sms_proto_rawDescGZIP(), []int{3} return file_corestack_admin_v1_sms_proto_rawDescGZIP(), []int{3}
} }
func (x *SMSSignReason) GetContent() string { func (x *SMSSignReason) GetContent() string {
@@ -234,7 +234,7 @@ type SMSSign struct {
state protoimpl.MessageState `protogen:"open.v1"` state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 签名ID Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 签名ID
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 签名名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 签名名称
Status v1.SMSSignStatus `protobuf:"varint,3,opt,name=status,proto3,enum=enums.v1.SMSSignStatus" json:"status,omitempty"` // 签名状态 Status v1.SMSSignStatus `protobuf:"varint,3,opt,name=status,proto3,enum=corestack.enums.v1.SMSSignStatus" json:"status,omitempty"` // 签名状态
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // 签名类型 Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // 签名类型
Reasons *SMSSignReason `protobuf:"bytes,5,opt,name=reasons,proto3" json:"reasons,omitempty"` // 签名拒绝原因 Reasons *SMSSignReason `protobuf:"bytes,5,opt,name=reasons,proto3" json:"reasons,omitempty"` // 签名拒绝原因
CreatedAt int32 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间 CreatedAt int32 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间
@@ -244,7 +244,7 @@ type SMSSign struct {
func (x *SMSSign) Reset() { func (x *SMSSign) Reset() {
*x = SMSSign{} *x = SMSSign{}
mi := &file_admin_v1_sms_proto_msgTypes[4] mi := &file_corestack_admin_v1_sms_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -256,7 +256,7 @@ func (x *SMSSign) String() string {
func (*SMSSign) ProtoMessage() {} func (*SMSSign) ProtoMessage() {}
func (x *SMSSign) ProtoReflect() protoreflect.Message { func (x *SMSSign) ProtoReflect() protoreflect.Message {
mi := &file_admin_v1_sms_proto_msgTypes[4] mi := &file_corestack_admin_v1_sms_proto_msgTypes[4]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -269,7 +269,7 @@ func (x *SMSSign) ProtoReflect() protoreflect.Message {
// Deprecated: Use SMSSign.ProtoReflect.Descriptor instead. // Deprecated: Use SMSSign.ProtoReflect.Descriptor instead.
func (*SMSSign) Descriptor() ([]byte, []int) { func (*SMSSign) Descriptor() ([]byte, []int) {
return file_admin_v1_sms_proto_rawDescGZIP(), []int{4} return file_corestack_admin_v1_sms_proto_rawDescGZIP(), []int{4}
} }
func (x *SMSSign) GetId() string { func (x *SMSSign) GetId() string {
@@ -324,7 +324,7 @@ type ListSMSSignResponse struct {
func (x *ListSMSSignResponse) Reset() { func (x *ListSMSSignResponse) Reset() {
*x = ListSMSSignResponse{} *x = ListSMSSignResponse{}
mi := &file_admin_v1_sms_proto_msgTypes[5] mi := &file_corestack_admin_v1_sms_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -336,7 +336,7 @@ func (x *ListSMSSignResponse) String() string {
func (*ListSMSSignResponse) ProtoMessage() {} func (*ListSMSSignResponse) ProtoMessage() {}
func (x *ListSMSSignResponse) ProtoReflect() protoreflect.Message { func (x *ListSMSSignResponse) ProtoReflect() protoreflect.Message {
mi := &file_admin_v1_sms_proto_msgTypes[5] mi := &file_corestack_admin_v1_sms_proto_msgTypes[5]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -349,7 +349,7 @@ func (x *ListSMSSignResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListSMSSignResponse.ProtoReflect.Descriptor instead. // Deprecated: Use ListSMSSignResponse.ProtoReflect.Descriptor instead.
func (*ListSMSSignResponse) Descriptor() ([]byte, []int) { func (*ListSMSSignResponse) Descriptor() ([]byte, []int) {
return file_admin_v1_sms_proto_rawDescGZIP(), []int{5} return file_corestack_admin_v1_sms_proto_rawDescGZIP(), []int{5}
} }
func (x *ListSMSSignResponse) GetList() []*SMSSign { func (x *ListSMSSignResponse) GetList() []*SMSSign {
@@ -366,16 +366,16 @@ func (x *ListSMSSignResponse) GetCount() int32 {
return 0 return 0
} }
var File_admin_v1_sms_proto protoreflect.FileDescriptor var File_corestack_admin_v1_sms_proto protoreflect.FileDescriptor
const file_admin_v1_sms_proto_rawDesc = "" + const file_corestack_admin_v1_sms_proto_rawDesc = "" +
"\n" + "\n" +
"\x12admin/v1/sms.proto\x12\badmin.v1\x1a\x12enums/v1/sms.proto\"\x82\x02\n" + "\x1ccorestack/admin/v1/sms.proto\x12\x12corestack.admin.v1\x1a\x1ccorestack/enums/v1/sms.proto\"\x8c\x02\n" +
"\x0eSendSMSRequest\x12\x14\n" + "\x0eSendSMSRequest\x12\x14\n" +
"\x05phone\x18\x01 \x01(\tR\x05phone\x12\x1b\n" + "\x05phone\x18\x01 \x01(\tR\x05phone\x12\x1b\n" +
"\tsign_name\x18\x02 \x01(\tR\bsignName\x12#\n" + "\tsign_name\x18\x02 \x01(\tR\bsignName\x12#\n" +
"\rtemplate_code\x18\x03 \x01(\tR\ftemplateCode\x12U\n" + "\rtemplate_code\x18\x03 \x01(\tR\ftemplateCode\x12_\n" +
"\x0ftemplate_params\x18\x04 \x03(\v2,.admin.v1.SendSMSRequest.TemplateParamsEntryR\x0etemplateParams\x1aA\n" + "\x0ftemplate_params\x18\x04 \x03(\v26.corestack.admin.v1.SendSMSRequest.TemplateParamsEntryR\x0etemplateParams\x1aA\n" +
"\x13TemplateParamsEntry\x12\x10\n" + "\x13TemplateParamsEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x11\n" + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x11\n" +
@@ -386,47 +386,47 @@ const file_admin_v1_sms_proto_rawDesc = "" +
"\acontent\x18\x01 \x01(\tR\acontent\x12\x1f\n" + "\acontent\x18\x01 \x01(\tR\acontent\x12\x1f\n" +
"\vsub_content\x18\x02 \x01(\tR\n" + "\vsub_content\x18\x02 \x01(\tR\n" +
"subContent\x12\x1b\n" + "subContent\x12\x1b\n" +
"\tcreate_at\x18\x03 \x01(\x05R\bcreateAt\"\xc4\x01\n" + "\tcreate_at\x18\x03 \x01(\x05R\bcreateAt\"\xd8\x01\n" +
"\aSMSSign\x12\x0e\n" + "\aSMSSign\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12/\n" + "\x04name\x18\x02 \x01(\tR\x04name\x129\n" +
"\x06status\x18\x03 \x01(\x0e2\x17.enums.v1.SMSSignStatusR\x06status\x12\x12\n" + "\x06status\x18\x03 \x01(\x0e2!.corestack.enums.v1.SMSSignStatusR\x06status\x12\x12\n" +
"\x04type\x18\x04 \x01(\tR\x04type\x121\n" + "\x04type\x18\x04 \x01(\tR\x04type\x12;\n" +
"\areasons\x18\x05 \x01(\v2\x17.admin.v1.SMSSignReasonR\areasons\x12\x1d\n" + "\areasons\x18\x05 \x01(\v2!.corestack.admin.v1.SMSSignReasonR\areasons\x12\x1d\n" +
"\n" + "\n" +
"created_at\x18\x06 \x01(\x05R\tcreatedAt\"R\n" + "created_at\x18\x06 \x01(\x05R\tcreatedAt\"\\\n" +
"\x13ListSMSSignResponse\x12%\n" + "\x13ListSMSSignResponse\x12/\n" +
"\x04list\x18\x01 \x03(\v2\x11.admin.v1.SMSSignR\x04list\x12\x14\n" + "\x04list\x18\x01 \x03(\v2\x1b.corestack.admin.v1.SMSSignR\x04list\x12\x14\n" +
"\x05count\x18\x02 \x01(\x05R\x05countB3Z1git.shenxianhe.cn/shenxianhe/sdk/admin/v1;adminv1b\x06proto3" "\x05count\x18\x02 \x01(\x05R\x05countB=Z;git.shenxianhe.cn/shenxianhe/sdk/corestack/admin/v1;adminv1b\x06proto3"
var ( var (
file_admin_v1_sms_proto_rawDescOnce sync.Once file_corestack_admin_v1_sms_proto_rawDescOnce sync.Once
file_admin_v1_sms_proto_rawDescData []byte file_corestack_admin_v1_sms_proto_rawDescData []byte
) )
func file_admin_v1_sms_proto_rawDescGZIP() []byte { func file_corestack_admin_v1_sms_proto_rawDescGZIP() []byte {
file_admin_v1_sms_proto_rawDescOnce.Do(func() { file_corestack_admin_v1_sms_proto_rawDescOnce.Do(func() {
file_admin_v1_sms_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_admin_v1_sms_proto_rawDesc), len(file_admin_v1_sms_proto_rawDesc))) file_corestack_admin_v1_sms_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_corestack_admin_v1_sms_proto_rawDesc), len(file_corestack_admin_v1_sms_proto_rawDesc)))
}) })
return file_admin_v1_sms_proto_rawDescData return file_corestack_admin_v1_sms_proto_rawDescData
} }
var file_admin_v1_sms_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_corestack_admin_v1_sms_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_admin_v1_sms_proto_goTypes = []any{ var file_corestack_admin_v1_sms_proto_goTypes = []any{
(*SendSMSRequest)(nil), // 0: admin.v1.SendSMSRequest (*SendSMSRequest)(nil), // 0: corestack.admin.v1.SendSMSRequest
(*SendSMSResponse)(nil), // 1: admin.v1.SendSMSResponse (*SendSMSResponse)(nil), // 1: corestack.admin.v1.SendSMSResponse
(*ListSMSSignRequest)(nil), // 2: admin.v1.ListSMSSignRequest (*ListSMSSignRequest)(nil), // 2: corestack.admin.v1.ListSMSSignRequest
(*SMSSignReason)(nil), // 3: admin.v1.SMSSignReason (*SMSSignReason)(nil), // 3: corestack.admin.v1.SMSSignReason
(*SMSSign)(nil), // 4: admin.v1.SMSSign (*SMSSign)(nil), // 4: corestack.admin.v1.SMSSign
(*ListSMSSignResponse)(nil), // 5: admin.v1.ListSMSSignResponse (*ListSMSSignResponse)(nil), // 5: corestack.admin.v1.ListSMSSignResponse
nil, // 6: admin.v1.SendSMSRequest.TemplateParamsEntry nil, // 6: corestack.admin.v1.SendSMSRequest.TemplateParamsEntry
(v1.SMSSignStatus)(0), // 7: enums.v1.SMSSignStatus (v1.SMSSignStatus)(0), // 7: corestack.enums.v1.SMSSignStatus
} }
var file_admin_v1_sms_proto_depIdxs = []int32{ var file_corestack_admin_v1_sms_proto_depIdxs = []int32{
6, // 0: admin.v1.SendSMSRequest.template_params:type_name -> admin.v1.SendSMSRequest.TemplateParamsEntry 6, // 0: corestack.admin.v1.SendSMSRequest.template_params:type_name -> corestack.admin.v1.SendSMSRequest.TemplateParamsEntry
7, // 1: admin.v1.SMSSign.status:type_name -> enums.v1.SMSSignStatus 7, // 1: corestack.admin.v1.SMSSign.status:type_name -> corestack.enums.v1.SMSSignStatus
3, // 2: admin.v1.SMSSign.reasons:type_name -> admin.v1.SMSSignReason 3, // 2: corestack.admin.v1.SMSSign.reasons:type_name -> corestack.admin.v1.SMSSignReason
4, // 3: admin.v1.ListSMSSignResponse.list:type_name -> admin.v1.SMSSign 4, // 3: corestack.admin.v1.ListSMSSignResponse.list:type_name -> corestack.admin.v1.SMSSign
4, // [4:4] is the sub-list for method output_type 4, // [4:4] is the sub-list for method output_type
4, // [4:4] is the sub-list for method input_type 4, // [4:4] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name 4, // [4:4] is the sub-list for extension type_name
@@ -434,26 +434,26 @@ var file_admin_v1_sms_proto_depIdxs = []int32{
0, // [0:4] is the sub-list for field type_name 0, // [0:4] is the sub-list for field type_name
} }
func init() { file_admin_v1_sms_proto_init() } func init() { file_corestack_admin_v1_sms_proto_init() }
func file_admin_v1_sms_proto_init() { func file_corestack_admin_v1_sms_proto_init() {
if File_admin_v1_sms_proto != nil { if File_corestack_admin_v1_sms_proto != nil {
return return
} }
type x struct{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_admin_v1_sms_proto_rawDesc), len(file_admin_v1_sms_proto_rawDesc)), RawDescriptor: unsafe.Slice(unsafe.StringData(file_corestack_admin_v1_sms_proto_rawDesc), len(file_corestack_admin_v1_sms_proto_rawDesc)),
NumEnums: 0, NumEnums: 0,
NumMessages: 7, NumMessages: 7,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },
GoTypes: file_admin_v1_sms_proto_goTypes, GoTypes: file_corestack_admin_v1_sms_proto_goTypes,
DependencyIndexes: file_admin_v1_sms_proto_depIdxs, DependencyIndexes: file_corestack_admin_v1_sms_proto_depIdxs,
MessageInfos: file_admin_v1_sms_proto_msgTypes, MessageInfos: file_corestack_admin_v1_sms_proto_msgTypes,
}.Build() }.Build()
File_admin_v1_sms_proto = out.File File_corestack_admin_v1_sms_proto = out.File
file_admin_v1_sms_proto_goTypes = nil file_corestack_admin_v1_sms_proto_goTypes = nil
file_admin_v1_sms_proto_depIdxs = nil file_corestack_admin_v1_sms_proto_depIdxs = nil
} }

View File

@@ -2,7 +2,7 @@
// versions: // versions:
// protoc-gen-go v1.36.7 // protoc-gen-go v1.36.7
// protoc (unknown) // protoc (unknown)
// source: admin/v1/user.proto // source: corestack/admin/v1/user.proto
package adminv1 package adminv1
@@ -31,7 +31,7 @@ type GetUserInfoRequest struct {
func (x *GetUserInfoRequest) Reset() { func (x *GetUserInfoRequest) Reset() {
*x = GetUserInfoRequest{} *x = GetUserInfoRequest{}
mi := &file_admin_v1_user_proto_msgTypes[0] mi := &file_corestack_admin_v1_user_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -43,7 +43,7 @@ func (x *GetUserInfoRequest) String() string {
func (*GetUserInfoRequest) ProtoMessage() {} func (*GetUserInfoRequest) ProtoMessage() {}
func (x *GetUserInfoRequest) ProtoReflect() protoreflect.Message { func (x *GetUserInfoRequest) ProtoReflect() protoreflect.Message {
mi := &file_admin_v1_user_proto_msgTypes[0] mi := &file_corestack_admin_v1_user_proto_msgTypes[0]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -56,7 +56,7 @@ func (x *GetUserInfoRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetUserInfoRequest.ProtoReflect.Descriptor instead. // Deprecated: Use GetUserInfoRequest.ProtoReflect.Descriptor instead.
func (*GetUserInfoRequest) Descriptor() ([]byte, []int) { func (*GetUserInfoRequest) Descriptor() ([]byte, []int) {
return file_admin_v1_user_proto_rawDescGZIP(), []int{0} return file_corestack_admin_v1_user_proto_rawDescGZIP(), []int{0}
} }
func (x *GetUserInfoRequest) GetUserId() string { func (x *GetUserInfoRequest) GetUserId() string {
@@ -88,7 +88,7 @@ type GetUserInfoResponse struct {
func (x *GetUserInfoResponse) Reset() { func (x *GetUserInfoResponse) Reset() {
*x = GetUserInfoResponse{} *x = GetUserInfoResponse{}
mi := &file_admin_v1_user_proto_msgTypes[1] mi := &file_corestack_admin_v1_user_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -100,7 +100,7 @@ func (x *GetUserInfoResponse) String() string {
func (*GetUserInfoResponse) ProtoMessage() {} func (*GetUserInfoResponse) ProtoMessage() {}
func (x *GetUserInfoResponse) ProtoReflect() protoreflect.Message { func (x *GetUserInfoResponse) ProtoReflect() protoreflect.Message {
mi := &file_admin_v1_user_proto_msgTypes[1] mi := &file_corestack_admin_v1_user_proto_msgTypes[1]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -113,7 +113,7 @@ func (x *GetUserInfoResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetUserInfoResponse.ProtoReflect.Descriptor instead. // Deprecated: Use GetUserInfoResponse.ProtoReflect.Descriptor instead.
func (*GetUserInfoResponse) Descriptor() ([]byte, []int) { func (*GetUserInfoResponse) Descriptor() ([]byte, []int) {
return file_admin_v1_user_proto_rawDescGZIP(), []int{1} return file_corestack_admin_v1_user_proto_rawDescGZIP(), []int{1}
} }
func (x *GetUserInfoResponse) GetId() string { func (x *GetUserInfoResponse) GetId() string {
@@ -165,11 +165,11 @@ func (x *GetUserInfoResponse) GetEmail() string {
return "" return ""
} }
var File_admin_v1_user_proto protoreflect.FileDescriptor var File_corestack_admin_v1_user_proto protoreflect.FileDescriptor
const file_admin_v1_user_proto_rawDesc = "" + const file_corestack_admin_v1_user_proto_rawDesc = "" +
"\n" + "\n" +
"\x13admin/v1/user.proto\x12\badmin.v1\"V\n" + "\x1dcorestack/admin/v1/user.proto\x12\x12corestack.admin.v1\"V\n" +
"\x12GetUserInfoRequest\x12\x17\n" + "\x12GetUserInfoRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\tR\x06userId\x12'\n" + "\auser_id\x18\x01 \x01(\tR\x06userId\x12'\n" +
"\x0finvitation_code\x18\x02 \x01(\tR\x0einvitationCode\"\xc8\x01\n" + "\x0finvitation_code\x18\x02 \x01(\tR\x0einvitationCode\"\xc8\x01\n" +
@@ -180,26 +180,26 @@ const file_admin_v1_user_proto_rawDesc = "" +
"\vdescription\x18\x04 \x01(\tR\vdescription\x12\x12\n" + "\vdescription\x18\x04 \x01(\tR\vdescription\x12\x12\n" +
"\x04name\x18\x05 \x01(\tR\x04name\x12\x14\n" + "\x04name\x18\x05 \x01(\tR\x04name\x12\x14\n" +
"\x05phone\x18\x06 \x01(\tR\x05phone\x12\x14\n" + "\x05phone\x18\x06 \x01(\tR\x05phone\x12\x14\n" +
"\x05email\x18\a \x01(\tR\x05emailB3Z1git.shenxianhe.cn/shenxianhe/sdk/admin/v1;adminv1b\x06proto3" "\x05email\x18\a \x01(\tR\x05emailB=Z;git.shenxianhe.cn/shenxianhe/sdk/corestack/admin/v1;adminv1b\x06proto3"
var ( var (
file_admin_v1_user_proto_rawDescOnce sync.Once file_corestack_admin_v1_user_proto_rawDescOnce sync.Once
file_admin_v1_user_proto_rawDescData []byte file_corestack_admin_v1_user_proto_rawDescData []byte
) )
func file_admin_v1_user_proto_rawDescGZIP() []byte { func file_corestack_admin_v1_user_proto_rawDescGZIP() []byte {
file_admin_v1_user_proto_rawDescOnce.Do(func() { file_corestack_admin_v1_user_proto_rawDescOnce.Do(func() {
file_admin_v1_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_admin_v1_user_proto_rawDesc), len(file_admin_v1_user_proto_rawDesc))) file_corestack_admin_v1_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_corestack_admin_v1_user_proto_rawDesc), len(file_corestack_admin_v1_user_proto_rawDesc)))
}) })
return file_admin_v1_user_proto_rawDescData return file_corestack_admin_v1_user_proto_rawDescData
} }
var file_admin_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_corestack_admin_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_admin_v1_user_proto_goTypes = []any{ var file_corestack_admin_v1_user_proto_goTypes = []any{
(*GetUserInfoRequest)(nil), // 0: admin.v1.GetUserInfoRequest (*GetUserInfoRequest)(nil), // 0: corestack.admin.v1.GetUserInfoRequest
(*GetUserInfoResponse)(nil), // 1: admin.v1.GetUserInfoResponse (*GetUserInfoResponse)(nil), // 1: corestack.admin.v1.GetUserInfoResponse
} }
var file_admin_v1_user_proto_depIdxs = []int32{ var file_corestack_admin_v1_user_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type 0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension type_name
@@ -207,26 +207,26 @@ var file_admin_v1_user_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for field type_name 0, // [0:0] is the sub-list for field type_name
} }
func init() { file_admin_v1_user_proto_init() } func init() { file_corestack_admin_v1_user_proto_init() }
func file_admin_v1_user_proto_init() { func file_corestack_admin_v1_user_proto_init() {
if File_admin_v1_user_proto != nil { if File_corestack_admin_v1_user_proto != nil {
return return
} }
type x struct{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_admin_v1_user_proto_rawDesc), len(file_admin_v1_user_proto_rawDesc)), RawDescriptor: unsafe.Slice(unsafe.StringData(file_corestack_admin_v1_user_proto_rawDesc), len(file_corestack_admin_v1_user_proto_rawDesc)),
NumEnums: 0, NumEnums: 0,
NumMessages: 2, NumMessages: 2,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },
GoTypes: file_admin_v1_user_proto_goTypes, GoTypes: file_corestack_admin_v1_user_proto_goTypes,
DependencyIndexes: file_admin_v1_user_proto_depIdxs, DependencyIndexes: file_corestack_admin_v1_user_proto_depIdxs,
MessageInfos: file_admin_v1_user_proto_msgTypes, MessageInfos: file_corestack_admin_v1_user_proto_msgTypes,
}.Build() }.Build()
File_admin_v1_user_proto = out.File File_corestack_admin_v1_user_proto = out.File
file_admin_v1_user_proto_goTypes = nil file_corestack_admin_v1_user_proto_goTypes = nil
file_admin_v1_user_proto_depIdxs = nil file_corestack_admin_v1_user_proto_depIdxs = nil
} }

View File

@@ -1,6 +1,6 @@
// Code generated by protoc-gen-connect-go. DO NOT EDIT. // Code generated by protoc-gen-connect-go. DO NOT EDIT.
// //
// Source: anonymous/v1/service.proto // Source: corestack/anonymous/v1/service.proto
package anonymousv1connect package anonymousv1connect
@@ -8,7 +8,7 @@ import (
connect "connectrpc.com/connect" connect "connectrpc.com/connect"
context "context" context "context"
errors "errors" errors "errors"
v1 "git.shenxianhe.cn/shenxianhe/sdk/anonymous/v1" v1 "git.shenxianhe.cn/shenxianhe/sdk/corestack/anonymous/v1"
http "net/http" http "net/http"
strings "strings" strings "strings"
) )
@@ -22,7 +22,7 @@ const _ = connect.IsAtLeastVersion1_13_0
const ( const (
// AnonymousServiceName is the fully-qualified name of the AnonymousService service. // AnonymousServiceName is the fully-qualified name of the AnonymousService service.
AnonymousServiceName = "anonymous.v1.AnonymousService" AnonymousServiceName = "corestack.anonymous.v1.AnonymousService"
) )
// These constants are the fully-qualified names of the RPCs defined in this package. They're // These constants are the fully-qualified names of the RPCs defined in this package. They're
@@ -34,28 +34,28 @@ const (
// period. // period.
const ( const (
// AnonymousServiceAuthProcedure is the fully-qualified name of the AnonymousService's Auth RPC. // AnonymousServiceAuthProcedure is the fully-qualified name of the AnonymousService's Auth RPC.
AnonymousServiceAuthProcedure = "/anonymous.v1.AnonymousService/Auth" AnonymousServiceAuthProcedure = "/corestack.anonymous.v1.AnonymousService/Auth"
// AnonymousServiceSendCredentialProcedure is the fully-qualified name of the AnonymousService's // AnonymousServiceSendCredentialProcedure is the fully-qualified name of the AnonymousService's
// SendCredential RPC. // SendCredential RPC.
AnonymousServiceSendCredentialProcedure = "/anonymous.v1.AnonymousService/SendCredential" AnonymousServiceSendCredentialProcedure = "/corestack.anonymous.v1.AnonymousService/SendCredential"
) )
// AnonymousServiceClient is a client for the anonymous.v1.AnonymousService service. // AnonymousServiceClient is a client for the corestack.anonymous.v1.AnonymousService service.
type AnonymousServiceClient interface { type AnonymousServiceClient interface {
Auth(context.Context, *connect.Request[v1.AuthRequest]) (*connect.Response[v1.AuthResponse], error) Auth(context.Context, *connect.Request[v1.AuthRequest]) (*connect.Response[v1.AuthResponse], error)
SendCredential(context.Context, *connect.Request[v1.SendCredentialRequest]) (*connect.Response[v1.SendCredentialResponse], error) SendCredential(context.Context, *connect.Request[v1.SendCredentialRequest]) (*connect.Response[v1.SendCredentialResponse], error)
} }
// NewAnonymousServiceClient constructs a client for the anonymous.v1.AnonymousService service. By // NewAnonymousServiceClient constructs a client for the corestack.anonymous.v1.AnonymousService
// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, // service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for
// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the // gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply
// connect.WithGRPC() or connect.WithGRPCWeb() options. // the connect.WithGRPC() or connect.WithGRPCWeb() options.
// //
// The URL supplied here should be the base URL for the Connect or gRPC server (for example, // The URL supplied here should be the base URL for the Connect or gRPC server (for example,
// http://api.acme.com or https://acme.com/grpc). // http://api.acme.com or https://acme.com/grpc).
func NewAnonymousServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AnonymousServiceClient { func NewAnonymousServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AnonymousServiceClient {
baseURL = strings.TrimRight(baseURL, "/") baseURL = strings.TrimRight(baseURL, "/")
anonymousServiceMethods := v1.File_anonymous_v1_service_proto.Services().ByName("AnonymousService").Methods() anonymousServiceMethods := v1.File_corestack_anonymous_v1_service_proto.Services().ByName("AnonymousService").Methods()
return &anonymousServiceClient{ return &anonymousServiceClient{
auth: connect.NewClient[v1.AuthRequest, v1.AuthResponse]( auth: connect.NewClient[v1.AuthRequest, v1.AuthResponse](
httpClient, httpClient,
@@ -78,17 +78,18 @@ type anonymousServiceClient struct {
sendCredential *connect.Client[v1.SendCredentialRequest, v1.SendCredentialResponse] sendCredential *connect.Client[v1.SendCredentialRequest, v1.SendCredentialResponse]
} }
// Auth calls anonymous.v1.AnonymousService.Auth. // Auth calls corestack.anonymous.v1.AnonymousService.Auth.
func (c *anonymousServiceClient) Auth(ctx context.Context, req *connect.Request[v1.AuthRequest]) (*connect.Response[v1.AuthResponse], error) { func (c *anonymousServiceClient) Auth(ctx context.Context, req *connect.Request[v1.AuthRequest]) (*connect.Response[v1.AuthResponse], error) {
return c.auth.CallUnary(ctx, req) return c.auth.CallUnary(ctx, req)
} }
// SendCredential calls anonymous.v1.AnonymousService.SendCredential. // SendCredential calls corestack.anonymous.v1.AnonymousService.SendCredential.
func (c *anonymousServiceClient) SendCredential(ctx context.Context, req *connect.Request[v1.SendCredentialRequest]) (*connect.Response[v1.SendCredentialResponse], error) { func (c *anonymousServiceClient) SendCredential(ctx context.Context, req *connect.Request[v1.SendCredentialRequest]) (*connect.Response[v1.SendCredentialResponse], error) {
return c.sendCredential.CallUnary(ctx, req) return c.sendCredential.CallUnary(ctx, req)
} }
// AnonymousServiceHandler is an implementation of the anonymous.v1.AnonymousService service. // AnonymousServiceHandler is an implementation of the corestack.anonymous.v1.AnonymousService
// service.
type AnonymousServiceHandler interface { type AnonymousServiceHandler interface {
Auth(context.Context, *connect.Request[v1.AuthRequest]) (*connect.Response[v1.AuthResponse], error) Auth(context.Context, *connect.Request[v1.AuthRequest]) (*connect.Response[v1.AuthResponse], error)
SendCredential(context.Context, *connect.Request[v1.SendCredentialRequest]) (*connect.Response[v1.SendCredentialResponse], error) SendCredential(context.Context, *connect.Request[v1.SendCredentialRequest]) (*connect.Response[v1.SendCredentialResponse], error)
@@ -100,7 +101,7 @@ type AnonymousServiceHandler interface {
// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
// and JSON codecs. They also support gzip compression. // and JSON codecs. They also support gzip compression.
func NewAnonymousServiceHandler(svc AnonymousServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { func NewAnonymousServiceHandler(svc AnonymousServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
anonymousServiceMethods := v1.File_anonymous_v1_service_proto.Services().ByName("AnonymousService").Methods() anonymousServiceMethods := v1.File_corestack_anonymous_v1_service_proto.Services().ByName("AnonymousService").Methods()
anonymousServiceAuthHandler := connect.NewUnaryHandler( anonymousServiceAuthHandler := connect.NewUnaryHandler(
AnonymousServiceAuthProcedure, AnonymousServiceAuthProcedure,
svc.Auth, svc.Auth,
@@ -113,7 +114,7 @@ func NewAnonymousServiceHandler(svc AnonymousServiceHandler, opts ...connect.Han
connect.WithSchema(anonymousServiceMethods.ByName("SendCredential")), connect.WithSchema(anonymousServiceMethods.ByName("SendCredential")),
connect.WithHandlerOptions(opts...), connect.WithHandlerOptions(opts...),
) )
return "/anonymous.v1.AnonymousService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { return "/corestack.anonymous.v1.AnonymousService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
switch r.URL.Path { switch r.URL.Path {
case AnonymousServiceAuthProcedure: case AnonymousServiceAuthProcedure:
anonymousServiceAuthHandler.ServeHTTP(w, r) anonymousServiceAuthHandler.ServeHTTP(w, r)
@@ -129,9 +130,9 @@ func NewAnonymousServiceHandler(svc AnonymousServiceHandler, opts ...connect.Han
type UnimplementedAnonymousServiceHandler struct{} type UnimplementedAnonymousServiceHandler struct{}
func (UnimplementedAnonymousServiceHandler) Auth(context.Context, *connect.Request[v1.AuthRequest]) (*connect.Response[v1.AuthResponse], error) { func (UnimplementedAnonymousServiceHandler) Auth(context.Context, *connect.Request[v1.AuthRequest]) (*connect.Response[v1.AuthResponse], error) {
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("anonymous.v1.AnonymousService.Auth is not implemented")) return nil, connect.NewError(connect.CodeUnimplemented, errors.New("corestack.anonymous.v1.AnonymousService.Auth is not implemented"))
} }
func (UnimplementedAnonymousServiceHandler) SendCredential(context.Context, *connect.Request[v1.SendCredentialRequest]) (*connect.Response[v1.SendCredentialResponse], error) { func (UnimplementedAnonymousServiceHandler) SendCredential(context.Context, *connect.Request[v1.SendCredentialRequest]) (*connect.Response[v1.SendCredentialResponse], error) {
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("anonymous.v1.AnonymousService.SendCredential is not implemented")) return nil, connect.NewError(connect.CodeUnimplemented, errors.New("corestack.anonymous.v1.AnonymousService.SendCredential is not implemented"))
} }

View File

@@ -0,0 +1,72 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.7
// protoc (unknown)
// source: corestack/anonymous/v1/service.proto
package anonymousv1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
var File_corestack_anonymous_v1_service_proto protoreflect.FileDescriptor
const file_corestack_anonymous_v1_service_proto_rawDesc = "" +
"\n" +
"$corestack/anonymous/v1/service.proto\x12\x16corestack.anonymous.v1\x1a!corestack/anonymous/v1/user.proto2\xd6\x01\n" +
"\x10AnonymousService\x12Q\n" +
"\x04Auth\x12#.corestack.anonymous.v1.AuthRequest\x1a$.corestack.anonymous.v1.AuthResponse\x12o\n" +
"\x0eSendCredential\x12-.corestack.anonymous.v1.SendCredentialRequest\x1a..corestack.anonymous.v1.SendCredentialResponseBEZCgit.shenxianhe.cn/shenxianhe/sdk/corestack/anonymous/v1;anonymousv1b\x06proto3"
var file_corestack_anonymous_v1_service_proto_goTypes = []any{
(*AuthRequest)(nil), // 0: corestack.anonymous.v1.AuthRequest
(*SendCredentialRequest)(nil), // 1: corestack.anonymous.v1.SendCredentialRequest
(*AuthResponse)(nil), // 2: corestack.anonymous.v1.AuthResponse
(*SendCredentialResponse)(nil), // 3: corestack.anonymous.v1.SendCredentialResponse
}
var file_corestack_anonymous_v1_service_proto_depIdxs = []int32{
0, // 0: corestack.anonymous.v1.AnonymousService.Auth:input_type -> corestack.anonymous.v1.AuthRequest
1, // 1: corestack.anonymous.v1.AnonymousService.SendCredential:input_type -> corestack.anonymous.v1.SendCredentialRequest
2, // 2: corestack.anonymous.v1.AnonymousService.Auth:output_type -> corestack.anonymous.v1.AuthResponse
3, // 3: corestack.anonymous.v1.AnonymousService.SendCredential:output_type -> corestack.anonymous.v1.SendCredentialResponse
2, // [2:4] is the sub-list for method output_type
0, // [0:2] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_corestack_anonymous_v1_service_proto_init() }
func file_corestack_anonymous_v1_service_proto_init() {
if File_corestack_anonymous_v1_service_proto != nil {
return
}
file_corestack_anonymous_v1_user_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_corestack_anonymous_v1_service_proto_rawDesc), len(file_corestack_anonymous_v1_service_proto_rawDesc)),
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_corestack_anonymous_v1_service_proto_goTypes,
DependencyIndexes: file_corestack_anonymous_v1_service_proto_depIdxs,
}.Build()
File_corestack_anonymous_v1_service_proto = out.File
file_corestack_anonymous_v1_service_proto_goTypes = nil
file_corestack_anonymous_v1_service_proto_depIdxs = nil
}

View File

@@ -2,12 +2,12 @@
// versions: // versions:
// protoc-gen-go v1.36.7 // protoc-gen-go v1.36.7
// protoc (unknown) // protoc (unknown)
// source: anonymous/v1/user.proto // source: corestack/anonymous/v1/user.proto
package anonymousv1 package anonymousv1
import ( import (
v1 "git.shenxianhe.cn/shenxianhe/sdk/enums/v1" v1 "git.shenxianhe.cn/shenxianhe/sdk/corestack/enums/v1"
protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl" protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect" reflect "reflect"
@@ -24,7 +24,7 @@ const (
type AuthRequest struct { type AuthRequest struct {
state protoimpl.MessageState `protogen:"open.v1"` state protoimpl.MessageState `protogen:"open.v1"`
AuthType v1.AuthenticationType `protobuf:"varint,1,opt,name=auth_type,json=authType,proto3,enum=enums.v1.AuthenticationType" json:"auth_type,omitempty"` // 认证类型 AuthType v1.AuthenticationType `protobuf:"varint,1,opt,name=auth_type,json=authType,proto3,enum=corestack.enums.v1.AuthenticationType" json:"auth_type,omitempty"` // 认证类型
AuthId string `protobuf:"bytes,2,opt,name=auth_id,json=authId,proto3" json:"auth_id,omitempty"` // 认证ID根据auth_type存储不同的账号信息 AuthId string `protobuf:"bytes,2,opt,name=auth_id,json=authId,proto3" json:"auth_id,omitempty"` // 认证ID根据auth_type存储不同的账号信息
Credential string `protobuf:"bytes,3,opt,name=credential,proto3" json:"credential,omitempty"` // 凭证,可以是验证码或密码 Credential string `protobuf:"bytes,3,opt,name=credential,proto3" json:"credential,omitempty"` // 凭证,可以是验证码或密码
InvitationCode string `protobuf:"bytes,4,opt,name=invitation_code,json=invitationCode,proto3" json:"invitation_code,omitempty"` // 邀请码 InvitationCode string `protobuf:"bytes,4,opt,name=invitation_code,json=invitationCode,proto3" json:"invitation_code,omitempty"` // 邀请码
@@ -34,7 +34,7 @@ type AuthRequest struct {
func (x *AuthRequest) Reset() { func (x *AuthRequest) Reset() {
*x = AuthRequest{} *x = AuthRequest{}
mi := &file_anonymous_v1_user_proto_msgTypes[0] mi := &file_corestack_anonymous_v1_user_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -46,7 +46,7 @@ func (x *AuthRequest) String() string {
func (*AuthRequest) ProtoMessage() {} func (*AuthRequest) ProtoMessage() {}
func (x *AuthRequest) ProtoReflect() protoreflect.Message { func (x *AuthRequest) ProtoReflect() protoreflect.Message {
mi := &file_anonymous_v1_user_proto_msgTypes[0] mi := &file_corestack_anonymous_v1_user_proto_msgTypes[0]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -59,7 +59,7 @@ func (x *AuthRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use AuthRequest.ProtoReflect.Descriptor instead. // Deprecated: Use AuthRequest.ProtoReflect.Descriptor instead.
func (*AuthRequest) Descriptor() ([]byte, []int) { func (*AuthRequest) Descriptor() ([]byte, []int) {
return file_anonymous_v1_user_proto_rawDescGZIP(), []int{0} return file_corestack_anonymous_v1_user_proto_rawDescGZIP(), []int{0}
} }
func (x *AuthRequest) GetAuthType() v1.AuthenticationType { func (x *AuthRequest) GetAuthType() v1.AuthenticationType {
@@ -99,7 +99,7 @@ type AuthResponse struct {
func (x *AuthResponse) Reset() { func (x *AuthResponse) Reset() {
*x = AuthResponse{} *x = AuthResponse{}
mi := &file_anonymous_v1_user_proto_msgTypes[1] mi := &file_corestack_anonymous_v1_user_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -111,7 +111,7 @@ func (x *AuthResponse) String() string {
func (*AuthResponse) ProtoMessage() {} func (*AuthResponse) ProtoMessage() {}
func (x *AuthResponse) ProtoReflect() protoreflect.Message { func (x *AuthResponse) ProtoReflect() protoreflect.Message {
mi := &file_anonymous_v1_user_proto_msgTypes[1] mi := &file_corestack_anonymous_v1_user_proto_msgTypes[1]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -124,7 +124,7 @@ func (x *AuthResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use AuthResponse.ProtoReflect.Descriptor instead. // Deprecated: Use AuthResponse.ProtoReflect.Descriptor instead.
func (*AuthResponse) Descriptor() ([]byte, []int) { func (*AuthResponse) Descriptor() ([]byte, []int) {
return file_anonymous_v1_user_proto_rawDescGZIP(), []int{1} return file_corestack_anonymous_v1_user_proto_rawDescGZIP(), []int{1}
} }
func (x *AuthResponse) GetToken() string { func (x *AuthResponse) GetToken() string {
@@ -136,7 +136,7 @@ func (x *AuthResponse) GetToken() string {
type SendCredentialRequest struct { type SendCredentialRequest struct {
state protoimpl.MessageState `protogen:"open.v1"` state protoimpl.MessageState `protogen:"open.v1"`
AuthType v1.AuthenticationType `protobuf:"varint,1,opt,name=auth_type,json=authType,proto3,enum=enums.v1.AuthenticationType" json:"auth_type,omitempty"` // 认证类型 AuthType v1.AuthenticationType `protobuf:"varint,1,opt,name=auth_type,json=authType,proto3,enum=corestack.enums.v1.AuthenticationType" json:"auth_type,omitempty"` // 认证类型
AuthId string `protobuf:"bytes,2,opt,name=auth_id,json=authId,proto3" json:"auth_id,omitempty"` // 认证ID根据auth_type存储不同的账号信息 AuthId string `protobuf:"bytes,2,opt,name=auth_id,json=authId,proto3" json:"auth_id,omitempty"` // 认证ID根据auth_type存储不同的账号信息
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@@ -144,7 +144,7 @@ type SendCredentialRequest struct {
func (x *SendCredentialRequest) Reset() { func (x *SendCredentialRequest) Reset() {
*x = SendCredentialRequest{} *x = SendCredentialRequest{}
mi := &file_anonymous_v1_user_proto_msgTypes[2] mi := &file_corestack_anonymous_v1_user_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -156,7 +156,7 @@ func (x *SendCredentialRequest) String() string {
func (*SendCredentialRequest) ProtoMessage() {} func (*SendCredentialRequest) ProtoMessage() {}
func (x *SendCredentialRequest) ProtoReflect() protoreflect.Message { func (x *SendCredentialRequest) ProtoReflect() protoreflect.Message {
mi := &file_anonymous_v1_user_proto_msgTypes[2] mi := &file_corestack_anonymous_v1_user_proto_msgTypes[2]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -169,7 +169,7 @@ func (x *SendCredentialRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SendCredentialRequest.ProtoReflect.Descriptor instead. // Deprecated: Use SendCredentialRequest.ProtoReflect.Descriptor instead.
func (*SendCredentialRequest) Descriptor() ([]byte, []int) { func (*SendCredentialRequest) Descriptor() ([]byte, []int) {
return file_anonymous_v1_user_proto_rawDescGZIP(), []int{2} return file_corestack_anonymous_v1_user_proto_rawDescGZIP(), []int{2}
} }
func (x *SendCredentialRequest) GetAuthType() v1.AuthenticationType { func (x *SendCredentialRequest) GetAuthType() v1.AuthenticationType {
@@ -194,7 +194,7 @@ type SendCredentialResponse struct {
func (x *SendCredentialResponse) Reset() { func (x *SendCredentialResponse) Reset() {
*x = SendCredentialResponse{} *x = SendCredentialResponse{}
mi := &file_anonymous_v1_user_proto_msgTypes[3] mi := &file_corestack_anonymous_v1_user_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -206,7 +206,7 @@ func (x *SendCredentialResponse) String() string {
func (*SendCredentialResponse) ProtoMessage() {} func (*SendCredentialResponse) ProtoMessage() {}
func (x *SendCredentialResponse) ProtoReflect() protoreflect.Message { func (x *SendCredentialResponse) ProtoReflect() protoreflect.Message {
mi := &file_anonymous_v1_user_proto_msgTypes[3] mi := &file_corestack_anonymous_v1_user_proto_msgTypes[3]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -219,51 +219,51 @@ func (x *SendCredentialResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use SendCredentialResponse.ProtoReflect.Descriptor instead. // Deprecated: Use SendCredentialResponse.ProtoReflect.Descriptor instead.
func (*SendCredentialResponse) Descriptor() ([]byte, []int) { func (*SendCredentialResponse) Descriptor() ([]byte, []int) {
return file_anonymous_v1_user_proto_rawDescGZIP(), []int{3} return file_corestack_anonymous_v1_user_proto_rawDescGZIP(), []int{3}
} }
var File_anonymous_v1_user_proto protoreflect.FileDescriptor var File_corestack_anonymous_v1_user_proto protoreflect.FileDescriptor
const file_anonymous_v1_user_proto_rawDesc = "" + const file_corestack_anonymous_v1_user_proto_rawDesc = "" +
"\n" + "\n" +
"\x17anonymous/v1/user.proto\x12\fanonymous.v1\x1a\x13enums/v1/user.proto\"\xaa\x01\n" + "!corestack/anonymous/v1/user.proto\x12\x16corestack.anonymous.v1\x1a\x1dcorestack/enums/v1/user.proto\"\xb4\x01\n" +
"\vAuthRequest\x129\n" + "\vAuthRequest\x12C\n" +
"\tauth_type\x18\x01 \x01(\x0e2\x1c.enums.v1.AuthenticationTypeR\bauthType\x12\x17\n" + "\tauth_type\x18\x01 \x01(\x0e2&.corestack.enums.v1.AuthenticationTypeR\bauthType\x12\x17\n" +
"\aauth_id\x18\x02 \x01(\tR\x06authId\x12\x1e\n" + "\aauth_id\x18\x02 \x01(\tR\x06authId\x12\x1e\n" +
"\n" + "\n" +
"credential\x18\x03 \x01(\tR\n" + "credential\x18\x03 \x01(\tR\n" +
"credential\x12'\n" + "credential\x12'\n" +
"\x0finvitation_code\x18\x04 \x01(\tR\x0einvitationCode\"$\n" + "\x0finvitation_code\x18\x04 \x01(\tR\x0einvitationCode\"$\n" +
"\fAuthResponse\x12\x14\n" + "\fAuthResponse\x12\x14\n" +
"\x05token\x18\x01 \x01(\tR\x05token\"k\n" + "\x05token\x18\x01 \x01(\tR\x05token\"u\n" +
"\x15SendCredentialRequest\x129\n" + "\x15SendCredentialRequest\x12C\n" +
"\tauth_type\x18\x01 \x01(\x0e2\x1c.enums.v1.AuthenticationTypeR\bauthType\x12\x17\n" + "\tauth_type\x18\x01 \x01(\x0e2&.corestack.enums.v1.AuthenticationTypeR\bauthType\x12\x17\n" +
"\aauth_id\x18\x02 \x01(\tR\x06authId\"\x18\n" + "\aauth_id\x18\x02 \x01(\tR\x06authId\"\x18\n" +
"\x16SendCredentialResponseB;Z9git.shenxianhe.cn/shenxianhe/sdk/anonymous/v1;anonymousv1b\x06proto3" "\x16SendCredentialResponseBEZCgit.shenxianhe.cn/shenxianhe/sdk/corestack/anonymous/v1;anonymousv1b\x06proto3"
var ( var (
file_anonymous_v1_user_proto_rawDescOnce sync.Once file_corestack_anonymous_v1_user_proto_rawDescOnce sync.Once
file_anonymous_v1_user_proto_rawDescData []byte file_corestack_anonymous_v1_user_proto_rawDescData []byte
) )
func file_anonymous_v1_user_proto_rawDescGZIP() []byte { func file_corestack_anonymous_v1_user_proto_rawDescGZIP() []byte {
file_anonymous_v1_user_proto_rawDescOnce.Do(func() { file_corestack_anonymous_v1_user_proto_rawDescOnce.Do(func() {
file_anonymous_v1_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_anonymous_v1_user_proto_rawDesc), len(file_anonymous_v1_user_proto_rawDesc))) file_corestack_anonymous_v1_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_corestack_anonymous_v1_user_proto_rawDesc), len(file_corestack_anonymous_v1_user_proto_rawDesc)))
}) })
return file_anonymous_v1_user_proto_rawDescData return file_corestack_anonymous_v1_user_proto_rawDescData
} }
var file_anonymous_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_corestack_anonymous_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_anonymous_v1_user_proto_goTypes = []any{ var file_corestack_anonymous_v1_user_proto_goTypes = []any{
(*AuthRequest)(nil), // 0: anonymous.v1.AuthRequest (*AuthRequest)(nil), // 0: corestack.anonymous.v1.AuthRequest
(*AuthResponse)(nil), // 1: anonymous.v1.AuthResponse (*AuthResponse)(nil), // 1: corestack.anonymous.v1.AuthResponse
(*SendCredentialRequest)(nil), // 2: anonymous.v1.SendCredentialRequest (*SendCredentialRequest)(nil), // 2: corestack.anonymous.v1.SendCredentialRequest
(*SendCredentialResponse)(nil), // 3: anonymous.v1.SendCredentialResponse (*SendCredentialResponse)(nil), // 3: corestack.anonymous.v1.SendCredentialResponse
(v1.AuthenticationType)(0), // 4: enums.v1.AuthenticationType (v1.AuthenticationType)(0), // 4: corestack.enums.v1.AuthenticationType
} }
var file_anonymous_v1_user_proto_depIdxs = []int32{ var file_corestack_anonymous_v1_user_proto_depIdxs = []int32{
4, // 0: anonymous.v1.AuthRequest.auth_type:type_name -> enums.v1.AuthenticationType 4, // 0: corestack.anonymous.v1.AuthRequest.auth_type:type_name -> corestack.enums.v1.AuthenticationType
4, // 1: anonymous.v1.SendCredentialRequest.auth_type:type_name -> enums.v1.AuthenticationType 4, // 1: corestack.anonymous.v1.SendCredentialRequest.auth_type:type_name -> corestack.enums.v1.AuthenticationType
2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name 2, // [2:2] is the sub-list for extension type_name
@@ -271,26 +271,26 @@ var file_anonymous_v1_user_proto_depIdxs = []int32{
0, // [0:2] is the sub-list for field type_name 0, // [0:2] is the sub-list for field type_name
} }
func init() { file_anonymous_v1_user_proto_init() } func init() { file_corestack_anonymous_v1_user_proto_init() }
func file_anonymous_v1_user_proto_init() { func file_corestack_anonymous_v1_user_proto_init() {
if File_anonymous_v1_user_proto != nil { if File_corestack_anonymous_v1_user_proto != nil {
return return
} }
type x struct{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_anonymous_v1_user_proto_rawDesc), len(file_anonymous_v1_user_proto_rawDesc)), RawDescriptor: unsafe.Slice(unsafe.StringData(file_corestack_anonymous_v1_user_proto_rawDesc), len(file_corestack_anonymous_v1_user_proto_rawDesc)),
NumEnums: 0, NumEnums: 0,
NumMessages: 4, NumMessages: 4,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },
GoTypes: file_anonymous_v1_user_proto_goTypes, GoTypes: file_corestack_anonymous_v1_user_proto_goTypes,
DependencyIndexes: file_anonymous_v1_user_proto_depIdxs, DependencyIndexes: file_corestack_anonymous_v1_user_proto_depIdxs,
MessageInfos: file_anonymous_v1_user_proto_msgTypes, MessageInfos: file_corestack_anonymous_v1_user_proto_msgTypes,
}.Build() }.Build()
File_anonymous_v1_user_proto = out.File File_corestack_anonymous_v1_user_proto = out.File
file_anonymous_v1_user_proto_goTypes = nil file_corestack_anonymous_v1_user_proto_goTypes = nil
file_anonymous_v1_user_proto_depIdxs = nil file_corestack_anonymous_v1_user_proto_depIdxs = nil
} }

View File

@@ -2,7 +2,7 @@
// versions: // versions:
// protoc-gen-go v1.36.7 // protoc-gen-go v1.36.7
// protoc (unknown) // protoc (unknown)
// source: enums/v1/sms.proto // source: corestack/enums/v1/sms.proto
package enumsv1 package enumsv1
@@ -60,11 +60,11 @@ func (x SMSSignStatus) String() string {
} }
func (SMSSignStatus) Descriptor() protoreflect.EnumDescriptor { func (SMSSignStatus) Descriptor() protoreflect.EnumDescriptor {
return file_enums_v1_sms_proto_enumTypes[0].Descriptor() return file_corestack_enums_v1_sms_proto_enumTypes[0].Descriptor()
} }
func (SMSSignStatus) Type() protoreflect.EnumType { func (SMSSignStatus) Type() protoreflect.EnumType {
return &file_enums_v1_sms_proto_enumTypes[0] return &file_corestack_enums_v1_sms_proto_enumTypes[0]
} }
func (x SMSSignStatus) Number() protoreflect.EnumNumber { func (x SMSSignStatus) Number() protoreflect.EnumNumber {
@@ -73,38 +73,38 @@ func (x SMSSignStatus) Number() protoreflect.EnumNumber {
// Deprecated: Use SMSSignStatus.Descriptor instead. // Deprecated: Use SMSSignStatus.Descriptor instead.
func (SMSSignStatus) EnumDescriptor() ([]byte, []int) { func (SMSSignStatus) EnumDescriptor() ([]byte, []int) {
return file_enums_v1_sms_proto_rawDescGZIP(), []int{0} return file_corestack_enums_v1_sms_proto_rawDescGZIP(), []int{0}
} }
var File_enums_v1_sms_proto protoreflect.FileDescriptor var File_corestack_enums_v1_sms_proto protoreflect.FileDescriptor
const file_enums_v1_sms_proto_rawDesc = "" + const file_corestack_enums_v1_sms_proto_rawDesc = "" +
"\n" + "\n" +
"\x12enums/v1/sms.proto\x12\benums.v1*\xa6\x01\n" + "\x1ccorestack/enums/v1/sms.proto\x12\x12corestack.enums.v1*\xa6\x01\n" +
"\rSMSSignStatus\x12\x1f\n" + "\rSMSSignStatus\x12\x1f\n" +
"\x1bSMS_SIGN_STATUS_UNSPECIFIED\x10\x00\x12\x1c\n" + "\x1bSMS_SIGN_STATUS_UNSPECIFIED\x10\x00\x12\x1c\n" +
"\x18SMS_SIGN_STATUS_APPLYING\x10\x01\x12\x1a\n" + "\x18SMS_SIGN_STATUS_APPLYING\x10\x01\x12\x1a\n" +
"\x16SMS_SIGN_STATUS_PASSED\x10\x02\x12\x1c\n" + "\x16SMS_SIGN_STATUS_PASSED\x10\x02\x12\x1c\n" +
"\x18SMS_SIGN_STATUS_REJECTED\x10\x03\x12\x1c\n" + "\x18SMS_SIGN_STATUS_REJECTED\x10\x03\x12\x1c\n" +
"\x18SMS_SIGN_STATUS_CANCELED\x10\x04B3Z1git.shenxianhe.cn/shenxianhe/sdk/enums/v1;enumsv1b\x06proto3" "\x18SMS_SIGN_STATUS_CANCELED\x10\x04B=Z;git.shenxianhe.cn/shenxianhe/sdk/corestack/enums/v1;enumsv1b\x06proto3"
var ( var (
file_enums_v1_sms_proto_rawDescOnce sync.Once file_corestack_enums_v1_sms_proto_rawDescOnce sync.Once
file_enums_v1_sms_proto_rawDescData []byte file_corestack_enums_v1_sms_proto_rawDescData []byte
) )
func file_enums_v1_sms_proto_rawDescGZIP() []byte { func file_corestack_enums_v1_sms_proto_rawDescGZIP() []byte {
file_enums_v1_sms_proto_rawDescOnce.Do(func() { file_corestack_enums_v1_sms_proto_rawDescOnce.Do(func() {
file_enums_v1_sms_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_enums_v1_sms_proto_rawDesc), len(file_enums_v1_sms_proto_rawDesc))) file_corestack_enums_v1_sms_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_corestack_enums_v1_sms_proto_rawDesc), len(file_corestack_enums_v1_sms_proto_rawDesc)))
}) })
return file_enums_v1_sms_proto_rawDescData return file_corestack_enums_v1_sms_proto_rawDescData
} }
var file_enums_v1_sms_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_corestack_enums_v1_sms_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_enums_v1_sms_proto_goTypes = []any{ var file_corestack_enums_v1_sms_proto_goTypes = []any{
(SMSSignStatus)(0), // 0: enums.v1.SMSSignStatus (SMSSignStatus)(0), // 0: corestack.enums.v1.SMSSignStatus
} }
var file_enums_v1_sms_proto_depIdxs = []int32{ var file_corestack_enums_v1_sms_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type 0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension type_name
@@ -112,26 +112,26 @@ var file_enums_v1_sms_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for field type_name 0, // [0:0] is the sub-list for field type_name
} }
func init() { file_enums_v1_sms_proto_init() } func init() { file_corestack_enums_v1_sms_proto_init() }
func file_enums_v1_sms_proto_init() { func file_corestack_enums_v1_sms_proto_init() {
if File_enums_v1_sms_proto != nil { if File_corestack_enums_v1_sms_proto != nil {
return return
} }
type x struct{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_enums_v1_sms_proto_rawDesc), len(file_enums_v1_sms_proto_rawDesc)), RawDescriptor: unsafe.Slice(unsafe.StringData(file_corestack_enums_v1_sms_proto_rawDesc), len(file_corestack_enums_v1_sms_proto_rawDesc)),
NumEnums: 1, NumEnums: 1,
NumMessages: 0, NumMessages: 0,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },
GoTypes: file_enums_v1_sms_proto_goTypes, GoTypes: file_corestack_enums_v1_sms_proto_goTypes,
DependencyIndexes: file_enums_v1_sms_proto_depIdxs, DependencyIndexes: file_corestack_enums_v1_sms_proto_depIdxs,
EnumInfos: file_enums_v1_sms_proto_enumTypes, EnumInfos: file_corestack_enums_v1_sms_proto_enumTypes,
}.Build() }.Build()
File_enums_v1_sms_proto = out.File File_corestack_enums_v1_sms_proto = out.File
file_enums_v1_sms_proto_goTypes = nil file_corestack_enums_v1_sms_proto_goTypes = nil
file_enums_v1_sms_proto_depIdxs = nil file_corestack_enums_v1_sms_proto_depIdxs = nil
} }

View File

@@ -2,7 +2,7 @@
// versions: // versions:
// protoc-gen-go v1.36.7 // protoc-gen-go v1.36.7
// protoc (unknown) // protoc (unknown)
// source: enums/v1/user.proto // source: corestack/enums/v1/user.proto
package enumsv1 package enumsv1
@@ -61,11 +61,11 @@ func (x AuthenticationType) String() string {
} }
func (AuthenticationType) Descriptor() protoreflect.EnumDescriptor { func (AuthenticationType) Descriptor() protoreflect.EnumDescriptor {
return file_enums_v1_user_proto_enumTypes[0].Descriptor() return file_corestack_enums_v1_user_proto_enumTypes[0].Descriptor()
} }
func (AuthenticationType) Type() protoreflect.EnumType { func (AuthenticationType) Type() protoreflect.EnumType {
return &file_enums_v1_user_proto_enumTypes[0] return &file_corestack_enums_v1_user_proto_enumTypes[0]
} }
func (x AuthenticationType) Number() protoreflect.EnumNumber { func (x AuthenticationType) Number() protoreflect.EnumNumber {
@@ -74,38 +74,38 @@ func (x AuthenticationType) Number() protoreflect.EnumNumber {
// Deprecated: Use AuthenticationType.Descriptor instead. // Deprecated: Use AuthenticationType.Descriptor instead.
func (AuthenticationType) EnumDescriptor() ([]byte, []int) { func (AuthenticationType) EnumDescriptor() ([]byte, []int) {
return file_enums_v1_user_proto_rawDescGZIP(), []int{0} return file_corestack_enums_v1_user_proto_rawDescGZIP(), []int{0}
} }
var File_enums_v1_user_proto protoreflect.FileDescriptor var File_corestack_enums_v1_user_proto protoreflect.FileDescriptor
const file_enums_v1_user_proto_rawDesc = "" + const file_corestack_enums_v1_user_proto_rawDesc = "" +
"\n" + "\n" +
"\x13enums/v1/user.proto\x12\benums.v1*\xb5\x01\n" + "\x1dcorestack/enums/v1/user.proto\x12\x12corestack.enums.v1*\xb5\x01\n" +
"\x12AuthenticationType\x12#\n" + "\x12AuthenticationType\x12#\n" +
"\x1fAUTHENTICATION_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n" + "\x1fAUTHENTICATION_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n" +
"\x18AUTHENTICATION_TYPE_NAME\x10\x01\x12\x1d\n" + "\x18AUTHENTICATION_TYPE_NAME\x10\x01\x12\x1d\n" +
"\x19AUTHENTICATION_TYPE_PHONE\x10\x02\x12\x1d\n" + "\x19AUTHENTICATION_TYPE_PHONE\x10\x02\x12\x1d\n" +
"\x19AUTHENTICATION_TYPE_EMAIL\x10\x03\x12\x1e\n" + "\x19AUTHENTICATION_TYPE_EMAIL\x10\x03\x12\x1e\n" +
"\x1aAUTHENTICATION_TYPE_WECHAT\x10\x04B3Z1git.shenxianhe.cn/shenxianhe/sdk/enums/v1;enumsv1b\x06proto3" "\x1aAUTHENTICATION_TYPE_WECHAT\x10\x04B=Z;git.shenxianhe.cn/shenxianhe/sdk/corestack/enums/v1;enumsv1b\x06proto3"
var ( var (
file_enums_v1_user_proto_rawDescOnce sync.Once file_corestack_enums_v1_user_proto_rawDescOnce sync.Once
file_enums_v1_user_proto_rawDescData []byte file_corestack_enums_v1_user_proto_rawDescData []byte
) )
func file_enums_v1_user_proto_rawDescGZIP() []byte { func file_corestack_enums_v1_user_proto_rawDescGZIP() []byte {
file_enums_v1_user_proto_rawDescOnce.Do(func() { file_corestack_enums_v1_user_proto_rawDescOnce.Do(func() {
file_enums_v1_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_enums_v1_user_proto_rawDesc), len(file_enums_v1_user_proto_rawDesc))) file_corestack_enums_v1_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_corestack_enums_v1_user_proto_rawDesc), len(file_corestack_enums_v1_user_proto_rawDesc)))
}) })
return file_enums_v1_user_proto_rawDescData return file_corestack_enums_v1_user_proto_rawDescData
} }
var file_enums_v1_user_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_corestack_enums_v1_user_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_enums_v1_user_proto_goTypes = []any{ var file_corestack_enums_v1_user_proto_goTypes = []any{
(AuthenticationType)(0), // 0: enums.v1.AuthenticationType (AuthenticationType)(0), // 0: corestack.enums.v1.AuthenticationType
} }
var file_enums_v1_user_proto_depIdxs = []int32{ var file_corestack_enums_v1_user_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type 0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension type_name
@@ -113,26 +113,26 @@ var file_enums_v1_user_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for field type_name 0, // [0:0] is the sub-list for field type_name
} }
func init() { file_enums_v1_user_proto_init() } func init() { file_corestack_enums_v1_user_proto_init() }
func file_enums_v1_user_proto_init() { func file_corestack_enums_v1_user_proto_init() {
if File_enums_v1_user_proto != nil { if File_corestack_enums_v1_user_proto != nil {
return return
} }
type x struct{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_enums_v1_user_proto_rawDesc), len(file_enums_v1_user_proto_rawDesc)), RawDescriptor: unsafe.Slice(unsafe.StringData(file_corestack_enums_v1_user_proto_rawDesc), len(file_corestack_enums_v1_user_proto_rawDesc)),
NumEnums: 1, NumEnums: 1,
NumMessages: 0, NumMessages: 0,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },
GoTypes: file_enums_v1_user_proto_goTypes, GoTypes: file_corestack_enums_v1_user_proto_goTypes,
DependencyIndexes: file_enums_v1_user_proto_depIdxs, DependencyIndexes: file_corestack_enums_v1_user_proto_depIdxs,
EnumInfos: file_enums_v1_user_proto_enumTypes, EnumInfos: file_corestack_enums_v1_user_proto_enumTypes,
}.Build() }.Build()
File_enums_v1_user_proto = out.File File_corestack_enums_v1_user_proto = out.File
file_enums_v1_user_proto_goTypes = nil file_corestack_enums_v1_user_proto_goTypes = nil
file_enums_v1_user_proto_depIdxs = nil file_corestack_enums_v1_user_proto_depIdxs = nil
} }

View File

@@ -0,0 +1,92 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.7
// protoc (unknown)
// source: corestack/user/v1/service.proto
package userv1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
var File_corestack_user_v1_service_proto protoreflect.FileDescriptor
const file_corestack_user_v1_service_proto_rawDesc = "" +
"\n" +
"\x1fcorestack/user/v1/service.proto\x12\x11corestack.user.v1\x1a\x1ccorestack/user/v1/user.proto2\xcd\x04\n" +
"\vUserService\x12\\\n" +
"\vSetPassword\x12%.corestack.user.v1.SetPasswordRequest\x1a&.corestack.user.v1.SetPasswordResponse\x12P\n" +
"\aSetName\x12!.corestack.user.v1.SetNameRequest\x1a\".corestack.user.v1.SetNameResponse\x12q\n" +
"\x12GetAvatarUploadURL\x12,.corestack.user.v1.GetAvatarUploadURLRequest\x1a-.corestack.user.v1.GetAvatarUploadURLResponse\x12V\n" +
"\tSetAvatar\x12#.corestack.user.v1.SetAvatarRequest\x1a$.corestack.user.v1.SetAvatarResponse\x12e\n" +
"\x0eSetDescription\x12(.corestack.user.v1.SetDescriptionRequest\x1a).corestack.user.v1.SetDescriptionResponse\x12\\\n" +
"\vGetUserInfo\x12%.corestack.user.v1.GetUserInfoRequest\x1a&.corestack.user.v1.GetUserInfoResponseB;Z9git.shenxianhe.cn/shenxianhe/sdk/corestack/user/v1;userv1b\x06proto3"
var file_corestack_user_v1_service_proto_goTypes = []any{
(*SetPasswordRequest)(nil), // 0: corestack.user.v1.SetPasswordRequest
(*SetNameRequest)(nil), // 1: corestack.user.v1.SetNameRequest
(*GetAvatarUploadURLRequest)(nil), // 2: corestack.user.v1.GetAvatarUploadURLRequest
(*SetAvatarRequest)(nil), // 3: corestack.user.v1.SetAvatarRequest
(*SetDescriptionRequest)(nil), // 4: corestack.user.v1.SetDescriptionRequest
(*GetUserInfoRequest)(nil), // 5: corestack.user.v1.GetUserInfoRequest
(*SetPasswordResponse)(nil), // 6: corestack.user.v1.SetPasswordResponse
(*SetNameResponse)(nil), // 7: corestack.user.v1.SetNameResponse
(*GetAvatarUploadURLResponse)(nil), // 8: corestack.user.v1.GetAvatarUploadURLResponse
(*SetAvatarResponse)(nil), // 9: corestack.user.v1.SetAvatarResponse
(*SetDescriptionResponse)(nil), // 10: corestack.user.v1.SetDescriptionResponse
(*GetUserInfoResponse)(nil), // 11: corestack.user.v1.GetUserInfoResponse
}
var file_corestack_user_v1_service_proto_depIdxs = []int32{
0, // 0: corestack.user.v1.UserService.SetPassword:input_type -> corestack.user.v1.SetPasswordRequest
1, // 1: corestack.user.v1.UserService.SetName:input_type -> corestack.user.v1.SetNameRequest
2, // 2: corestack.user.v1.UserService.GetAvatarUploadURL:input_type -> corestack.user.v1.GetAvatarUploadURLRequest
3, // 3: corestack.user.v1.UserService.SetAvatar:input_type -> corestack.user.v1.SetAvatarRequest
4, // 4: corestack.user.v1.UserService.SetDescription:input_type -> corestack.user.v1.SetDescriptionRequest
5, // 5: corestack.user.v1.UserService.GetUserInfo:input_type -> corestack.user.v1.GetUserInfoRequest
6, // 6: corestack.user.v1.UserService.SetPassword:output_type -> corestack.user.v1.SetPasswordResponse
7, // 7: corestack.user.v1.UserService.SetName:output_type -> corestack.user.v1.SetNameResponse
8, // 8: corestack.user.v1.UserService.GetAvatarUploadURL:output_type -> corestack.user.v1.GetAvatarUploadURLResponse
9, // 9: corestack.user.v1.UserService.SetAvatar:output_type -> corestack.user.v1.SetAvatarResponse
10, // 10: corestack.user.v1.UserService.SetDescription:output_type -> corestack.user.v1.SetDescriptionResponse
11, // 11: corestack.user.v1.UserService.GetUserInfo:output_type -> corestack.user.v1.GetUserInfoResponse
6, // [6:12] is the sub-list for method output_type
0, // [0:6] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_corestack_user_v1_service_proto_init() }
func file_corestack_user_v1_service_proto_init() {
if File_corestack_user_v1_service_proto != nil {
return
}
file_corestack_user_v1_user_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_corestack_user_v1_service_proto_rawDesc), len(file_corestack_user_v1_service_proto_rawDesc)),
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_corestack_user_v1_service_proto_goTypes,
DependencyIndexes: file_corestack_user_v1_service_proto_depIdxs,
}.Build()
File_corestack_user_v1_service_proto = out.File
file_corestack_user_v1_service_proto_goTypes = nil
file_corestack_user_v1_service_proto_depIdxs = nil
}

View File

@@ -2,12 +2,12 @@
// versions: // versions:
// protoc-gen-go v1.36.7 // protoc-gen-go v1.36.7
// protoc (unknown) // protoc (unknown)
// source: user/v1/user.proto // source: corestack/user/v1/user.proto
package userv1 package userv1
import ( import (
v1 "git.shenxianhe.cn/shenxianhe/sdk/enums/v1" v1 "git.shenxianhe.cn/shenxianhe/sdk/corestack/enums/v1"
protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl" protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect" reflect "reflect"
@@ -24,7 +24,7 @@ const (
type SetPasswordRequest struct { type SetPasswordRequest struct {
state protoimpl.MessageState `protogen:"open.v1"` state protoimpl.MessageState `protogen:"open.v1"`
AuthType v1.AuthenticationType `protobuf:"varint,1,opt,name=auth_type,json=authType,proto3,enum=enums.v1.AuthenticationType" json:"auth_type,omitempty"` // 认证类型 AuthType v1.AuthenticationType `protobuf:"varint,1,opt,name=auth_type,json=authType,proto3,enum=corestack.enums.v1.AuthenticationType" json:"auth_type,omitempty"` // 认证类型
AuthId string `protobuf:"bytes,2,opt,name=auth_id,json=authId,proto3" json:"auth_id,omitempty"` // 认证ID根据auth_type存储不同的账号信息 AuthId string `protobuf:"bytes,2,opt,name=auth_id,json=authId,proto3" json:"auth_id,omitempty"` // 认证ID根据auth_type存储不同的账号信息
Credential string `protobuf:"bytes,3,opt,name=credential,proto3" json:"credential,omitempty"` // 凭证,可以是验证码或旧密码 Credential string `protobuf:"bytes,3,opt,name=credential,proto3" json:"credential,omitempty"` // 凭证,可以是验证码或旧密码
Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // 新密码 Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // 新密码
@@ -34,7 +34,7 @@ type SetPasswordRequest struct {
func (x *SetPasswordRequest) Reset() { func (x *SetPasswordRequest) Reset() {
*x = SetPasswordRequest{} *x = SetPasswordRequest{}
mi := &file_user_v1_user_proto_msgTypes[0] mi := &file_corestack_user_v1_user_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -46,7 +46,7 @@ func (x *SetPasswordRequest) String() string {
func (*SetPasswordRequest) ProtoMessage() {} func (*SetPasswordRequest) ProtoMessage() {}
func (x *SetPasswordRequest) ProtoReflect() protoreflect.Message { func (x *SetPasswordRequest) ProtoReflect() protoreflect.Message {
mi := &file_user_v1_user_proto_msgTypes[0] mi := &file_corestack_user_v1_user_proto_msgTypes[0]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -59,7 +59,7 @@ func (x *SetPasswordRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SetPasswordRequest.ProtoReflect.Descriptor instead. // Deprecated: Use SetPasswordRequest.ProtoReflect.Descriptor instead.
func (*SetPasswordRequest) Descriptor() ([]byte, []int) { func (*SetPasswordRequest) Descriptor() ([]byte, []int) {
return file_user_v1_user_proto_rawDescGZIP(), []int{0} return file_corestack_user_v1_user_proto_rawDescGZIP(), []int{0}
} }
func (x *SetPasswordRequest) GetAuthType() v1.AuthenticationType { func (x *SetPasswordRequest) GetAuthType() v1.AuthenticationType {
@@ -98,7 +98,7 @@ type SetPasswordResponse struct {
func (x *SetPasswordResponse) Reset() { func (x *SetPasswordResponse) Reset() {
*x = SetPasswordResponse{} *x = SetPasswordResponse{}
mi := &file_user_v1_user_proto_msgTypes[1] mi := &file_corestack_user_v1_user_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -110,7 +110,7 @@ func (x *SetPasswordResponse) String() string {
func (*SetPasswordResponse) ProtoMessage() {} func (*SetPasswordResponse) ProtoMessage() {}
func (x *SetPasswordResponse) ProtoReflect() protoreflect.Message { func (x *SetPasswordResponse) ProtoReflect() protoreflect.Message {
mi := &file_user_v1_user_proto_msgTypes[1] mi := &file_corestack_user_v1_user_proto_msgTypes[1]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -123,7 +123,7 @@ func (x *SetPasswordResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use SetPasswordResponse.ProtoReflect.Descriptor instead. // Deprecated: Use SetPasswordResponse.ProtoReflect.Descriptor instead.
func (*SetPasswordResponse) Descriptor() ([]byte, []int) { func (*SetPasswordResponse) Descriptor() ([]byte, []int) {
return file_user_v1_user_proto_rawDescGZIP(), []int{1} return file_corestack_user_v1_user_proto_rawDescGZIP(), []int{1}
} }
type SetNameRequest struct { type SetNameRequest struct {
@@ -135,7 +135,7 @@ type SetNameRequest struct {
func (x *SetNameRequest) Reset() { func (x *SetNameRequest) Reset() {
*x = SetNameRequest{} *x = SetNameRequest{}
mi := &file_user_v1_user_proto_msgTypes[2] mi := &file_corestack_user_v1_user_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -147,7 +147,7 @@ func (x *SetNameRequest) String() string {
func (*SetNameRequest) ProtoMessage() {} func (*SetNameRequest) ProtoMessage() {}
func (x *SetNameRequest) ProtoReflect() protoreflect.Message { func (x *SetNameRequest) ProtoReflect() protoreflect.Message {
mi := &file_user_v1_user_proto_msgTypes[2] mi := &file_corestack_user_v1_user_proto_msgTypes[2]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -160,7 +160,7 @@ func (x *SetNameRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SetNameRequest.ProtoReflect.Descriptor instead. // Deprecated: Use SetNameRequest.ProtoReflect.Descriptor instead.
func (*SetNameRequest) Descriptor() ([]byte, []int) { func (*SetNameRequest) Descriptor() ([]byte, []int) {
return file_user_v1_user_proto_rawDescGZIP(), []int{2} return file_corestack_user_v1_user_proto_rawDescGZIP(), []int{2}
} }
func (x *SetNameRequest) GetName() string { func (x *SetNameRequest) GetName() string {
@@ -178,7 +178,7 @@ type SetNameResponse struct {
func (x *SetNameResponse) Reset() { func (x *SetNameResponse) Reset() {
*x = SetNameResponse{} *x = SetNameResponse{}
mi := &file_user_v1_user_proto_msgTypes[3] mi := &file_corestack_user_v1_user_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -190,7 +190,7 @@ func (x *SetNameResponse) String() string {
func (*SetNameResponse) ProtoMessage() {} func (*SetNameResponse) ProtoMessage() {}
func (x *SetNameResponse) ProtoReflect() protoreflect.Message { func (x *SetNameResponse) ProtoReflect() protoreflect.Message {
mi := &file_user_v1_user_proto_msgTypes[3] mi := &file_corestack_user_v1_user_proto_msgTypes[3]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -203,7 +203,7 @@ func (x *SetNameResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use SetNameResponse.ProtoReflect.Descriptor instead. // Deprecated: Use SetNameResponse.ProtoReflect.Descriptor instead.
func (*SetNameResponse) Descriptor() ([]byte, []int) { func (*SetNameResponse) Descriptor() ([]byte, []int) {
return file_user_v1_user_proto_rawDescGZIP(), []int{3} return file_corestack_user_v1_user_proto_rawDescGZIP(), []int{3}
} }
type GetAvatarUploadURLRequest struct { type GetAvatarUploadURLRequest struct {
@@ -214,7 +214,7 @@ type GetAvatarUploadURLRequest struct {
func (x *GetAvatarUploadURLRequest) Reset() { func (x *GetAvatarUploadURLRequest) Reset() {
*x = GetAvatarUploadURLRequest{} *x = GetAvatarUploadURLRequest{}
mi := &file_user_v1_user_proto_msgTypes[4] mi := &file_corestack_user_v1_user_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -226,7 +226,7 @@ func (x *GetAvatarUploadURLRequest) String() string {
func (*GetAvatarUploadURLRequest) ProtoMessage() {} func (*GetAvatarUploadURLRequest) ProtoMessage() {}
func (x *GetAvatarUploadURLRequest) ProtoReflect() protoreflect.Message { func (x *GetAvatarUploadURLRequest) ProtoReflect() protoreflect.Message {
mi := &file_user_v1_user_proto_msgTypes[4] mi := &file_corestack_user_v1_user_proto_msgTypes[4]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -239,7 +239,7 @@ func (x *GetAvatarUploadURLRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetAvatarUploadURLRequest.ProtoReflect.Descriptor instead. // Deprecated: Use GetAvatarUploadURLRequest.ProtoReflect.Descriptor instead.
func (*GetAvatarUploadURLRequest) Descriptor() ([]byte, []int) { func (*GetAvatarUploadURLRequest) Descriptor() ([]byte, []int) {
return file_user_v1_user_proto_rawDescGZIP(), []int{4} return file_corestack_user_v1_user_proto_rawDescGZIP(), []int{4}
} }
type GetAvatarUploadURLResponse struct { type GetAvatarUploadURLResponse struct {
@@ -252,7 +252,7 @@ type GetAvatarUploadURLResponse struct {
func (x *GetAvatarUploadURLResponse) Reset() { func (x *GetAvatarUploadURLResponse) Reset() {
*x = GetAvatarUploadURLResponse{} *x = GetAvatarUploadURLResponse{}
mi := &file_user_v1_user_proto_msgTypes[5] mi := &file_corestack_user_v1_user_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -264,7 +264,7 @@ func (x *GetAvatarUploadURLResponse) String() string {
func (*GetAvatarUploadURLResponse) ProtoMessage() {} func (*GetAvatarUploadURLResponse) ProtoMessage() {}
func (x *GetAvatarUploadURLResponse) ProtoReflect() protoreflect.Message { func (x *GetAvatarUploadURLResponse) ProtoReflect() protoreflect.Message {
mi := &file_user_v1_user_proto_msgTypes[5] mi := &file_corestack_user_v1_user_proto_msgTypes[5]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -277,7 +277,7 @@ func (x *GetAvatarUploadURLResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetAvatarUploadURLResponse.ProtoReflect.Descriptor instead. // Deprecated: Use GetAvatarUploadURLResponse.ProtoReflect.Descriptor instead.
func (*GetAvatarUploadURLResponse) Descriptor() ([]byte, []int) { func (*GetAvatarUploadURLResponse) Descriptor() ([]byte, []int) {
return file_user_v1_user_proto_rawDescGZIP(), []int{5} return file_corestack_user_v1_user_proto_rawDescGZIP(), []int{5}
} }
func (x *GetAvatarUploadURLResponse) GetKey() string { func (x *GetAvatarUploadURLResponse) GetKey() string {
@@ -303,7 +303,7 @@ type SetAvatarRequest struct {
func (x *SetAvatarRequest) Reset() { func (x *SetAvatarRequest) Reset() {
*x = SetAvatarRequest{} *x = SetAvatarRequest{}
mi := &file_user_v1_user_proto_msgTypes[6] mi := &file_corestack_user_v1_user_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -315,7 +315,7 @@ func (x *SetAvatarRequest) String() string {
func (*SetAvatarRequest) ProtoMessage() {} func (*SetAvatarRequest) ProtoMessage() {}
func (x *SetAvatarRequest) ProtoReflect() protoreflect.Message { func (x *SetAvatarRequest) ProtoReflect() protoreflect.Message {
mi := &file_user_v1_user_proto_msgTypes[6] mi := &file_corestack_user_v1_user_proto_msgTypes[6]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -328,7 +328,7 @@ func (x *SetAvatarRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SetAvatarRequest.ProtoReflect.Descriptor instead. // Deprecated: Use SetAvatarRequest.ProtoReflect.Descriptor instead.
func (*SetAvatarRequest) Descriptor() ([]byte, []int) { func (*SetAvatarRequest) Descriptor() ([]byte, []int) {
return file_user_v1_user_proto_rawDescGZIP(), []int{6} return file_corestack_user_v1_user_proto_rawDescGZIP(), []int{6}
} }
func (x *SetAvatarRequest) GetKey() string { func (x *SetAvatarRequest) GetKey() string {
@@ -346,7 +346,7 @@ type SetAvatarResponse struct {
func (x *SetAvatarResponse) Reset() { func (x *SetAvatarResponse) Reset() {
*x = SetAvatarResponse{} *x = SetAvatarResponse{}
mi := &file_user_v1_user_proto_msgTypes[7] mi := &file_corestack_user_v1_user_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -358,7 +358,7 @@ func (x *SetAvatarResponse) String() string {
func (*SetAvatarResponse) ProtoMessage() {} func (*SetAvatarResponse) ProtoMessage() {}
func (x *SetAvatarResponse) ProtoReflect() protoreflect.Message { func (x *SetAvatarResponse) ProtoReflect() protoreflect.Message {
mi := &file_user_v1_user_proto_msgTypes[7] mi := &file_corestack_user_v1_user_proto_msgTypes[7]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -371,7 +371,7 @@ func (x *SetAvatarResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use SetAvatarResponse.ProtoReflect.Descriptor instead. // Deprecated: Use SetAvatarResponse.ProtoReflect.Descriptor instead.
func (*SetAvatarResponse) Descriptor() ([]byte, []int) { func (*SetAvatarResponse) Descriptor() ([]byte, []int) {
return file_user_v1_user_proto_rawDescGZIP(), []int{7} return file_corestack_user_v1_user_proto_rawDescGZIP(), []int{7}
} }
type SetDescriptionRequest struct { type SetDescriptionRequest struct {
@@ -383,7 +383,7 @@ type SetDescriptionRequest struct {
func (x *SetDescriptionRequest) Reset() { func (x *SetDescriptionRequest) Reset() {
*x = SetDescriptionRequest{} *x = SetDescriptionRequest{}
mi := &file_user_v1_user_proto_msgTypes[8] mi := &file_corestack_user_v1_user_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -395,7 +395,7 @@ func (x *SetDescriptionRequest) String() string {
func (*SetDescriptionRequest) ProtoMessage() {} func (*SetDescriptionRequest) ProtoMessage() {}
func (x *SetDescriptionRequest) ProtoReflect() protoreflect.Message { func (x *SetDescriptionRequest) ProtoReflect() protoreflect.Message {
mi := &file_user_v1_user_proto_msgTypes[8] mi := &file_corestack_user_v1_user_proto_msgTypes[8]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -408,7 +408,7 @@ func (x *SetDescriptionRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SetDescriptionRequest.ProtoReflect.Descriptor instead. // Deprecated: Use SetDescriptionRequest.ProtoReflect.Descriptor instead.
func (*SetDescriptionRequest) Descriptor() ([]byte, []int) { func (*SetDescriptionRequest) Descriptor() ([]byte, []int) {
return file_user_v1_user_proto_rawDescGZIP(), []int{8} return file_corestack_user_v1_user_proto_rawDescGZIP(), []int{8}
} }
func (x *SetDescriptionRequest) GetDescription() string { func (x *SetDescriptionRequest) GetDescription() string {
@@ -426,7 +426,7 @@ type SetDescriptionResponse struct {
func (x *SetDescriptionResponse) Reset() { func (x *SetDescriptionResponse) Reset() {
*x = SetDescriptionResponse{} *x = SetDescriptionResponse{}
mi := &file_user_v1_user_proto_msgTypes[9] mi := &file_corestack_user_v1_user_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -438,7 +438,7 @@ func (x *SetDescriptionResponse) String() string {
func (*SetDescriptionResponse) ProtoMessage() {} func (*SetDescriptionResponse) ProtoMessage() {}
func (x *SetDescriptionResponse) ProtoReflect() protoreflect.Message { func (x *SetDescriptionResponse) ProtoReflect() protoreflect.Message {
mi := &file_user_v1_user_proto_msgTypes[9] mi := &file_corestack_user_v1_user_proto_msgTypes[9]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -451,7 +451,7 @@ func (x *SetDescriptionResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use SetDescriptionResponse.ProtoReflect.Descriptor instead. // Deprecated: Use SetDescriptionResponse.ProtoReflect.Descriptor instead.
func (*SetDescriptionResponse) Descriptor() ([]byte, []int) { func (*SetDescriptionResponse) Descriptor() ([]byte, []int) {
return file_user_v1_user_proto_rawDescGZIP(), []int{9} return file_corestack_user_v1_user_proto_rawDescGZIP(), []int{9}
} }
type GetUserInfoRequest struct { type GetUserInfoRequest struct {
@@ -462,7 +462,7 @@ type GetUserInfoRequest struct {
func (x *GetUserInfoRequest) Reset() { func (x *GetUserInfoRequest) Reset() {
*x = GetUserInfoRequest{} *x = GetUserInfoRequest{}
mi := &file_user_v1_user_proto_msgTypes[10] mi := &file_corestack_user_v1_user_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -474,7 +474,7 @@ func (x *GetUserInfoRequest) String() string {
func (*GetUserInfoRequest) ProtoMessage() {} func (*GetUserInfoRequest) ProtoMessage() {}
func (x *GetUserInfoRequest) ProtoReflect() protoreflect.Message { func (x *GetUserInfoRequest) ProtoReflect() protoreflect.Message {
mi := &file_user_v1_user_proto_msgTypes[10] mi := &file_corestack_user_v1_user_proto_msgTypes[10]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -487,7 +487,7 @@ func (x *GetUserInfoRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetUserInfoRequest.ProtoReflect.Descriptor instead. // Deprecated: Use GetUserInfoRequest.ProtoReflect.Descriptor instead.
func (*GetUserInfoRequest) Descriptor() ([]byte, []int) { func (*GetUserInfoRequest) Descriptor() ([]byte, []int) {
return file_user_v1_user_proto_rawDescGZIP(), []int{10} return file_corestack_user_v1_user_proto_rawDescGZIP(), []int{10}
} }
type GetUserInfoResponse struct { type GetUserInfoResponse struct {
@@ -505,7 +505,7 @@ type GetUserInfoResponse struct {
func (x *GetUserInfoResponse) Reset() { func (x *GetUserInfoResponse) Reset() {
*x = GetUserInfoResponse{} *x = GetUserInfoResponse{}
mi := &file_user_v1_user_proto_msgTypes[11] mi := &file_corestack_user_v1_user_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -517,7 +517,7 @@ func (x *GetUserInfoResponse) String() string {
func (*GetUserInfoResponse) ProtoMessage() {} func (*GetUserInfoResponse) ProtoMessage() {}
func (x *GetUserInfoResponse) ProtoReflect() protoreflect.Message { func (x *GetUserInfoResponse) ProtoReflect() protoreflect.Message {
mi := &file_user_v1_user_proto_msgTypes[11] mi := &file_corestack_user_v1_user_proto_msgTypes[11]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -530,7 +530,7 @@ func (x *GetUserInfoResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetUserInfoResponse.ProtoReflect.Descriptor instead. // Deprecated: Use GetUserInfoResponse.ProtoReflect.Descriptor instead.
func (*GetUserInfoResponse) Descriptor() ([]byte, []int) { func (*GetUserInfoResponse) Descriptor() ([]byte, []int) {
return file_user_v1_user_proto_rawDescGZIP(), []int{11} return file_corestack_user_v1_user_proto_rawDescGZIP(), []int{11}
} }
func (x *GetUserInfoResponse) GetId() string { func (x *GetUserInfoResponse) GetId() string {
@@ -582,13 +582,13 @@ func (x *GetUserInfoResponse) GetEmail() string {
return "" return ""
} }
var File_user_v1_user_proto protoreflect.FileDescriptor var File_corestack_user_v1_user_proto protoreflect.FileDescriptor
const file_user_v1_user_proto_rawDesc = "" + const file_corestack_user_v1_user_proto_rawDesc = "" +
"\n" + "\n" +
"\x12user/v1/user.proto\x12\auser.v1\x1a\x13enums/v1/user.proto\"\xa4\x01\n" + "\x1ccorestack/user/v1/user.proto\x12\x11corestack.user.v1\x1a\x1dcorestack/enums/v1/user.proto\"\xae\x01\n" +
"\x12SetPasswordRequest\x129\n" + "\x12SetPasswordRequest\x12C\n" +
"\tauth_type\x18\x01 \x01(\x0e2\x1c.enums.v1.AuthenticationTypeR\bauthType\x12\x17\n" + "\tauth_type\x18\x01 \x01(\x0e2&.corestack.enums.v1.AuthenticationTypeR\bauthType\x12\x17\n" +
"\aauth_id\x18\x02 \x01(\tR\x06authId\x12\x1e\n" + "\aauth_id\x18\x02 \x01(\tR\x06authId\x12\x1e\n" +
"\n" + "\n" +
"credential\x18\x03 \x01(\tR\n" + "credential\x18\x03 \x01(\tR\n" +
@@ -616,38 +616,38 @@ const file_user_v1_user_proto_rawDesc = "" +
"\vdescription\x18\x04 \x01(\tR\vdescription\x12\x12\n" + "\vdescription\x18\x04 \x01(\tR\vdescription\x12\x12\n" +
"\x04name\x18\x05 \x01(\tR\x04name\x12\x14\n" + "\x04name\x18\x05 \x01(\tR\x04name\x12\x14\n" +
"\x05phone\x18\x06 \x01(\tR\x05phone\x12\x14\n" + "\x05phone\x18\x06 \x01(\tR\x05phone\x12\x14\n" +
"\x05email\x18\a \x01(\tR\x05emailB1Z/git.shenxianhe.cn/shenxianhe/sdk/user/v1;userv1b\x06proto3" "\x05email\x18\a \x01(\tR\x05emailB;Z9git.shenxianhe.cn/shenxianhe/sdk/corestack/user/v1;userv1b\x06proto3"
var ( var (
file_user_v1_user_proto_rawDescOnce sync.Once file_corestack_user_v1_user_proto_rawDescOnce sync.Once
file_user_v1_user_proto_rawDescData []byte file_corestack_user_v1_user_proto_rawDescData []byte
) )
func file_user_v1_user_proto_rawDescGZIP() []byte { func file_corestack_user_v1_user_proto_rawDescGZIP() []byte {
file_user_v1_user_proto_rawDescOnce.Do(func() { file_corestack_user_v1_user_proto_rawDescOnce.Do(func() {
file_user_v1_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_user_v1_user_proto_rawDesc), len(file_user_v1_user_proto_rawDesc))) file_corestack_user_v1_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_corestack_user_v1_user_proto_rawDesc), len(file_corestack_user_v1_user_proto_rawDesc)))
}) })
return file_user_v1_user_proto_rawDescData return file_corestack_user_v1_user_proto_rawDescData
} }
var file_user_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 12) var file_corestack_user_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_user_v1_user_proto_goTypes = []any{ var file_corestack_user_v1_user_proto_goTypes = []any{
(*SetPasswordRequest)(nil), // 0: user.v1.SetPasswordRequest (*SetPasswordRequest)(nil), // 0: corestack.user.v1.SetPasswordRequest
(*SetPasswordResponse)(nil), // 1: user.v1.SetPasswordResponse (*SetPasswordResponse)(nil), // 1: corestack.user.v1.SetPasswordResponse
(*SetNameRequest)(nil), // 2: user.v1.SetNameRequest (*SetNameRequest)(nil), // 2: corestack.user.v1.SetNameRequest
(*SetNameResponse)(nil), // 3: user.v1.SetNameResponse (*SetNameResponse)(nil), // 3: corestack.user.v1.SetNameResponse
(*GetAvatarUploadURLRequest)(nil), // 4: user.v1.GetAvatarUploadURLRequest (*GetAvatarUploadURLRequest)(nil), // 4: corestack.user.v1.GetAvatarUploadURLRequest
(*GetAvatarUploadURLResponse)(nil), // 5: user.v1.GetAvatarUploadURLResponse (*GetAvatarUploadURLResponse)(nil), // 5: corestack.user.v1.GetAvatarUploadURLResponse
(*SetAvatarRequest)(nil), // 6: user.v1.SetAvatarRequest (*SetAvatarRequest)(nil), // 6: corestack.user.v1.SetAvatarRequest
(*SetAvatarResponse)(nil), // 7: user.v1.SetAvatarResponse (*SetAvatarResponse)(nil), // 7: corestack.user.v1.SetAvatarResponse
(*SetDescriptionRequest)(nil), // 8: user.v1.SetDescriptionRequest (*SetDescriptionRequest)(nil), // 8: corestack.user.v1.SetDescriptionRequest
(*SetDescriptionResponse)(nil), // 9: user.v1.SetDescriptionResponse (*SetDescriptionResponse)(nil), // 9: corestack.user.v1.SetDescriptionResponse
(*GetUserInfoRequest)(nil), // 10: user.v1.GetUserInfoRequest (*GetUserInfoRequest)(nil), // 10: corestack.user.v1.GetUserInfoRequest
(*GetUserInfoResponse)(nil), // 11: user.v1.GetUserInfoResponse (*GetUserInfoResponse)(nil), // 11: corestack.user.v1.GetUserInfoResponse
(v1.AuthenticationType)(0), // 12: enums.v1.AuthenticationType (v1.AuthenticationType)(0), // 12: corestack.enums.v1.AuthenticationType
} }
var file_user_v1_user_proto_depIdxs = []int32{ var file_corestack_user_v1_user_proto_depIdxs = []int32{
12, // 0: user.v1.SetPasswordRequest.auth_type:type_name -> enums.v1.AuthenticationType 12, // 0: corestack.user.v1.SetPasswordRequest.auth_type:type_name -> corestack.enums.v1.AuthenticationType
1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type 1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name 1, // [1:1] is the sub-list for extension type_name
@@ -655,26 +655,26 @@ var file_user_v1_user_proto_depIdxs = []int32{
0, // [0:1] is the sub-list for field type_name 0, // [0:1] is the sub-list for field type_name
} }
func init() { file_user_v1_user_proto_init() } func init() { file_corestack_user_v1_user_proto_init() }
func file_user_v1_user_proto_init() { func file_corestack_user_v1_user_proto_init() {
if File_user_v1_user_proto != nil { if File_corestack_user_v1_user_proto != nil {
return return
} }
type x struct{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_user_v1_user_proto_rawDesc), len(file_user_v1_user_proto_rawDesc)), RawDescriptor: unsafe.Slice(unsafe.StringData(file_corestack_user_v1_user_proto_rawDesc), len(file_corestack_user_v1_user_proto_rawDesc)),
NumEnums: 0, NumEnums: 0,
NumMessages: 12, NumMessages: 12,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },
GoTypes: file_user_v1_user_proto_goTypes, GoTypes: file_corestack_user_v1_user_proto_goTypes,
DependencyIndexes: file_user_v1_user_proto_depIdxs, DependencyIndexes: file_corestack_user_v1_user_proto_depIdxs,
MessageInfos: file_user_v1_user_proto_msgTypes, MessageInfos: file_corestack_user_v1_user_proto_msgTypes,
}.Build() }.Build()
File_user_v1_user_proto = out.File File_corestack_user_v1_user_proto = out.File
file_user_v1_user_proto_goTypes = nil file_corestack_user_v1_user_proto_goTypes = nil
file_user_v1_user_proto_depIdxs = nil file_corestack_user_v1_user_proto_depIdxs = nil
} }

View File

@@ -1,6 +1,6 @@
// Code generated by protoc-gen-connect-go. DO NOT EDIT. // Code generated by protoc-gen-connect-go. DO NOT EDIT.
// //
// Source: user/v1/service.proto // Source: corestack/user/v1/service.proto
package userv1connect package userv1connect
@@ -8,7 +8,7 @@ import (
connect "connectrpc.com/connect" connect "connectrpc.com/connect"
context "context" context "context"
errors "errors" errors "errors"
v1 "git.shenxianhe.cn/shenxianhe/sdk/user/v1" v1 "git.shenxianhe.cn/shenxianhe/sdk/corestack/user/v1"
http "net/http" http "net/http"
strings "strings" strings "strings"
) )
@@ -22,7 +22,7 @@ const _ = connect.IsAtLeastVersion1_13_0
const ( const (
// UserServiceName is the fully-qualified name of the UserService service. // UserServiceName is the fully-qualified name of the UserService service.
UserServiceName = "user.v1.UserService" UserServiceName = "corestack.user.v1.UserService"
) )
// These constants are the fully-qualified names of the RPCs defined in this package. They're // These constants are the fully-qualified names of the RPCs defined in this package. They're
@@ -34,22 +34,22 @@ const (
// period. // period.
const ( const (
// UserServiceSetPasswordProcedure is the fully-qualified name of the UserService's SetPassword RPC. // UserServiceSetPasswordProcedure is the fully-qualified name of the UserService's SetPassword RPC.
UserServiceSetPasswordProcedure = "/user.v1.UserService/SetPassword" UserServiceSetPasswordProcedure = "/corestack.user.v1.UserService/SetPassword"
// UserServiceSetNameProcedure is the fully-qualified name of the UserService's SetName RPC. // UserServiceSetNameProcedure is the fully-qualified name of the UserService's SetName RPC.
UserServiceSetNameProcedure = "/user.v1.UserService/SetName" UserServiceSetNameProcedure = "/corestack.user.v1.UserService/SetName"
// UserServiceGetAvatarUploadURLProcedure is the fully-qualified name of the UserService's // UserServiceGetAvatarUploadURLProcedure is the fully-qualified name of the UserService's
// GetAvatarUploadURL RPC. // GetAvatarUploadURL RPC.
UserServiceGetAvatarUploadURLProcedure = "/user.v1.UserService/GetAvatarUploadURL" UserServiceGetAvatarUploadURLProcedure = "/corestack.user.v1.UserService/GetAvatarUploadURL"
// UserServiceSetAvatarProcedure is the fully-qualified name of the UserService's SetAvatar RPC. // UserServiceSetAvatarProcedure is the fully-qualified name of the UserService's SetAvatar RPC.
UserServiceSetAvatarProcedure = "/user.v1.UserService/SetAvatar" UserServiceSetAvatarProcedure = "/corestack.user.v1.UserService/SetAvatar"
// UserServiceSetDescriptionProcedure is the fully-qualified name of the UserService's // UserServiceSetDescriptionProcedure is the fully-qualified name of the UserService's
// SetDescription RPC. // SetDescription RPC.
UserServiceSetDescriptionProcedure = "/user.v1.UserService/SetDescription" UserServiceSetDescriptionProcedure = "/corestack.user.v1.UserService/SetDescription"
// UserServiceGetUserInfoProcedure is the fully-qualified name of the UserService's GetUserInfo RPC. // UserServiceGetUserInfoProcedure is the fully-qualified name of the UserService's GetUserInfo RPC.
UserServiceGetUserInfoProcedure = "/user.v1.UserService/GetUserInfo" UserServiceGetUserInfoProcedure = "/corestack.user.v1.UserService/GetUserInfo"
) )
// UserServiceClient is a client for the user.v1.UserService service. // UserServiceClient is a client for the corestack.user.v1.UserService service.
type UserServiceClient interface { type UserServiceClient interface {
SetPassword(context.Context, *connect.Request[v1.SetPasswordRequest]) (*connect.Response[v1.SetPasswordResponse], error) SetPassword(context.Context, *connect.Request[v1.SetPasswordRequest]) (*connect.Response[v1.SetPasswordResponse], error)
SetName(context.Context, *connect.Request[v1.SetNameRequest]) (*connect.Response[v1.SetNameResponse], error) SetName(context.Context, *connect.Request[v1.SetNameRequest]) (*connect.Response[v1.SetNameResponse], error)
@@ -59,16 +59,16 @@ type UserServiceClient interface {
GetUserInfo(context.Context, *connect.Request[v1.GetUserInfoRequest]) (*connect.Response[v1.GetUserInfoResponse], error) GetUserInfo(context.Context, *connect.Request[v1.GetUserInfoRequest]) (*connect.Response[v1.GetUserInfoResponse], error)
} }
// NewUserServiceClient constructs a client for the user.v1.UserService service. By default, it uses // NewUserServiceClient constructs a client for the corestack.user.v1.UserService service. By
// the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends // default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses,
// uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or // and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the
// connect.WithGRPCWeb() options. // connect.WithGRPC() or connect.WithGRPCWeb() options.
// //
// The URL supplied here should be the base URL for the Connect or gRPC server (for example, // The URL supplied here should be the base URL for the Connect or gRPC server (for example,
// http://api.acme.com or https://acme.com/grpc). // http://api.acme.com or https://acme.com/grpc).
func NewUserServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) UserServiceClient { func NewUserServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) UserServiceClient {
baseURL = strings.TrimRight(baseURL, "/") baseURL = strings.TrimRight(baseURL, "/")
userServiceMethods := v1.File_user_v1_service_proto.Services().ByName("UserService").Methods() userServiceMethods := v1.File_corestack_user_v1_service_proto.Services().ByName("UserService").Methods()
return &userServiceClient{ return &userServiceClient{
setPassword: connect.NewClient[v1.SetPasswordRequest, v1.SetPasswordResponse]( setPassword: connect.NewClient[v1.SetPasswordRequest, v1.SetPasswordResponse](
httpClient, httpClient,
@@ -119,37 +119,37 @@ type userServiceClient struct {
getUserInfo *connect.Client[v1.GetUserInfoRequest, v1.GetUserInfoResponse] getUserInfo *connect.Client[v1.GetUserInfoRequest, v1.GetUserInfoResponse]
} }
// SetPassword calls user.v1.UserService.SetPassword. // SetPassword calls corestack.user.v1.UserService.SetPassword.
func (c *userServiceClient) SetPassword(ctx context.Context, req *connect.Request[v1.SetPasswordRequest]) (*connect.Response[v1.SetPasswordResponse], error) { func (c *userServiceClient) SetPassword(ctx context.Context, req *connect.Request[v1.SetPasswordRequest]) (*connect.Response[v1.SetPasswordResponse], error) {
return c.setPassword.CallUnary(ctx, req) return c.setPassword.CallUnary(ctx, req)
} }
// SetName calls user.v1.UserService.SetName. // SetName calls corestack.user.v1.UserService.SetName.
func (c *userServiceClient) SetName(ctx context.Context, req *connect.Request[v1.SetNameRequest]) (*connect.Response[v1.SetNameResponse], error) { func (c *userServiceClient) SetName(ctx context.Context, req *connect.Request[v1.SetNameRequest]) (*connect.Response[v1.SetNameResponse], error) {
return c.setName.CallUnary(ctx, req) return c.setName.CallUnary(ctx, req)
} }
// GetAvatarUploadURL calls user.v1.UserService.GetAvatarUploadURL. // GetAvatarUploadURL calls corestack.user.v1.UserService.GetAvatarUploadURL.
func (c *userServiceClient) GetAvatarUploadURL(ctx context.Context, req *connect.Request[v1.GetAvatarUploadURLRequest]) (*connect.Response[v1.GetAvatarUploadURLResponse], error) { func (c *userServiceClient) GetAvatarUploadURL(ctx context.Context, req *connect.Request[v1.GetAvatarUploadURLRequest]) (*connect.Response[v1.GetAvatarUploadURLResponse], error) {
return c.getAvatarUploadURL.CallUnary(ctx, req) return c.getAvatarUploadURL.CallUnary(ctx, req)
} }
// SetAvatar calls user.v1.UserService.SetAvatar. // SetAvatar calls corestack.user.v1.UserService.SetAvatar.
func (c *userServiceClient) SetAvatar(ctx context.Context, req *connect.Request[v1.SetAvatarRequest]) (*connect.Response[v1.SetAvatarResponse], error) { func (c *userServiceClient) SetAvatar(ctx context.Context, req *connect.Request[v1.SetAvatarRequest]) (*connect.Response[v1.SetAvatarResponse], error) {
return c.setAvatar.CallUnary(ctx, req) return c.setAvatar.CallUnary(ctx, req)
} }
// SetDescription calls user.v1.UserService.SetDescription. // SetDescription calls corestack.user.v1.UserService.SetDescription.
func (c *userServiceClient) SetDescription(ctx context.Context, req *connect.Request[v1.SetDescriptionRequest]) (*connect.Response[v1.SetDescriptionResponse], error) { func (c *userServiceClient) SetDescription(ctx context.Context, req *connect.Request[v1.SetDescriptionRequest]) (*connect.Response[v1.SetDescriptionResponse], error) {
return c.setDescription.CallUnary(ctx, req) return c.setDescription.CallUnary(ctx, req)
} }
// GetUserInfo calls user.v1.UserService.GetUserInfo. // GetUserInfo calls corestack.user.v1.UserService.GetUserInfo.
func (c *userServiceClient) GetUserInfo(ctx context.Context, req *connect.Request[v1.GetUserInfoRequest]) (*connect.Response[v1.GetUserInfoResponse], error) { func (c *userServiceClient) GetUserInfo(ctx context.Context, req *connect.Request[v1.GetUserInfoRequest]) (*connect.Response[v1.GetUserInfoResponse], error) {
return c.getUserInfo.CallUnary(ctx, req) return c.getUserInfo.CallUnary(ctx, req)
} }
// UserServiceHandler is an implementation of the user.v1.UserService service. // UserServiceHandler is an implementation of the corestack.user.v1.UserService service.
type UserServiceHandler interface { type UserServiceHandler interface {
SetPassword(context.Context, *connect.Request[v1.SetPasswordRequest]) (*connect.Response[v1.SetPasswordResponse], error) SetPassword(context.Context, *connect.Request[v1.SetPasswordRequest]) (*connect.Response[v1.SetPasswordResponse], error)
SetName(context.Context, *connect.Request[v1.SetNameRequest]) (*connect.Response[v1.SetNameResponse], error) SetName(context.Context, *connect.Request[v1.SetNameRequest]) (*connect.Response[v1.SetNameResponse], error)
@@ -165,7 +165,7 @@ type UserServiceHandler interface {
// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
// and JSON codecs. They also support gzip compression. // and JSON codecs. They also support gzip compression.
func NewUserServiceHandler(svc UserServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { func NewUserServiceHandler(svc UserServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
userServiceMethods := v1.File_user_v1_service_proto.Services().ByName("UserService").Methods() userServiceMethods := v1.File_corestack_user_v1_service_proto.Services().ByName("UserService").Methods()
userServiceSetPasswordHandler := connect.NewUnaryHandler( userServiceSetPasswordHandler := connect.NewUnaryHandler(
UserServiceSetPasswordProcedure, UserServiceSetPasswordProcedure,
svc.SetPassword, svc.SetPassword,
@@ -202,7 +202,7 @@ func NewUserServiceHandler(svc UserServiceHandler, opts ...connect.HandlerOption
connect.WithSchema(userServiceMethods.ByName("GetUserInfo")), connect.WithSchema(userServiceMethods.ByName("GetUserInfo")),
connect.WithHandlerOptions(opts...), connect.WithHandlerOptions(opts...),
) )
return "/user.v1.UserService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { return "/corestack.user.v1.UserService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
switch r.URL.Path { switch r.URL.Path {
case UserServiceSetPasswordProcedure: case UserServiceSetPasswordProcedure:
userServiceSetPasswordHandler.ServeHTTP(w, r) userServiceSetPasswordHandler.ServeHTTP(w, r)
@@ -226,25 +226,25 @@ func NewUserServiceHandler(svc UserServiceHandler, opts ...connect.HandlerOption
type UnimplementedUserServiceHandler struct{} type UnimplementedUserServiceHandler struct{}
func (UnimplementedUserServiceHandler) SetPassword(context.Context, *connect.Request[v1.SetPasswordRequest]) (*connect.Response[v1.SetPasswordResponse], error) { func (UnimplementedUserServiceHandler) SetPassword(context.Context, *connect.Request[v1.SetPasswordRequest]) (*connect.Response[v1.SetPasswordResponse], error) {
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("user.v1.UserService.SetPassword is not implemented")) return nil, connect.NewError(connect.CodeUnimplemented, errors.New("corestack.user.v1.UserService.SetPassword is not implemented"))
} }
func (UnimplementedUserServiceHandler) SetName(context.Context, *connect.Request[v1.SetNameRequest]) (*connect.Response[v1.SetNameResponse], error) { func (UnimplementedUserServiceHandler) SetName(context.Context, *connect.Request[v1.SetNameRequest]) (*connect.Response[v1.SetNameResponse], error) {
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("user.v1.UserService.SetName is not implemented")) return nil, connect.NewError(connect.CodeUnimplemented, errors.New("corestack.user.v1.UserService.SetName is not implemented"))
} }
func (UnimplementedUserServiceHandler) GetAvatarUploadURL(context.Context, *connect.Request[v1.GetAvatarUploadURLRequest]) (*connect.Response[v1.GetAvatarUploadURLResponse], error) { func (UnimplementedUserServiceHandler) GetAvatarUploadURL(context.Context, *connect.Request[v1.GetAvatarUploadURLRequest]) (*connect.Response[v1.GetAvatarUploadURLResponse], error) {
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("user.v1.UserService.GetAvatarUploadURL is not implemented")) return nil, connect.NewError(connect.CodeUnimplemented, errors.New("corestack.user.v1.UserService.GetAvatarUploadURL is not implemented"))
} }
func (UnimplementedUserServiceHandler) SetAvatar(context.Context, *connect.Request[v1.SetAvatarRequest]) (*connect.Response[v1.SetAvatarResponse], error) { func (UnimplementedUserServiceHandler) SetAvatar(context.Context, *connect.Request[v1.SetAvatarRequest]) (*connect.Response[v1.SetAvatarResponse], error) {
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("user.v1.UserService.SetAvatar is not implemented")) return nil, connect.NewError(connect.CodeUnimplemented, errors.New("corestack.user.v1.UserService.SetAvatar is not implemented"))
} }
func (UnimplementedUserServiceHandler) SetDescription(context.Context, *connect.Request[v1.SetDescriptionRequest]) (*connect.Response[v1.SetDescriptionResponse], error) { func (UnimplementedUserServiceHandler) SetDescription(context.Context, *connect.Request[v1.SetDescriptionRequest]) (*connect.Response[v1.SetDescriptionResponse], error) {
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("user.v1.UserService.SetDescription is not implemented")) return nil, connect.NewError(connect.CodeUnimplemented, errors.New("corestack.user.v1.UserService.SetDescription is not implemented"))
} }
func (UnimplementedUserServiceHandler) GetUserInfo(context.Context, *connect.Request[v1.GetUserInfoRequest]) (*connect.Response[v1.GetUserInfoResponse], error) { func (UnimplementedUserServiceHandler) GetUserInfo(context.Context, *connect.Request[v1.GetUserInfoRequest]) (*connect.Response[v1.GetUserInfoResponse], error) {
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("user.v1.UserService.GetUserInfo is not implemented")) return nil, connect.NewError(connect.CodeUnimplemented, errors.New("corestack.user.v1.UserService.GetUserInfo is not implemented"))
} }

View File

@@ -1,92 +0,0 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.7
// protoc (unknown)
// source: user/v1/service.proto
package userv1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
var File_user_v1_service_proto protoreflect.FileDescriptor
const file_user_v1_service_proto_rawDesc = "" +
"\n" +
"\x15user/v1/service.proto\x12\auser.v1\x1a\x12user/v1/user.proto2\xd5\x03\n" +
"\vUserService\x12H\n" +
"\vSetPassword\x12\x1b.user.v1.SetPasswordRequest\x1a\x1c.user.v1.SetPasswordResponse\x12<\n" +
"\aSetName\x12\x17.user.v1.SetNameRequest\x1a\x18.user.v1.SetNameResponse\x12]\n" +
"\x12GetAvatarUploadURL\x12\".user.v1.GetAvatarUploadURLRequest\x1a#.user.v1.GetAvatarUploadURLResponse\x12B\n" +
"\tSetAvatar\x12\x19.user.v1.SetAvatarRequest\x1a\x1a.user.v1.SetAvatarResponse\x12Q\n" +
"\x0eSetDescription\x12\x1e.user.v1.SetDescriptionRequest\x1a\x1f.user.v1.SetDescriptionResponse\x12H\n" +
"\vGetUserInfo\x12\x1b.user.v1.GetUserInfoRequest\x1a\x1c.user.v1.GetUserInfoResponseB1Z/git.shenxianhe.cn/shenxianhe/sdk/user/v1;userv1b\x06proto3"
var file_user_v1_service_proto_goTypes = []any{
(*SetPasswordRequest)(nil), // 0: user.v1.SetPasswordRequest
(*SetNameRequest)(nil), // 1: user.v1.SetNameRequest
(*GetAvatarUploadURLRequest)(nil), // 2: user.v1.GetAvatarUploadURLRequest
(*SetAvatarRequest)(nil), // 3: user.v1.SetAvatarRequest
(*SetDescriptionRequest)(nil), // 4: user.v1.SetDescriptionRequest
(*GetUserInfoRequest)(nil), // 5: user.v1.GetUserInfoRequest
(*SetPasswordResponse)(nil), // 6: user.v1.SetPasswordResponse
(*SetNameResponse)(nil), // 7: user.v1.SetNameResponse
(*GetAvatarUploadURLResponse)(nil), // 8: user.v1.GetAvatarUploadURLResponse
(*SetAvatarResponse)(nil), // 9: user.v1.SetAvatarResponse
(*SetDescriptionResponse)(nil), // 10: user.v1.SetDescriptionResponse
(*GetUserInfoResponse)(nil), // 11: user.v1.GetUserInfoResponse
}
var file_user_v1_service_proto_depIdxs = []int32{
0, // 0: user.v1.UserService.SetPassword:input_type -> user.v1.SetPasswordRequest
1, // 1: user.v1.UserService.SetName:input_type -> user.v1.SetNameRequest
2, // 2: user.v1.UserService.GetAvatarUploadURL:input_type -> user.v1.GetAvatarUploadURLRequest
3, // 3: user.v1.UserService.SetAvatar:input_type -> user.v1.SetAvatarRequest
4, // 4: user.v1.UserService.SetDescription:input_type -> user.v1.SetDescriptionRequest
5, // 5: user.v1.UserService.GetUserInfo:input_type -> user.v1.GetUserInfoRequest
6, // 6: user.v1.UserService.SetPassword:output_type -> user.v1.SetPasswordResponse
7, // 7: user.v1.UserService.SetName:output_type -> user.v1.SetNameResponse
8, // 8: user.v1.UserService.GetAvatarUploadURL:output_type -> user.v1.GetAvatarUploadURLResponse
9, // 9: user.v1.UserService.SetAvatar:output_type -> user.v1.SetAvatarResponse
10, // 10: user.v1.UserService.SetDescription:output_type -> user.v1.SetDescriptionResponse
11, // 11: user.v1.UserService.GetUserInfo:output_type -> user.v1.GetUserInfoResponse
6, // [6:12] is the sub-list for method output_type
0, // [0:6] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_user_v1_service_proto_init() }
func file_user_v1_service_proto_init() {
if File_user_v1_service_proto != nil {
return
}
file_user_v1_user_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_user_v1_service_proto_rawDesc), len(file_user_v1_service_proto_rawDesc)),
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_user_v1_service_proto_goTypes,
DependencyIndexes: file_user_v1_service_proto_depIdxs,
}.Build()
File_user_v1_service_proto = out.File
file_user_v1_service_proto_goTypes = nil
file_user_v1_service_proto_depIdxs = nil
}