自动生成 protobuf 代码 (tag: v1.6.0)
This commit is contained in:
166
admin/v1/adminv1connect/service.connect.go
Normal file
166
admin/v1/adminv1connect/service.connect.go
Normal file
@@ -0,0 +1,166 @@
|
||||
// Code generated by protoc-gen-connect-go. DO NOT EDIT.
|
||||
//
|
||||
// Source: admin/v1/service.proto
|
||||
|
||||
package adminv1connect
|
||||
|
||||
import (
|
||||
connect "connectrpc.com/connect"
|
||||
context "context"
|
||||
errors "errors"
|
||||
v1 "git.shenxianhe.cn/shenxianhe/sdk/admin/v1"
|
||||
http "net/http"
|
||||
strings "strings"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file and the connect package are
|
||||
// compatible. If you get a compiler error that this constant is not defined, this code was
|
||||
// generated with a version of connect newer than the one compiled into your binary. You can fix the
|
||||
// problem by either regenerating this code with an older version of connect or updating the connect
|
||||
// version compiled into your binary.
|
||||
const _ = connect.IsAtLeastVersion1_13_0
|
||||
|
||||
const (
|
||||
// AdminServiceName is the fully-qualified name of the AdminService service.
|
||||
AdminServiceName = "admin.v1.AdminService"
|
||||
)
|
||||
|
||||
// These constants are the fully-qualified names of the RPCs defined in this package. They're
|
||||
// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
|
||||
//
|
||||
// Note that these are different from the fully-qualified method names used by
|
||||
// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
|
||||
// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
|
||||
// period.
|
||||
const (
|
||||
// AdminServiceListSMSSignProcedure is the fully-qualified name of the AdminService's ListSMSSign
|
||||
// RPC.
|
||||
AdminServiceListSMSSignProcedure = "/admin.v1.AdminService/ListSMSSign"
|
||||
// AdminServiceSendSMSProcedure is the fully-qualified name of the AdminService's SendSMS RPC.
|
||||
AdminServiceSendSMSProcedure = "/admin.v1.AdminService/SendSMS"
|
||||
// AdminServiceGetUserInfoProcedure is the fully-qualified name of the AdminService's GetUserInfo
|
||||
// RPC.
|
||||
AdminServiceGetUserInfoProcedure = "/admin.v1.AdminService/GetUserInfo"
|
||||
)
|
||||
|
||||
// AdminServiceClient is a client for the admin.v1.AdminService service.
|
||||
type AdminServiceClient interface {
|
||||
ListSMSSign(context.Context, *connect.Request[v1.ListSMSSignRequest]) (*connect.Response[v1.ListSMSSignResponse], 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)
|
||||
}
|
||||
|
||||
// NewAdminServiceClient constructs a client for the admin.v1.AdminService service. By default, it
|
||||
// uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends
|
||||
// uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or
|
||||
// connect.WithGRPCWeb() options.
|
||||
//
|
||||
// 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).
|
||||
func NewAdminServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AdminServiceClient {
|
||||
baseURL = strings.TrimRight(baseURL, "/")
|
||||
adminServiceMethods := v1.File_admin_v1_service_proto.Services().ByName("AdminService").Methods()
|
||||
return &adminServiceClient{
|
||||
listSMSSign: connect.NewClient[v1.ListSMSSignRequest, v1.ListSMSSignResponse](
|
||||
httpClient,
|
||||
baseURL+AdminServiceListSMSSignProcedure,
|
||||
connect.WithSchema(adminServiceMethods.ByName("ListSMSSign")),
|
||||
connect.WithClientOptions(opts...),
|
||||
),
|
||||
sendSMS: connect.NewClient[v1.SendSMSRequest, v1.SendSMSResponse](
|
||||
httpClient,
|
||||
baseURL+AdminServiceSendSMSProcedure,
|
||||
connect.WithSchema(adminServiceMethods.ByName("SendSMS")),
|
||||
connect.WithClientOptions(opts...),
|
||||
),
|
||||
getUserInfo: connect.NewClient[v1.GetUserInfoRequest, v1.GetUserInfoResponse](
|
||||
httpClient,
|
||||
baseURL+AdminServiceGetUserInfoProcedure,
|
||||
connect.WithSchema(adminServiceMethods.ByName("GetUserInfo")),
|
||||
connect.WithClientOptions(opts...),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
// adminServiceClient implements AdminServiceClient.
|
||||
type adminServiceClient struct {
|
||||
listSMSSign *connect.Client[v1.ListSMSSignRequest, v1.ListSMSSignResponse]
|
||||
sendSMS *connect.Client[v1.SendSMSRequest, v1.SendSMSResponse]
|
||||
getUserInfo *connect.Client[v1.GetUserInfoRequest, v1.GetUserInfoResponse]
|
||||
}
|
||||
|
||||
// ListSMSSign calls admin.v1.AdminService.ListSMSSign.
|
||||
func (c *adminServiceClient) ListSMSSign(ctx context.Context, req *connect.Request[v1.ListSMSSignRequest]) (*connect.Response[v1.ListSMSSignResponse], error) {
|
||||
return c.listSMSSign.CallUnary(ctx, req)
|
||||
}
|
||||
|
||||
// SendSMS calls admin.v1.AdminService.SendSMS.
|
||||
func (c *adminServiceClient) SendSMS(ctx context.Context, req *connect.Request[v1.SendSMSRequest]) (*connect.Response[v1.SendSMSResponse], error) {
|
||||
return c.sendSMS.CallUnary(ctx, req)
|
||||
}
|
||||
|
||||
// GetUserInfo calls admin.v1.AdminService.GetUserInfo.
|
||||
func (c *adminServiceClient) GetUserInfo(ctx context.Context, req *connect.Request[v1.GetUserInfoRequest]) (*connect.Response[v1.GetUserInfoResponse], error) {
|
||||
return c.getUserInfo.CallUnary(ctx, req)
|
||||
}
|
||||
|
||||
// AdminServiceHandler is an implementation of the admin.v1.AdminService service.
|
||||
type AdminServiceHandler interface {
|
||||
ListSMSSign(context.Context, *connect.Request[v1.ListSMSSignRequest]) (*connect.Response[v1.ListSMSSignResponse], 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)
|
||||
}
|
||||
|
||||
// NewAdminServiceHandler builds an HTTP handler from the service implementation. It returns the
|
||||
// path on which to mount the handler and the handler itself.
|
||||
//
|
||||
// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
|
||||
// and JSON codecs. They also support gzip compression.
|
||||
func NewAdminServiceHandler(svc AdminServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
|
||||
adminServiceMethods := v1.File_admin_v1_service_proto.Services().ByName("AdminService").Methods()
|
||||
adminServiceListSMSSignHandler := connect.NewUnaryHandler(
|
||||
AdminServiceListSMSSignProcedure,
|
||||
svc.ListSMSSign,
|
||||
connect.WithSchema(adminServiceMethods.ByName("ListSMSSign")),
|
||||
connect.WithHandlerOptions(opts...),
|
||||
)
|
||||
adminServiceSendSMSHandler := connect.NewUnaryHandler(
|
||||
AdminServiceSendSMSProcedure,
|
||||
svc.SendSMS,
|
||||
connect.WithSchema(adminServiceMethods.ByName("SendSMS")),
|
||||
connect.WithHandlerOptions(opts...),
|
||||
)
|
||||
adminServiceGetUserInfoHandler := connect.NewUnaryHandler(
|
||||
AdminServiceGetUserInfoProcedure,
|
||||
svc.GetUserInfo,
|
||||
connect.WithSchema(adminServiceMethods.ByName("GetUserInfo")),
|
||||
connect.WithHandlerOptions(opts...),
|
||||
)
|
||||
return "/admin.v1.AdminService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
switch r.URL.Path {
|
||||
case AdminServiceListSMSSignProcedure:
|
||||
adminServiceListSMSSignHandler.ServeHTTP(w, r)
|
||||
case AdminServiceSendSMSProcedure:
|
||||
adminServiceSendSMSHandler.ServeHTTP(w, r)
|
||||
case AdminServiceGetUserInfoProcedure:
|
||||
adminServiceGetUserInfoHandler.ServeHTTP(w, r)
|
||||
default:
|
||||
http.NotFound(w, r)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// UnimplementedAdminServiceHandler returns CodeUnimplemented from all methods.
|
||||
type UnimplementedAdminServiceHandler struct{}
|
||||
|
||||
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"))
|
||||
}
|
||||
|
||||
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"))
|
||||
}
|
||||
|
||||
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"))
|
||||
}
|
||||
78
admin/v1/service.pb.go
Normal file
78
admin/v1/service.pb.go
Normal file
@@ -0,0 +1,78 @@
|
||||
// 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
|
||||
}
|
||||
459
admin/v1/sms.pb.go
Normal file
459
admin/v1/sms.pb.go
Normal file
@@ -0,0 +1,459 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.7
|
||||
// protoc (unknown)
|
||||
// source: admin/v1/sms.proto
|
||||
|
||||
package adminv1
|
||||
|
||||
import (
|
||||
v1 "git.shenxianhe.cn/shenxianhe/sdk/enums/v1"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
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)
|
||||
)
|
||||
|
||||
type SendSMSRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"`
|
||||
SignName string `protobuf:"bytes,2,opt,name=sign_name,json=signName,proto3" json:"sign_name,omitempty"`
|
||||
TemplateCode string `protobuf:"bytes,3,opt,name=template_code,json=templateCode,proto3" json:"template_code,omitempty"`
|
||||
TemplateParams map[string]string `protobuf:"bytes,4,rep,name=template_params,json=templateParams,proto3" json:"template_params,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SendSMSRequest) Reset() {
|
||||
*x = SendSMSRequest{}
|
||||
mi := &file_admin_v1_sms_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SendSMSRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SendSMSRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SendSMSRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_admin_v1_sms_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SendSMSRequest.ProtoReflect.Descriptor instead.
|
||||
func (*SendSMSRequest) Descriptor() ([]byte, []int) {
|
||||
return file_admin_v1_sms_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *SendSMSRequest) GetPhone() string {
|
||||
if x != nil {
|
||||
return x.Phone
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *SendSMSRequest) GetSignName() string {
|
||||
if x != nil {
|
||||
return x.SignName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *SendSMSRequest) GetTemplateCode() string {
|
||||
if x != nil {
|
||||
return x.TemplateCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *SendSMSRequest) GetTemplateParams() map[string]string {
|
||||
if x != nil {
|
||||
return x.TemplateParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type SendSMSResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SendSMSResponse) Reset() {
|
||||
*x = SendSMSResponse{}
|
||||
mi := &file_admin_v1_sms_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SendSMSResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SendSMSResponse) ProtoMessage() {}
|
||||
|
||||
func (x *SendSMSResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_admin_v1_sms_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SendSMSResponse.ProtoReflect.Descriptor instead.
|
||||
func (*SendSMSResponse) Descriptor() ([]byte, []int) {
|
||||
return file_admin_v1_sms_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
type ListSMSSignRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ListSMSSignRequest) Reset() {
|
||||
*x = ListSMSSignRequest{}
|
||||
mi := &file_admin_v1_sms_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ListSMSSignRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ListSMSSignRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ListSMSSignRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_admin_v1_sms_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ListSMSSignRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ListSMSSignRequest) Descriptor() ([]byte, []int) {
|
||||
return file_admin_v1_sms_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *ListSMSSignRequest) GetOffset() int32 {
|
||||
if x != nil {
|
||||
return x.Offset
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type SMSSignReason struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
||||
SubContent string `protobuf:"bytes,2,opt,name=sub_content,json=subContent,proto3" json:"sub_content,omitempty"`
|
||||
CreateAt int32 `protobuf:"varint,3,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SMSSignReason) Reset() {
|
||||
*x = SMSSignReason{}
|
||||
mi := &file_admin_v1_sms_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SMSSignReason) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SMSSignReason) ProtoMessage() {}
|
||||
|
||||
func (x *SMSSignReason) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_admin_v1_sms_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SMSSignReason.ProtoReflect.Descriptor instead.
|
||||
func (*SMSSignReason) Descriptor() ([]byte, []int) {
|
||||
return file_admin_v1_sms_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *SMSSignReason) GetContent() string {
|
||||
if x != nil {
|
||||
return x.Content
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *SMSSignReason) GetSubContent() string {
|
||||
if x != nil {
|
||||
return x.SubContent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *SMSSignReason) GetCreateAt() int32 {
|
||||
if x != nil {
|
||||
return x.CreateAt
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type SMSSign struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
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"` // 签名名称
|
||||
Status v1.SMSSignStatus `protobuf:"varint,3,opt,name=status,proto3,enum=enums.v1.SMSSignStatus" json:"status,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"` // 签名拒绝原因
|
||||
CreatedAt int32 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SMSSign) Reset() {
|
||||
*x = SMSSign{}
|
||||
mi := &file_admin_v1_sms_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SMSSign) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SMSSign) ProtoMessage() {}
|
||||
|
||||
func (x *SMSSign) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_admin_v1_sms_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SMSSign.ProtoReflect.Descriptor instead.
|
||||
func (*SMSSign) Descriptor() ([]byte, []int) {
|
||||
return file_admin_v1_sms_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *SMSSign) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *SMSSign) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *SMSSign) GetStatus() v1.SMSSignStatus {
|
||||
if x != nil {
|
||||
return x.Status
|
||||
}
|
||||
return v1.SMSSignStatus(0)
|
||||
}
|
||||
|
||||
func (x *SMSSign) GetType() string {
|
||||
if x != nil {
|
||||
return x.Type
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *SMSSign) GetReasons() *SMSSignReason {
|
||||
if x != nil {
|
||||
return x.Reasons
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SMSSign) GetCreatedAt() int32 {
|
||||
if x != nil {
|
||||
return x.CreatedAt
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type ListSMSSignResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
List []*SMSSign `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
|
||||
Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ListSMSSignResponse) Reset() {
|
||||
*x = ListSMSSignResponse{}
|
||||
mi := &file_admin_v1_sms_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ListSMSSignResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ListSMSSignResponse) ProtoMessage() {}
|
||||
|
||||
func (x *ListSMSSignResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_admin_v1_sms_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ListSMSSignResponse.ProtoReflect.Descriptor instead.
|
||||
func (*ListSMSSignResponse) Descriptor() ([]byte, []int) {
|
||||
return file_admin_v1_sms_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *ListSMSSignResponse) GetList() []*SMSSign {
|
||||
if x != nil {
|
||||
return x.List
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ListSMSSignResponse) GetCount() int32 {
|
||||
if x != nil {
|
||||
return x.Count
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
var File_admin_v1_sms_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_admin_v1_sms_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x12admin/v1/sms.proto\x12\badmin.v1\x1a\x12enums/v1/sms.proto\"\x82\x02\n" +
|
||||
"\x0eSendSMSRequest\x12\x14\n" +
|
||||
"\x05phone\x18\x01 \x01(\tR\x05phone\x12\x1b\n" +
|
||||
"\tsign_name\x18\x02 \x01(\tR\bsignName\x12#\n" +
|
||||
"\rtemplate_code\x18\x03 \x01(\tR\ftemplateCode\x12U\n" +
|
||||
"\x0ftemplate_params\x18\x04 \x03(\v2,.admin.v1.SendSMSRequest.TemplateParamsEntryR\x0etemplateParams\x1aA\n" +
|
||||
"\x13TemplateParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x11\n" +
|
||||
"\x0fSendSMSResponse\",\n" +
|
||||
"\x12ListSMSSignRequest\x12\x16\n" +
|
||||
"\x06offset\x18\x01 \x01(\x05R\x06offset\"g\n" +
|
||||
"\rSMSSignReason\x12\x18\n" +
|
||||
"\acontent\x18\x01 \x01(\tR\acontent\x12\x1f\n" +
|
||||
"\vsub_content\x18\x02 \x01(\tR\n" +
|
||||
"subContent\x12\x1b\n" +
|
||||
"\tcreate_at\x18\x03 \x01(\x05R\bcreateAt\"\xc4\x01\n" +
|
||||
"\aSMSSign\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
||||
"\x04name\x18\x02 \x01(\tR\x04name\x12/\n" +
|
||||
"\x06status\x18\x03 \x01(\x0e2\x17.enums.v1.SMSSignStatusR\x06status\x12\x12\n" +
|
||||
"\x04type\x18\x04 \x01(\tR\x04type\x121\n" +
|
||||
"\areasons\x18\x05 \x01(\v2\x17.admin.v1.SMSSignReasonR\areasons\x12\x1d\n" +
|
||||
"\n" +
|
||||
"created_at\x18\x06 \x01(\x05R\tcreatedAt\"R\n" +
|
||||
"\x13ListSMSSignResponse\x12%\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x11.admin.v1.SMSSignR\x04list\x12\x14\n" +
|
||||
"\x05count\x18\x02 \x01(\x05R\x05countB3Z1git.shenxianhe.cn/shenxianhe/sdk/admin/v1;adminv1b\x06proto3"
|
||||
|
||||
var (
|
||||
file_admin_v1_sms_proto_rawDescOnce sync.Once
|
||||
file_admin_v1_sms_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_admin_v1_sms_proto_rawDescGZIP() []byte {
|
||||
file_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)))
|
||||
})
|
||||
return file_admin_v1_sms_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_admin_v1_sms_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_admin_v1_sms_proto_goTypes = []any{
|
||||
(*SendSMSRequest)(nil), // 0: admin.v1.SendSMSRequest
|
||||
(*SendSMSResponse)(nil), // 1: admin.v1.SendSMSResponse
|
||||
(*ListSMSSignRequest)(nil), // 2: admin.v1.ListSMSSignRequest
|
||||
(*SMSSignReason)(nil), // 3: admin.v1.SMSSignReason
|
||||
(*SMSSign)(nil), // 4: admin.v1.SMSSign
|
||||
(*ListSMSSignResponse)(nil), // 5: admin.v1.ListSMSSignResponse
|
||||
nil, // 6: admin.v1.SendSMSRequest.TemplateParamsEntry
|
||||
(v1.SMSSignStatus)(0), // 7: enums.v1.SMSSignStatus
|
||||
}
|
||||
var file_admin_v1_sms_proto_depIdxs = []int32{
|
||||
6, // 0: admin.v1.SendSMSRequest.template_params:type_name -> admin.v1.SendSMSRequest.TemplateParamsEntry
|
||||
7, // 1: admin.v1.SMSSign.status:type_name -> enums.v1.SMSSignStatus
|
||||
3, // 2: admin.v1.SMSSign.reasons:type_name -> admin.v1.SMSSignReason
|
||||
4, // 3: admin.v1.ListSMSSignResponse.list:type_name -> admin.v1.SMSSign
|
||||
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 extension type_name
|
||||
4, // [4:4] is the sub-list for extension extendee
|
||||
0, // [0:4] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_admin_v1_sms_proto_init() }
|
||||
func file_admin_v1_sms_proto_init() {
|
||||
if File_admin_v1_sms_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_admin_v1_sms_proto_rawDesc), len(file_admin_v1_sms_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 7,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_admin_v1_sms_proto_goTypes,
|
||||
DependencyIndexes: file_admin_v1_sms_proto_depIdxs,
|
||||
MessageInfos: file_admin_v1_sms_proto_msgTypes,
|
||||
}.Build()
|
||||
File_admin_v1_sms_proto = out.File
|
||||
file_admin_v1_sms_proto_goTypes = nil
|
||||
file_admin_v1_sms_proto_depIdxs = nil
|
||||
}
|
||||
232
admin/v1/user.pb.go
Normal file
232
admin/v1/user.pb.go
Normal file
@@ -0,0 +1,232 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.7
|
||||
// protoc (unknown)
|
||||
// source: admin/v1/user.proto
|
||||
|
||||
package adminv1
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
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)
|
||||
)
|
||||
|
||||
type GetUserInfoRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||||
InvitationCode string `protobuf:"bytes,2,opt,name=invitation_code,json=invitationCode,proto3" json:"invitation_code,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *GetUserInfoRequest) Reset() {
|
||||
*x = GetUserInfoRequest{}
|
||||
mi := &file_admin_v1_user_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *GetUserInfoRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetUserInfoRequest) ProtoMessage() {}
|
||||
|
||||
func (x *GetUserInfoRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_admin_v1_user_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use GetUserInfoRequest.ProtoReflect.Descriptor instead.
|
||||
func (*GetUserInfoRequest) Descriptor() ([]byte, []int) {
|
||||
return file_admin_v1_user_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *GetUserInfoRequest) GetUserId() string {
|
||||
if x != nil {
|
||||
return x.UserId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *GetUserInfoRequest) GetInvitationCode() string {
|
||||
if x != nil {
|
||||
return x.InvitationCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type GetUserInfoResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Avatar string `protobuf:"bytes,2,opt,name=avatar,proto3" json:"avatar,omitempty"`
|
||||
InvitationCode string `protobuf:"bytes,3,opt,name=invitation_code,json=invitationCode,proto3" json:"invitation_code,omitempty"`
|
||||
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
|
||||
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Phone string `protobuf:"bytes,6,opt,name=phone,proto3" json:"phone,omitempty"`
|
||||
Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *GetUserInfoResponse) Reset() {
|
||||
*x = GetUserInfoResponse{}
|
||||
mi := &file_admin_v1_user_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *GetUserInfoResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetUserInfoResponse) ProtoMessage() {}
|
||||
|
||||
func (x *GetUserInfoResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_admin_v1_user_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use GetUserInfoResponse.ProtoReflect.Descriptor instead.
|
||||
func (*GetUserInfoResponse) Descriptor() ([]byte, []int) {
|
||||
return file_admin_v1_user_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *GetUserInfoResponse) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *GetUserInfoResponse) GetAvatar() string {
|
||||
if x != nil {
|
||||
return x.Avatar
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *GetUserInfoResponse) GetInvitationCode() string {
|
||||
if x != nil {
|
||||
return x.InvitationCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *GetUserInfoResponse) GetDescription() string {
|
||||
if x != nil {
|
||||
return x.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *GetUserInfoResponse) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *GetUserInfoResponse) GetPhone() string {
|
||||
if x != nil {
|
||||
return x.Phone
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *GetUserInfoResponse) GetEmail() string {
|
||||
if x != nil {
|
||||
return x.Email
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_admin_v1_user_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_admin_v1_user_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x13admin/v1/user.proto\x12\badmin.v1\"V\n" +
|
||||
"\x12GetUserInfoRequest\x12\x17\n" +
|
||||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12'\n" +
|
||||
"\x0finvitation_code\x18\x02 \x01(\tR\x0einvitationCode\"\xc8\x01\n" +
|
||||
"\x13GetUserInfoResponse\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" +
|
||||
"\x06avatar\x18\x02 \x01(\tR\x06avatar\x12'\n" +
|
||||
"\x0finvitation_code\x18\x03 \x01(\tR\x0einvitationCode\x12 \n" +
|
||||
"\vdescription\x18\x04 \x01(\tR\vdescription\x12\x12\n" +
|
||||
"\x04name\x18\x05 \x01(\tR\x04name\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"
|
||||
|
||||
var (
|
||||
file_admin_v1_user_proto_rawDescOnce sync.Once
|
||||
file_admin_v1_user_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_admin_v1_user_proto_rawDescGZIP() []byte {
|
||||
file_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)))
|
||||
})
|
||||
return file_admin_v1_user_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_admin_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_admin_v1_user_proto_goTypes = []any{
|
||||
(*GetUserInfoRequest)(nil), // 0: admin.v1.GetUserInfoRequest
|
||||
(*GetUserInfoResponse)(nil), // 1: admin.v1.GetUserInfoResponse
|
||||
}
|
||||
var file_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 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_user_proto_init() }
|
||||
func file_admin_v1_user_proto_init() {
|
||||
if File_admin_v1_user_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_admin_v1_user_proto_rawDesc), len(file_admin_v1_user_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_admin_v1_user_proto_goTypes,
|
||||
DependencyIndexes: file_admin_v1_user_proto_depIdxs,
|
||||
MessageInfos: file_admin_v1_user_proto_msgTypes,
|
||||
}.Build()
|
||||
File_admin_v1_user_proto = out.File
|
||||
file_admin_v1_user_proto_goTypes = nil
|
||||
file_admin_v1_user_proto_depIdxs = nil
|
||||
}
|
||||
Reference in New Issue
Block a user