feat: user info
This commit is contained in:
@@ -643,6 +643,11 @@ var AnalysisUser_ServiceDesc = grpc.ServiceDesc{
|
||||
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"
|
||||
)
|
||||
|
||||
// AnalysisStoreClient is the client API for AnalysisStore service.
|
||||
@@ -651,6 +656,11 @@ const (
|
||||
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)
|
||||
}
|
||||
|
||||
type analysisStoreClient struct {
|
||||
@@ -681,12 +691,67 @@ func (c *analysisStoreClient) StoreAuthQrcode(ctx context.Context, in *StoreAuth
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *analysisStoreClient) StoreInfo(ctx context.Context, in *StoreInfoReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, AnalysisStore_StoreInfo_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
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)
|
||||
err := c.cc.Invoke(ctx, AnalysisStore_StoreUserList_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *analysisStoreClient) StoreUserUpdate(ctx context.Context, in *StoreUserUpdateReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, AnalysisStore_StoreUserUpdate_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *analysisStoreClient) StoreUserInfo(ctx context.Context, in *StoreUserInfoReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, AnalysisStore_StoreUserInfo_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// AnalysisStoreServer is the server API for AnalysisStore service.
|
||||
// All implementations must embed UnimplementedAnalysisStoreServer
|
||||
// for forward compatibility.
|
||||
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)
|
||||
mustEmbedUnimplementedAnalysisStoreServer()
|
||||
}
|
||||
|
||||
@@ -703,6 +768,21 @@ func (UnimplementedAnalysisStoreServer) StoreAuth(context.Context, *StoreAuthReq
|
||||
func (UnimplementedAnalysisStoreServer) StoreAuthQrcode(context.Context, *StoreAuthQrcodeReq) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method StoreAuthQrcode not implemented")
|
||||
}
|
||||
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")
|
||||
}
|
||||
func (UnimplementedAnalysisStoreServer) StoreUserUpdate(context.Context, *StoreUserUpdateReq) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method StoreUserUpdate not implemented")
|
||||
}
|
||||
func (UnimplementedAnalysisStoreServer) StoreUserInfo(context.Context, *StoreUserInfoReq) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method StoreUserInfo not implemented")
|
||||
}
|
||||
func (UnimplementedAnalysisStoreServer) mustEmbedUnimplementedAnalysisStoreServer() {}
|
||||
func (UnimplementedAnalysisStoreServer) testEmbeddedByValue() {}
|
||||
|
||||
@@ -760,6 +840,96 @@ func _AnalysisStore_StoreAuthQrcode_Handler(srv interface{}, ctx context.Context
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AnalysisStore_StoreInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(StoreInfoReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AnalysisStoreServer).StoreInfo(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AnalysisStore_StoreInfo_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AnalysisStoreServer).StoreInfo(ctx, req.(*StoreInfoReq))
|
||||
}
|
||||
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 {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AnalysisStoreServer).StoreUserList(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AnalysisStore_StoreUserList_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AnalysisStoreServer).StoreUserList(ctx, req.(*StoreUserListReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AnalysisStore_StoreUserUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(StoreUserUpdateReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AnalysisStoreServer).StoreUserUpdate(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AnalysisStore_StoreUserUpdate_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AnalysisStoreServer).StoreUserUpdate(ctx, req.(*StoreUserUpdateReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AnalysisStore_StoreUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(StoreUserInfoReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AnalysisStoreServer).StoreUserInfo(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AnalysisStore_StoreUserInfo_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AnalysisStoreServer).StoreUserInfo(ctx, req.(*StoreUserInfoReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// AnalysisStore_ServiceDesc is the grpc.ServiceDesc for AnalysisStore service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -775,6 +945,26 @@ var AnalysisStore_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "StoreAuthQrcode",
|
||||
Handler: _AnalysisStore_StoreAuthQrcode_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "StoreInfo",
|
||||
Handler: _AnalysisStore_StoreInfo_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "StoreDetail",
|
||||
Handler: _AnalysisStore_StoreDetail_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "StoreUserList",
|
||||
Handler: _AnalysisStore_StoreUserList_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "StoreUserUpdate",
|
||||
Handler: _AnalysisStore_StoreUserUpdate_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "StoreUserInfo",
|
||||
Handler: _AnalysisStore_StoreUserInfo_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "analysis/analysis.proto",
|
||||
|
||||
Reference in New Issue
Block a user