feat: user get mobile
CI / changes (push) Successful in 1m30s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 1s
CI / bff (push) Successful in 26s
CI / chore (push) Successful in 1s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 0s
CI / payment (push) Successful in 0s
CI / percutaneous (push) Successful in 0s
CI / product (push) Successful in 1s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / support (push) Successful in 1s
CI / task (push) Successful in 0s
CI / user (push) Successful in 28s
CI / water (push) Successful in 1s
CI / wecom (push) Successful in 0s
CI / changes (push) Successful in 1m30s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 1s
CI / bff (push) Successful in 26s
CI / chore (push) Successful in 1s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 0s
CI / payment (push) Successful in 0s
CI / percutaneous (push) Successful in 0s
CI / product (push) Successful in 1s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / support (push) Successful in 1s
CI / task (push) Successful in 0s
CI / user (push) Successful in 28s
CI / water (push) Successful in 1s
CI / wecom (push) Successful in 0s
This commit is contained in:
@@ -19,9 +19,10 @@ import (
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
Analysis_InternalCreateUser_FullMethodName = "/analysis.Analysis/InternalCreateUser"
|
||||
Analysis_AgreementInfo_FullMethodName = "/analysis.Analysis/AgreementInfo"
|
||||
Analysis_Switch_FullMethodName = "/analysis.Analysis/Switch"
|
||||
Analysis_InternalCreateUser_FullMethodName = "/analysis.Analysis/InternalCreateUser"
|
||||
Analysis_InternalSetRegistered_FullMethodName = "/analysis.Analysis/InternalSetRegistered"
|
||||
Analysis_AgreementInfo_FullMethodName = "/analysis.Analysis/AgreementInfo"
|
||||
Analysis_Switch_FullMethodName = "/analysis.Analysis/Switch"
|
||||
)
|
||||
|
||||
// AnalysisClient is the client API for Analysis service.
|
||||
@@ -29,6 +30,7 @@ const (
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type AnalysisClient interface {
|
||||
InternalCreateUser(ctx context.Context, in *InternalCreateUserReq, opts ...grpc.CallOption) (*InternalCreateUserData, error)
|
||||
InternalSetRegistered(ctx context.Context, in *InternalSetRegisteredReq, opts ...grpc.CallOption) (*InternalSetRegisteredData, error)
|
||||
AgreementInfo(ctx context.Context, in *AgreementInfoReq, opts ...grpc.CallOption) (*Response, error)
|
||||
Switch(ctx context.Context, in *SwitchReq, opts ...grpc.CallOption) (*Response, error)
|
||||
}
|
||||
@@ -51,6 +53,16 @@ func (c *analysisClient) InternalCreateUser(ctx context.Context, in *InternalCre
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *analysisClient) InternalSetRegistered(ctx context.Context, in *InternalSetRegisteredReq, opts ...grpc.CallOption) (*InternalSetRegisteredData, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(InternalSetRegisteredData)
|
||||
err := c.cc.Invoke(ctx, Analysis_InternalSetRegistered_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *analysisClient) AgreementInfo(ctx context.Context, in *AgreementInfoReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
@@ -76,6 +88,7 @@ func (c *analysisClient) Switch(ctx context.Context, in *SwitchReq, opts ...grpc
|
||||
// for forward compatibility.
|
||||
type AnalysisServer interface {
|
||||
InternalCreateUser(context.Context, *InternalCreateUserReq) (*InternalCreateUserData, error)
|
||||
InternalSetRegistered(context.Context, *InternalSetRegisteredReq) (*InternalSetRegisteredData, error)
|
||||
AgreementInfo(context.Context, *AgreementInfoReq) (*Response, error)
|
||||
Switch(context.Context, *SwitchReq) (*Response, error)
|
||||
mustEmbedUnimplementedAnalysisServer()
|
||||
@@ -91,6 +104,9 @@ type UnimplementedAnalysisServer struct{}
|
||||
func (UnimplementedAnalysisServer) InternalCreateUser(context.Context, *InternalCreateUserReq) (*InternalCreateUserData, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method InternalCreateUser not implemented")
|
||||
}
|
||||
func (UnimplementedAnalysisServer) InternalSetRegistered(context.Context, *InternalSetRegisteredReq) (*InternalSetRegisteredData, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method InternalSetRegistered not implemented")
|
||||
}
|
||||
func (UnimplementedAnalysisServer) AgreementInfo(context.Context, *AgreementInfoReq) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method AgreementInfo not implemented")
|
||||
}
|
||||
@@ -136,6 +152,24 @@ func _Analysis_InternalCreateUser_Handler(srv interface{}, ctx context.Context,
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Analysis_InternalSetRegistered_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(InternalSetRegisteredReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AnalysisServer).InternalSetRegistered(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Analysis_InternalSetRegistered_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AnalysisServer).InternalSetRegistered(ctx, req.(*InternalSetRegisteredReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Analysis_AgreementInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AgreementInfoReq)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -183,6 +217,10 @@ var Analysis_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "InternalCreateUser",
|
||||
Handler: _Analysis_InternalCreateUser_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "InternalSetRegistered",
|
||||
Handler: _Analysis_InternalSetRegistered_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "AgreementInfo",
|
||||
Handler: _Analysis_AgreementInfo_Handler,
|
||||
@@ -197,7 +235,6 @@ var Analysis_ServiceDesc = grpc.ServiceDesc{
|
||||
}
|
||||
|
||||
const (
|
||||
AnalysisUser_UserRegister_FullMethodName = "/analysis.AnalysisUser/UserRegister"
|
||||
AnalysisUser_FaceBind_FullMethodName = "/analysis.AnalysisUser/FaceBind"
|
||||
AnalysisUser_UserImprove_FullMethodName = "/analysis.AnalysisUser/UserImprove"
|
||||
AnalysisUser_UserDelete_FullMethodName = "/analysis.AnalysisUser/UserDelete"
|
||||
@@ -213,7 +250,6 @@ const (
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type AnalysisUserClient interface {
|
||||
UserRegister(ctx context.Context, in *UserRegisterReq, opts ...grpc.CallOption) (*Response, error)
|
||||
FaceBind(ctx context.Context, in *FaceBindReq, opts ...grpc.CallOption) (*Response, error)
|
||||
UserImprove(ctx context.Context, in *UserImproveReq, opts ...grpc.CallOption) (*Response, error)
|
||||
UserDelete(ctx context.Context, in *UserDeleteReq, opts ...grpc.CallOption) (*Response, error)
|
||||
@@ -233,16 +269,6 @@ func NewAnalysisUserClient(cc grpc.ClientConnInterface) AnalysisUserClient {
|
||||
return &analysisUserClient{cc}
|
||||
}
|
||||
|
||||
func (c *analysisUserClient) UserRegister(ctx context.Context, in *UserRegisterReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, AnalysisUser_UserRegister_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *analysisUserClient) FaceBind(ctx context.Context, in *FaceBindReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
@@ -337,7 +363,6 @@ func (c *analysisUserClient) DeviceInfo(ctx context.Context, in *DeviceInfoReq,
|
||||
// All implementations must embed UnimplementedAnalysisUserServer
|
||||
// for forward compatibility.
|
||||
type AnalysisUserServer interface {
|
||||
UserRegister(context.Context, *UserRegisterReq) (*Response, error)
|
||||
FaceBind(context.Context, *FaceBindReq) (*Response, error)
|
||||
UserImprove(context.Context, *UserImproveReq) (*Response, error)
|
||||
UserDelete(context.Context, *UserDeleteReq) (*Response, error)
|
||||
@@ -357,9 +382,6 @@ type AnalysisUserServer interface {
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedAnalysisUserServer struct{}
|
||||
|
||||
func (UnimplementedAnalysisUserServer) UserRegister(context.Context, *UserRegisterReq) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UserRegister not implemented")
|
||||
}
|
||||
func (UnimplementedAnalysisUserServer) FaceBind(context.Context, *FaceBindReq) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method FaceBind not implemented")
|
||||
}
|
||||
@@ -408,24 +430,6 @@ func RegisterAnalysisUserServer(s grpc.ServiceRegistrar, srv AnalysisUserServer)
|
||||
s.RegisterService(&AnalysisUser_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _AnalysisUser_UserRegister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UserRegisterReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AnalysisUserServer).UserRegister(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AnalysisUser_UserRegister_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AnalysisUserServer).UserRegister(ctx, req.(*UserRegisterReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AnalysisUser_FaceBind_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FaceBindReq)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -595,10 +599,6 @@ var AnalysisUser_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "analysis.AnalysisUser",
|
||||
HandlerType: (*AnalysisUserServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "UserRegister",
|
||||
Handler: _AnalysisUser_UserRegister_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "FaceBind",
|
||||
Handler: _AnalysisUser_FaceBind_Handler,
|
||||
@@ -644,7 +644,6 @@ const (
|
||||
AnalysisStore_StoreAuth_FullMethodName = "/analysis.AnalysisStore/StoreAuth"
|
||||
AnalysisStore_StoreAuthQrcode_FullMethodName = "/analysis.AnalysisStore/StoreAuthQrcode"
|
||||
AnalysisStore_StoreInfo_FullMethodName = "/analysis.AnalysisStore/StoreInfo"
|
||||
AnalysisStore_StoreDetail_FullMethodName = "/analysis.AnalysisStore/StoreDetail"
|
||||
AnalysisStore_StoreUserList_FullMethodName = "/analysis.AnalysisStore/StoreUserList"
|
||||
AnalysisStore_StoreUserUpdate_FullMethodName = "/analysis.AnalysisStore/StoreUserUpdate"
|
||||
AnalysisStore_StoreUserInfo_FullMethodName = "/analysis.AnalysisStore/StoreUserInfo"
|
||||
@@ -657,7 +656,6 @@ type AnalysisStoreClient interface {
|
||||
StoreAuth(ctx context.Context, in *StoreAuthReq, opts ...grpc.CallOption) (*Response, error)
|
||||
StoreAuthQrcode(ctx context.Context, in *StoreAuthQrcodeReq, opts ...grpc.CallOption) (*Response, error)
|
||||
StoreInfo(ctx context.Context, in *StoreInfoReq, opts ...grpc.CallOption) (*Response, error)
|
||||
StoreDetail(ctx context.Context, in *StoreDetailReq, opts ...grpc.CallOption) (*Response, error)
|
||||
StoreUserList(ctx context.Context, in *StoreUserListReq, opts ...grpc.CallOption) (*Response, error)
|
||||
StoreUserUpdate(ctx context.Context, in *StoreUserUpdateReq, opts ...grpc.CallOption) (*Response, error)
|
||||
StoreUserInfo(ctx context.Context, in *StoreUserInfoReq, opts ...grpc.CallOption) (*Response, error)
|
||||
@@ -701,16 +699,6 @@ func (c *analysisStoreClient) StoreInfo(ctx context.Context, in *StoreInfoReq, o
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *analysisStoreClient) StoreDetail(ctx context.Context, in *StoreDetailReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, AnalysisStore_StoreDetail_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *analysisStoreClient) StoreUserList(ctx context.Context, in *StoreUserListReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
@@ -748,7 +736,6 @@ type AnalysisStoreServer interface {
|
||||
StoreAuth(context.Context, *StoreAuthReq) (*Response, error)
|
||||
StoreAuthQrcode(context.Context, *StoreAuthQrcodeReq) (*Response, error)
|
||||
StoreInfo(context.Context, *StoreInfoReq) (*Response, error)
|
||||
StoreDetail(context.Context, *StoreDetailReq) (*Response, error)
|
||||
StoreUserList(context.Context, *StoreUserListReq) (*Response, error)
|
||||
StoreUserUpdate(context.Context, *StoreUserUpdateReq) (*Response, error)
|
||||
StoreUserInfo(context.Context, *StoreUserInfoReq) (*Response, error)
|
||||
@@ -771,9 +758,6 @@ func (UnimplementedAnalysisStoreServer) StoreAuthQrcode(context.Context, *StoreA
|
||||
func (UnimplementedAnalysisStoreServer) StoreInfo(context.Context, *StoreInfoReq) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method StoreInfo not implemented")
|
||||
}
|
||||
func (UnimplementedAnalysisStoreServer) StoreDetail(context.Context, *StoreDetailReq) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method StoreDetail not implemented")
|
||||
}
|
||||
func (UnimplementedAnalysisStoreServer) StoreUserList(context.Context, *StoreUserListReq) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method StoreUserList not implemented")
|
||||
}
|
||||
@@ -858,24 +842,6 @@ func _AnalysisStore_StoreInfo_Handler(srv interface{}, ctx context.Context, dec
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AnalysisStore_StoreDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(StoreDetailReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AnalysisStoreServer).StoreDetail(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AnalysisStore_StoreDetail_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AnalysisStoreServer).StoreDetail(ctx, req.(*StoreDetailReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AnalysisStore_StoreUserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(StoreUserListReq)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -949,10 +915,6 @@ var AnalysisStore_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "StoreInfo",
|
||||
Handler: _AnalysisStore_StoreInfo_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "StoreDetail",
|
||||
Handler: _AnalysisStore_StoreDetail_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "StoreUserList",
|
||||
Handler: _AnalysisStore_StoreUserList_Handler,
|
||||
|
||||
Reference in New Issue
Block a user