feat: payment
CI / changes (push) Successful in 37s
CI / ad (push) Successful in 1s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 23s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 1s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 1s
CI / payment (push) Successful in 33s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 18s
CI / wecom (push) Successful in 0s
CI / changes (push) Successful in 37s
CI / ad (push) Successful in 1s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 23s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 1s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 1s
CI / payment (push) Successful in 33s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 18s
CI / wecom (push) Successful in 0s
This commit is contained in:
@@ -35,7 +35,7 @@ service Payment {
|
||||
|
||||
rpc Notify(NotifyReq) returns (Response) {
|
||||
option (google.api.http) = {
|
||||
post: "/api/v3/payment/notify/{channel}"
|
||||
post: "/api/v3/payment/notify"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
|
||||
+218
-29
@@ -1218,6 +1218,174 @@ func (x *InternalUpdateData) GetName() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
type InternalGetUserInfoReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||||
CredentialType string `protobuf:"bytes,2,opt,name=credential_type,json=credentialType,proto3" json:"credential_type,omitempty"`
|
||||
SubjectType string `protobuf:"bytes,3,opt,name=subject_type,json=subjectType,proto3" json:"subject_type,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *InternalGetUserInfoReq) Reset() {
|
||||
*x = InternalGetUserInfoReq{}
|
||||
mi := &file_user_user_proto_msgTypes[19]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *InternalGetUserInfoReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*InternalGetUserInfoReq) ProtoMessage() {}
|
||||
|
||||
func (x *InternalGetUserInfoReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_user_user_proto_msgTypes[19]
|
||||
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 InternalGetUserInfoReq.ProtoReflect.Descriptor instead.
|
||||
func (*InternalGetUserInfoReq) Descriptor() ([]byte, []int) {
|
||||
return file_user_user_proto_rawDescGZIP(), []int{19}
|
||||
}
|
||||
|
||||
func (x *InternalGetUserInfoReq) GetUserId() int64 {
|
||||
if x != nil {
|
||||
return x.UserId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *InternalGetUserInfoReq) GetCredentialType() string {
|
||||
if x != nil {
|
||||
return x.CredentialType
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *InternalGetUserInfoReq) GetSubjectType() string {
|
||||
if x != nil {
|
||||
return x.SubjectType
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type InternalGetUserInfoData struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Mobile string `protobuf:"bytes,2,opt,name=mobile,proto3" json:"mobile,omitempty"`
|
||||
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"`
|
||||
Gender uint32 `protobuf:"varint,5,opt,name=gender,proto3" json:"gender,omitempty"`
|
||||
Birthday string `protobuf:"bytes,6,opt,name=birthday,proto3" json:"birthday,omitempty"`
|
||||
Status uint32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"`
|
||||
Identifier string `protobuf:"bytes,8,opt,name=identifier,proto3" json:"identifier,omitempty"`
|
||||
CredentialType string `protobuf:"bytes,9,opt,name=credential_type,json=credentialType,proto3" json:"credential_type,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *InternalGetUserInfoData) Reset() {
|
||||
*x = InternalGetUserInfoData{}
|
||||
mi := &file_user_user_proto_msgTypes[20]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *InternalGetUserInfoData) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*InternalGetUserInfoData) ProtoMessage() {}
|
||||
|
||||
func (x *InternalGetUserInfoData) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_user_user_proto_msgTypes[20]
|
||||
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 InternalGetUserInfoData.ProtoReflect.Descriptor instead.
|
||||
func (*InternalGetUserInfoData) Descriptor() ([]byte, []int) {
|
||||
return file_user_user_proto_rawDescGZIP(), []int{20}
|
||||
}
|
||||
|
||||
func (x *InternalGetUserInfoData) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *InternalGetUserInfoData) GetMobile() string {
|
||||
if x != nil {
|
||||
return x.Mobile
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *InternalGetUserInfoData) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *InternalGetUserInfoData) GetAvatar() string {
|
||||
if x != nil {
|
||||
return x.Avatar
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *InternalGetUserInfoData) GetGender() uint32 {
|
||||
if x != nil {
|
||||
return x.Gender
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *InternalGetUserInfoData) GetBirthday() string {
|
||||
if x != nil {
|
||||
return x.Birthday
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *InternalGetUserInfoData) GetStatus() uint32 {
|
||||
if x != nil {
|
||||
return x.Status
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *InternalGetUserInfoData) GetIdentifier() string {
|
||||
if x != nil {
|
||||
return x.Identifier
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *InternalGetUserInfoData) GetCredentialType() string {
|
||||
if x != nil {
|
||||
return x.CredentialType
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type InfoReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
@@ -1226,7 +1394,7 @@ type InfoReq struct {
|
||||
|
||||
func (x *InfoReq) Reset() {
|
||||
*x = InfoReq{}
|
||||
mi := &file_user_user_proto_msgTypes[19]
|
||||
mi := &file_user_user_proto_msgTypes[21]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -1238,7 +1406,7 @@ func (x *InfoReq) String() string {
|
||||
func (*InfoReq) ProtoMessage() {}
|
||||
|
||||
func (x *InfoReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_user_user_proto_msgTypes[19]
|
||||
mi := &file_user_user_proto_msgTypes[21]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -1251,7 +1419,7 @@ func (x *InfoReq) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use InfoReq.ProtoReflect.Descriptor instead.
|
||||
func (*InfoReq) Descriptor() ([]byte, []int) {
|
||||
return file_user_user_proto_rawDescGZIP(), []int{19}
|
||||
return file_user_user_proto_rawDescGZIP(), []int{21}
|
||||
}
|
||||
|
||||
type ClientReq struct {
|
||||
@@ -1265,7 +1433,7 @@ type ClientReq struct {
|
||||
|
||||
func (x *ClientReq) Reset() {
|
||||
*x = ClientReq{}
|
||||
mi := &file_user_user_proto_msgTypes[20]
|
||||
mi := &file_user_user_proto_msgTypes[22]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -1277,7 +1445,7 @@ func (x *ClientReq) String() string {
|
||||
func (*ClientReq) ProtoMessage() {}
|
||||
|
||||
func (x *ClientReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_user_user_proto_msgTypes[20]
|
||||
mi := &file_user_user_proto_msgTypes[22]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -1290,7 +1458,7 @@ func (x *ClientReq) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ClientReq.ProtoReflect.Descriptor instead.
|
||||
func (*ClientReq) Descriptor() ([]byte, []int) {
|
||||
return file_user_user_proto_rawDescGZIP(), []int{20}
|
||||
return file_user_user_proto_rawDescGZIP(), []int{22}
|
||||
}
|
||||
|
||||
func (x *ClientReq) GetName() string {
|
||||
@@ -1412,12 +1580,28 @@ const file_user_user_proto_rawDesc = "" +
|
||||
"\x12InternalUpdateData\x12\x17\n" +
|
||||
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x16\n" +
|
||||
"\x06mobile\x18\x02 \x01(\tR\x06mobile\x12\x12\n" +
|
||||
"\x04name\x18\x03 \x01(\tR\x04name\"\t\n" +
|
||||
"\x04name\x18\x03 \x01(\tR\x04name\"}\n" +
|
||||
"\x16InternalGetUserInfoReq\x12\x17\n" +
|
||||
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12'\n" +
|
||||
"\x0fcredential_type\x18\x02 \x01(\tR\x0ecredentialType\x12!\n" +
|
||||
"\fsubject_type\x18\x03 \x01(\tR\vsubjectType\"\x82\x02\n" +
|
||||
"\x17InternalGetUserInfoData\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" +
|
||||
"\x06mobile\x18\x02 \x01(\tR\x06mobile\x12\x12\n" +
|
||||
"\x04name\x18\x03 \x01(\tR\x04name\x12\x16\n" +
|
||||
"\x06avatar\x18\x04 \x01(\tR\x06avatar\x12\x16\n" +
|
||||
"\x06gender\x18\x05 \x01(\rR\x06gender\x12\x1a\n" +
|
||||
"\bbirthday\x18\x06 \x01(\tR\bbirthday\x12\x16\n" +
|
||||
"\x06status\x18\a \x01(\rR\x06status\x12\x1e\n" +
|
||||
"\n" +
|
||||
"identifier\x18\b \x01(\tR\n" +
|
||||
"identifier\x12'\n" +
|
||||
"\x0fcredential_type\x18\t \x01(\tR\x0ecredentialType\"\t\n" +
|
||||
"\aInfoReq\"V\n" +
|
||||
"\tClientReq\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
||||
"\x04type\x18\x02 \x01(\tR\x04type\x12!\n" +
|
||||
"\fsubject_type\x18\x03 \x01(\rR\vsubjectType2\xbc\a\n" +
|
||||
"\fsubject_type\x18\x03 \x01(\rR\vsubjectType2\x90\b\n" +
|
||||
"\x04User\x12A\n" +
|
||||
"\x05Login\x12\x0e.user.LoginReq\x1a\x0e.user.Response\"\x18\x82\xd3\xe4\x93\x02\x12:\x01*\"\r/api/v3/login\x12C\n" +
|
||||
"\x04Info\x12\r.user.InfoReq\x1a\x0e.user.Response\"\x1c\x82\xd3\xe4\x93\x02\x16:\x01*\x12\x11/api/v3/user/info\x12K\n" +
|
||||
@@ -1431,7 +1615,8 @@ const file_user_user_proto_rawDesc = "" +
|
||||
"\x0eInternalUpdate\x12\x17.user.InternalUpdateReq\x1a\x18.user.InternalUpdateData\x12O\n" +
|
||||
"\x12InternalUsersByIds\x12\x1b.user.InternalUsersByIdsReq\x1a\x1c.user.InternalUsersByIdsData\x12U\n" +
|
||||
"\x14InternalUpdateMobile\x12\x1d.user.InternalUpdateMobileReq\x1a\x1e.user.InternalUpdateMobileData\x12^\n" +
|
||||
"\x17InternalRevokeBizClient\x12 .user.InternalRevokeBizClientReq\x1a!.user.InternalRevokeBizClientDataB\x18Z\x16lone-services/rpc/userb\x06proto3"
|
||||
"\x17InternalRevokeBizClient\x12 .user.InternalRevokeBizClientReq\x1a!.user.InternalRevokeBizClientData\x12R\n" +
|
||||
"\x13InternalGetUserInfo\x12\x1c.user.InternalGetUserInfoReq\x1a\x1d.user.InternalGetUserInfoDataB\x18Z\x16lone-services/rpc/userb\x06proto3"
|
||||
|
||||
var (
|
||||
file_user_user_proto_rawDescOnce sync.Once
|
||||
@@ -1445,7 +1630,7 @@ func file_user_user_proto_rawDescGZIP() []byte {
|
||||
return file_user_user_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_user_user_proto_msgTypes = make([]protoimpl.MessageInfo, 21)
|
||||
var file_user_user_proto_msgTypes = make([]protoimpl.MessageInfo, 23)
|
||||
var file_user_user_proto_goTypes = []any{
|
||||
(*Response)(nil), // 0: user.Response
|
||||
(*LoginReq)(nil), // 1: user.LoginReq
|
||||
@@ -1466,14 +1651,16 @@ var file_user_user_proto_goTypes = []any{
|
||||
(*InternalCheckUpdateData)(nil), // 16: user.InternalCheckUpdateData
|
||||
(*InternalUpdateReq)(nil), // 17: user.InternalUpdateReq
|
||||
(*InternalUpdateData)(nil), // 18: user.InternalUpdateData
|
||||
(*InfoReq)(nil), // 19: user.InfoReq
|
||||
(*ClientReq)(nil), // 20: user.ClientReq
|
||||
(*InternalGetUserInfoReq)(nil), // 19: user.InternalGetUserInfoReq
|
||||
(*InternalGetUserInfoData)(nil), // 20: user.InternalGetUserInfoData
|
||||
(*InfoReq)(nil), // 21: user.InfoReq
|
||||
(*ClientReq)(nil), // 22: user.ClientReq
|
||||
}
|
||||
var file_user_user_proto_depIdxs = []int32{
|
||||
7, // 0: user.InternalUsersByIdsData.items:type_name -> user.UserBriefItem
|
||||
1, // 1: user.User.Login:input_type -> user.LoginReq
|
||||
19, // 2: user.User.Info:input_type -> user.InfoReq
|
||||
20, // 3: user.User.Client:input_type -> user.ClientReq
|
||||
21, // 2: user.User.Info:input_type -> user.InfoReq
|
||||
22, // 3: user.User.Client:input_type -> user.ClientReq
|
||||
2, // 4: user.User.UserItems:input_type -> user.UserItemsReq
|
||||
3, // 5: user.User.UserStatus:input_type -> user.UserStatusReq
|
||||
4, // 6: user.User.InternalCreate:input_type -> user.InternalCreateReq
|
||||
@@ -1483,20 +1670,22 @@ var file_user_user_proto_depIdxs = []int32{
|
||||
6, // 10: user.User.InternalUsersByIds:input_type -> user.InternalUsersByIdsReq
|
||||
9, // 11: user.User.InternalUpdateMobile:input_type -> user.InternalUpdateMobileReq
|
||||
11, // 12: user.User.InternalRevokeBizClient:input_type -> user.InternalRevokeBizClientReq
|
||||
0, // 13: user.User.Login:output_type -> user.Response
|
||||
0, // 14: user.User.Info:output_type -> user.Response
|
||||
0, // 15: user.User.Client:output_type -> user.Response
|
||||
0, // 16: user.User.UserItems:output_type -> user.Response
|
||||
0, // 17: user.User.UserStatus:output_type -> user.Response
|
||||
5, // 18: user.User.InternalCreate:output_type -> user.InternalCreateData
|
||||
14, // 19: user.User.InternalCheckCreate:output_type -> user.InternalCheckCreateData
|
||||
16, // 20: user.User.InternalCheckUpdate:output_type -> user.InternalCheckUpdateData
|
||||
18, // 21: user.User.InternalUpdate:output_type -> user.InternalUpdateData
|
||||
8, // 22: user.User.InternalUsersByIds:output_type -> user.InternalUsersByIdsData
|
||||
10, // 23: user.User.InternalUpdateMobile:output_type -> user.InternalUpdateMobileData
|
||||
12, // 24: user.User.InternalRevokeBizClient:output_type -> user.InternalRevokeBizClientData
|
||||
13, // [13:25] is the sub-list for method output_type
|
||||
1, // [1:13] is the sub-list for method input_type
|
||||
19, // 13: user.User.InternalGetUserInfo:input_type -> user.InternalGetUserInfoReq
|
||||
0, // 14: user.User.Login:output_type -> user.Response
|
||||
0, // 15: user.User.Info:output_type -> user.Response
|
||||
0, // 16: user.User.Client:output_type -> user.Response
|
||||
0, // 17: user.User.UserItems:output_type -> user.Response
|
||||
0, // 18: user.User.UserStatus:output_type -> user.Response
|
||||
5, // 19: user.User.InternalCreate:output_type -> user.InternalCreateData
|
||||
14, // 20: user.User.InternalCheckCreate:output_type -> user.InternalCheckCreateData
|
||||
16, // 21: user.User.InternalCheckUpdate:output_type -> user.InternalCheckUpdateData
|
||||
18, // 22: user.User.InternalUpdate:output_type -> user.InternalUpdateData
|
||||
8, // 23: user.User.InternalUsersByIds:output_type -> user.InternalUsersByIdsData
|
||||
10, // 24: user.User.InternalUpdateMobile:output_type -> user.InternalUpdateMobileData
|
||||
12, // 25: user.User.InternalRevokeBizClient:output_type -> user.InternalRevokeBizClientData
|
||||
20, // 26: user.User.InternalGetUserInfo:output_type -> user.InternalGetUserInfoData
|
||||
14, // [14:27] is the sub-list for method output_type
|
||||
1, // [1:14] 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 extendee
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
@@ -1513,7 +1702,7 @@ func file_user_user_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_user_user_proto_rawDesc), len(file_user_user_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 21,
|
||||
NumMessages: 23,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
||||
@@ -8,6 +8,7 @@ package user
|
||||
|
||||
import (
|
||||
context "context"
|
||||
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
@@ -31,6 +32,7 @@ const (
|
||||
User_InternalUsersByIds_FullMethodName = "/user.User/InternalUsersByIds"
|
||||
User_InternalUpdateMobile_FullMethodName = "/user.User/InternalUpdateMobile"
|
||||
User_InternalRevokeBizClient_FullMethodName = "/user.User/InternalRevokeBizClient"
|
||||
User_InternalGetUserInfo_FullMethodName = "/user.User/InternalGetUserInfo"
|
||||
)
|
||||
|
||||
// UserClient is the client API for User service.
|
||||
@@ -49,6 +51,7 @@ type UserClient interface {
|
||||
InternalUsersByIds(ctx context.Context, in *InternalUsersByIdsReq, opts ...grpc.CallOption) (*InternalUsersByIdsData, error)
|
||||
InternalUpdateMobile(ctx context.Context, in *InternalUpdateMobileReq, opts ...grpc.CallOption) (*InternalUpdateMobileData, error)
|
||||
InternalRevokeBizClient(ctx context.Context, in *InternalRevokeBizClientReq, opts ...grpc.CallOption) (*InternalRevokeBizClientData, error)
|
||||
InternalGetUserInfo(ctx context.Context, in *InternalGetUserInfoReq, opts ...grpc.CallOption) (*InternalGetUserInfoData, error)
|
||||
}
|
||||
|
||||
type userClient struct {
|
||||
@@ -179,6 +182,16 @@ func (c *userClient) InternalRevokeBizClient(ctx context.Context, in *InternalRe
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *userClient) InternalGetUserInfo(ctx context.Context, in *InternalGetUserInfoReq, opts ...grpc.CallOption) (*InternalGetUserInfoData, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(InternalGetUserInfoData)
|
||||
err := c.cc.Invoke(ctx, User_InternalGetUserInfo_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// UserServer is the server API for User service.
|
||||
// All implementations must embed UnimplementedUserServer
|
||||
// for forward compatibility.
|
||||
@@ -195,6 +208,7 @@ type UserServer interface {
|
||||
InternalUsersByIds(context.Context, *InternalUsersByIdsReq) (*InternalUsersByIdsData, error)
|
||||
InternalUpdateMobile(context.Context, *InternalUpdateMobileReq) (*InternalUpdateMobileData, error)
|
||||
InternalRevokeBizClient(context.Context, *InternalRevokeBizClientReq) (*InternalRevokeBizClientData, error)
|
||||
InternalGetUserInfo(context.Context, *InternalGetUserInfoReq) (*InternalGetUserInfoData, error)
|
||||
mustEmbedUnimplementedUserServer()
|
||||
}
|
||||
|
||||
@@ -241,6 +255,9 @@ func (UnimplementedUserServer) InternalUpdateMobile(context.Context, *InternalUp
|
||||
func (UnimplementedUserServer) InternalRevokeBizClient(context.Context, *InternalRevokeBizClientReq) (*InternalRevokeBizClientData, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method InternalRevokeBizClient not implemented")
|
||||
}
|
||||
func (UnimplementedUserServer) InternalGetUserInfo(context.Context, *InternalGetUserInfoReq) (*InternalGetUserInfoData, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method InternalGetUserInfo not implemented")
|
||||
}
|
||||
func (UnimplementedUserServer) mustEmbedUnimplementedUserServer() {}
|
||||
func (UnimplementedUserServer) testEmbeddedByValue() {}
|
||||
|
||||
@@ -478,6 +495,24 @@ func _User_InternalRevokeBizClient_Handler(srv interface{}, ctx context.Context,
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _User_InternalGetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(InternalGetUserInfoReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(UserServer).InternalGetUserInfo(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: User_InternalGetUserInfo_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UserServer).InternalGetUserInfo(ctx, req.(*InternalGetUserInfoReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// User_ServiceDesc is the grpc.ServiceDesc for User service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -533,6 +568,10 @@ var User_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "InternalRevokeBizClient",
|
||||
Handler: _User_InternalRevokeBizClient_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "InternalGetUserInfo",
|
||||
Handler: _User_InternalGetUserInfo_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "user/user.proto",
|
||||
|
||||
Binary file not shown.
@@ -126,6 +126,24 @@ message InternalUpdateData {
|
||||
string name = 3;
|
||||
}
|
||||
|
||||
message InternalGetUserInfoReq {
|
||||
int64 user_id = 1;
|
||||
string credential_type = 2;
|
||||
string subject_type = 3;
|
||||
}
|
||||
|
||||
message InternalGetUserInfoData {
|
||||
int64 id = 1;
|
||||
string mobile = 2;
|
||||
string name = 3;
|
||||
string avatar = 4;
|
||||
uint32 gender = 5;
|
||||
string birthday = 6;
|
||||
uint32 status = 7;
|
||||
string identifier = 8;
|
||||
string credential_type = 9;
|
||||
}
|
||||
|
||||
message InfoReq {}
|
||||
|
||||
message ClientReq {
|
||||
@@ -173,4 +191,5 @@ service User {
|
||||
rpc InternalUsersByIds(InternalUsersByIdsReq) returns (InternalUsersByIdsData);
|
||||
rpc InternalUpdateMobile(InternalUpdateMobileReq) returns (InternalUpdateMobileData);
|
||||
rpc InternalRevokeBizClient(InternalRevokeBizClientReq) returns (InternalRevokeBizClientData);
|
||||
rpc InternalGetUserInfo(InternalGetUserInfoReq) returns (InternalGetUserInfoData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user