|
@@ -19,12 +19,18 @@ const _ = grpc.SupportPackageIsVersion7
|
|
|
// 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.
|
|
// 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 ApiClient interface {
|
|
type ApiClient interface {
|
|
|
GenVerifyImage(ctx context.Context, in *GenVerifyImageRequest, opts ...grpc.CallOption) (*GenVerifyImageReply, error)
|
|
GenVerifyImage(ctx context.Context, in *GenVerifyImageRequest, opts ...grpc.CallOption) (*GenVerifyImageReply, error)
|
|
|
|
|
+ GenPhoneVerifyCode(ctx context.Context, in *GenPhoneVerifyCodeRequest, opts ...grpc.CallOption) (*DefaultReply, error)
|
|
|
|
|
+ CheckVerifyCode(ctx context.Context, in *CheckVerifyCodeRequest, opts ...grpc.CallOption) (*DefaultReply, error)
|
|
|
SignUpUserCode(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*CreateReply, error)
|
|
SignUpUserCode(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*CreateReply, error)
|
|
|
SignUpPhone(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*CreateReply, error)
|
|
SignUpPhone(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*CreateReply, error)
|
|
|
SignInUserCode(ctx context.Context, in *SignInPasswordRequest, opts ...grpc.CallOption) (*SignInReply, error)
|
|
SignInUserCode(ctx context.Context, in *SignInPasswordRequest, opts ...grpc.CallOption) (*SignInReply, error)
|
|
|
SignInWithPhonePassword(ctx context.Context, in *SignInPasswordRequest, opts ...grpc.CallOption) (*SignInReply, error)
|
|
SignInWithPhonePassword(ctx context.Context, in *SignInPasswordRequest, opts ...grpc.CallOption) (*SignInReply, error)
|
|
|
// 检查token有效性
|
|
// 检查token有效性
|
|
|
SubSessionCheck(ctx context.Context, in *TokenParam, opts ...grpc.CallOption) (*SessionCheckReply, error)
|
|
SubSessionCheck(ctx context.Context, in *TokenParam, opts ...grpc.CallOption) (*SessionCheckReply, error)
|
|
|
|
|
+ // session添加KV对
|
|
|
|
|
+ SubSessionSetValue(ctx context.Context, in *SubSessionSetValueRequest, opts ...grpc.CallOption) (*DefaultReply, error)
|
|
|
|
|
+ // session获取KV对
|
|
|
|
|
+ SubSessionGetValue(ctx context.Context, in *SubSessionGetValueRequest, opts ...grpc.CallOption) (*SubSessionGetValueReply, error)
|
|
|
// 检查token所属用户是否拥有调用service权限
|
|
// 检查token所属用户是否拥有调用service权限
|
|
|
SubPermissionListCheck(ctx context.Context, in *PermissionCheck, opts ...grpc.CallOption) (*PermissionCheckReply, error)
|
|
SubPermissionListCheck(ctx context.Context, in *PermissionCheck, opts ...grpc.CallOption) (*PermissionCheckReply, error)
|
|
|
// 登出传入token
|
|
// 登出传入token
|
|
@@ -59,6 +65,10 @@ type ApiClient interface {
|
|
|
ShopCreate(ctx context.Context, in *CreateShopRequest, opts ...grpc.CallOption) (*CreateReply, error)
|
|
ShopCreate(ctx context.Context, in *CreateShopRequest, opts ...grpc.CallOption) (*CreateReply, error)
|
|
|
// 商户列表
|
|
// 商户列表
|
|
|
ShopList(ctx context.Context, in *ShopListRequest, opts ...grpc.CallOption) (*ShopListReply, error)
|
|
ShopList(ctx context.Context, in *ShopListRequest, opts ...grpc.CallOption) (*ShopListReply, error)
|
|
|
|
|
+ // 商户详情
|
|
|
|
|
+ ShopDetail(ctx context.Context, in *ShopDetailRequest, opts ...grpc.CallOption) (*ShopInfo, error)
|
|
|
|
|
+ // 商户许可列表
|
|
|
|
|
+ ShopLicenseList(ctx context.Context, in *ShopDetailRequest, opts ...grpc.CallOption) (*LicenseList, error)
|
|
|
// 商户添加用户
|
|
// 商户添加用户
|
|
|
ShopAddUser(ctx context.Context, in *ShopAddUserRequest, opts ...grpc.CallOption) (*DefaultReply, error)
|
|
ShopAddUser(ctx context.Context, in *ShopAddUserRequest, opts ...grpc.CallOption) (*DefaultReply, error)
|
|
|
// 商户添加许可证
|
|
// 商户添加许可证
|
|
@@ -71,6 +81,8 @@ type ApiClient interface {
|
|
|
ColumnCreate(ctx context.Context, in *ColumnCreateRequest, opts ...grpc.CallOption) (*CreateReply, error)
|
|
ColumnCreate(ctx context.Context, in *ColumnCreateRequest, opts ...grpc.CallOption) (*CreateReply, error)
|
|
|
// 创建许可
|
|
// 创建许可
|
|
|
LicenseCreate(ctx context.Context, in *LicenseCreateRequest, opts ...grpc.CallOption) (*CreateReply, error)
|
|
LicenseCreate(ctx context.Context, in *LicenseCreateRequest, opts ...grpc.CallOption) (*CreateReply, error)
|
|
|
|
|
+ // 许可类型字典
|
|
|
|
|
+ LicenseTypeMap(ctx context.Context, in *IdList, opts ...grpc.CallOption) (*LicenseTypeMapReply, error)
|
|
|
// 许可证批量绑定栏目(之前绑定的会全部取消)
|
|
// 许可证批量绑定栏目(之前绑定的会全部取消)
|
|
|
LicenseBindColumns(ctx context.Context, in *LicenseBindColumnsRequest, opts ...grpc.CallOption) (*DefaultReply, error)
|
|
LicenseBindColumns(ctx context.Context, in *LicenseBindColumnsRequest, opts ...grpc.CallOption) (*DefaultReply, error)
|
|
|
IMSystemCreate(ctx context.Context, in *CreateSystemRequest, opts ...grpc.CallOption) (*TokenParam, error)
|
|
IMSystemCreate(ctx context.Context, in *CreateSystemRequest, opts ...grpc.CallOption) (*TokenParam, error)
|
|
@@ -96,6 +108,24 @@ func (c *apiClient) GenVerifyImage(ctx context.Context, in *GenVerifyImageReques
|
|
|
return out, nil
|
|
return out, nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (c *apiClient) GenPhoneVerifyCode(ctx context.Context, in *GenPhoneVerifyCodeRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
|
|
|
|
|
+ out := new(DefaultReply)
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/im.Api/GenPhoneVerifyCode", in, out, opts...)
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ return out, nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (c *apiClient) CheckVerifyCode(ctx context.Context, in *CheckVerifyCodeRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
|
|
|
|
|
+ out := new(DefaultReply)
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/im.Api/CheckVerifyCode", in, out, opts...)
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ return out, nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func (c *apiClient) SignUpUserCode(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*CreateReply, error) {
|
|
func (c *apiClient) SignUpUserCode(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*CreateReply, error) {
|
|
|
out := new(CreateReply)
|
|
out := new(CreateReply)
|
|
|
err := c.cc.Invoke(ctx, "/im.Api/SignUpUserCode", in, out, opts...)
|
|
err := c.cc.Invoke(ctx, "/im.Api/SignUpUserCode", in, out, opts...)
|
|
@@ -141,6 +171,24 @@ func (c *apiClient) SubSessionCheck(ctx context.Context, in *TokenParam, opts ..
|
|
|
return out, nil
|
|
return out, nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (c *apiClient) SubSessionSetValue(ctx context.Context, in *SubSessionSetValueRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
|
|
|
|
|
+ out := new(DefaultReply)
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/im.Api/SubSessionSetValue", in, out, opts...)
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ return out, nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (c *apiClient) SubSessionGetValue(ctx context.Context, in *SubSessionGetValueRequest, opts ...grpc.CallOption) (*SubSessionGetValueReply, error) {
|
|
|
|
|
+ out := new(SubSessionGetValueReply)
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/im.Api/SubSessionGetValue", in, out, opts...)
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ return out, nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func (c *apiClient) SubPermissionListCheck(ctx context.Context, in *PermissionCheck, opts ...grpc.CallOption) (*PermissionCheckReply, error) {
|
|
func (c *apiClient) SubPermissionListCheck(ctx context.Context, in *PermissionCheck, opts ...grpc.CallOption) (*PermissionCheckReply, error) {
|
|
|
out := new(PermissionCheckReply)
|
|
out := new(PermissionCheckReply)
|
|
|
err := c.cc.Invoke(ctx, "/im.Api/SubPermissionListCheck", in, out, opts...)
|
|
err := c.cc.Invoke(ctx, "/im.Api/SubPermissionListCheck", in, out, opts...)
|
|
@@ -294,6 +342,24 @@ func (c *apiClient) ShopList(ctx context.Context, in *ShopListRequest, opts ...g
|
|
|
return out, nil
|
|
return out, nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (c *apiClient) ShopDetail(ctx context.Context, in *ShopDetailRequest, opts ...grpc.CallOption) (*ShopInfo, error) {
|
|
|
|
|
+ out := new(ShopInfo)
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/im.Api/ShopDetail", in, out, opts...)
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ return out, nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (c *apiClient) ShopLicenseList(ctx context.Context, in *ShopDetailRequest, opts ...grpc.CallOption) (*LicenseList, error) {
|
|
|
|
|
+ out := new(LicenseList)
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/im.Api/ShopLicenseList", in, out, opts...)
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ return out, nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func (c *apiClient) ShopAddUser(ctx context.Context, in *ShopAddUserRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
|
|
func (c *apiClient) ShopAddUser(ctx context.Context, in *ShopAddUserRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
|
|
|
out := new(DefaultReply)
|
|
out := new(DefaultReply)
|
|
|
err := c.cc.Invoke(ctx, "/im.Api/ShopAddUser", in, out, opts...)
|
|
err := c.cc.Invoke(ctx, "/im.Api/ShopAddUser", in, out, opts...)
|
|
@@ -348,6 +414,15 @@ func (c *apiClient) LicenseCreate(ctx context.Context, in *LicenseCreateRequest,
|
|
|
return out, nil
|
|
return out, nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (c *apiClient) LicenseTypeMap(ctx context.Context, in *IdList, opts ...grpc.CallOption) (*LicenseTypeMapReply, error) {
|
|
|
|
|
+ out := new(LicenseTypeMapReply)
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/im.Api/LicenseTypeMap", in, out, opts...)
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ return out, nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func (c *apiClient) LicenseBindColumns(ctx context.Context, in *LicenseBindColumnsRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
|
|
func (c *apiClient) LicenseBindColumns(ctx context.Context, in *LicenseBindColumnsRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
|
|
|
out := new(DefaultReply)
|
|
out := new(DefaultReply)
|
|
|
err := c.cc.Invoke(ctx, "/im.Api/LicenseBindColumns", in, out, opts...)
|
|
err := c.cc.Invoke(ctx, "/im.Api/LicenseBindColumns", in, out, opts...)
|
|
@@ -421,12 +496,18 @@ func (x *apiIMMessageRcvClient) Recv() (*Message, error) {
|
|
|
// for forward compatibility
|
|
// for forward compatibility
|
|
|
type ApiServer interface {
|
|
type ApiServer interface {
|
|
|
GenVerifyImage(context.Context, *GenVerifyImageRequest) (*GenVerifyImageReply, error)
|
|
GenVerifyImage(context.Context, *GenVerifyImageRequest) (*GenVerifyImageReply, error)
|
|
|
|
|
+ GenPhoneVerifyCode(context.Context, *GenPhoneVerifyCodeRequest) (*DefaultReply, error)
|
|
|
|
|
+ CheckVerifyCode(context.Context, *CheckVerifyCodeRequest) (*DefaultReply, error)
|
|
|
SignUpUserCode(context.Context, *SignUpRequest) (*CreateReply, error)
|
|
SignUpUserCode(context.Context, *SignUpRequest) (*CreateReply, error)
|
|
|
SignUpPhone(context.Context, *SignUpRequest) (*CreateReply, error)
|
|
SignUpPhone(context.Context, *SignUpRequest) (*CreateReply, error)
|
|
|
SignInUserCode(context.Context, *SignInPasswordRequest) (*SignInReply, error)
|
|
SignInUserCode(context.Context, *SignInPasswordRequest) (*SignInReply, error)
|
|
|
SignInWithPhonePassword(context.Context, *SignInPasswordRequest) (*SignInReply, error)
|
|
SignInWithPhonePassword(context.Context, *SignInPasswordRequest) (*SignInReply, error)
|
|
|
// 检查token有效性
|
|
// 检查token有效性
|
|
|
SubSessionCheck(context.Context, *TokenParam) (*SessionCheckReply, error)
|
|
SubSessionCheck(context.Context, *TokenParam) (*SessionCheckReply, error)
|
|
|
|
|
+ // session添加KV对
|
|
|
|
|
+ SubSessionSetValue(context.Context, *SubSessionSetValueRequest) (*DefaultReply, error)
|
|
|
|
|
+ // session获取KV对
|
|
|
|
|
+ SubSessionGetValue(context.Context, *SubSessionGetValueRequest) (*SubSessionGetValueReply, error)
|
|
|
// 检查token所属用户是否拥有调用service权限
|
|
// 检查token所属用户是否拥有调用service权限
|
|
|
SubPermissionListCheck(context.Context, *PermissionCheck) (*PermissionCheckReply, error)
|
|
SubPermissionListCheck(context.Context, *PermissionCheck) (*PermissionCheckReply, error)
|
|
|
// 登出传入token
|
|
// 登出传入token
|
|
@@ -461,6 +542,10 @@ type ApiServer interface {
|
|
|
ShopCreate(context.Context, *CreateShopRequest) (*CreateReply, error)
|
|
ShopCreate(context.Context, *CreateShopRequest) (*CreateReply, error)
|
|
|
// 商户列表
|
|
// 商户列表
|
|
|
ShopList(context.Context, *ShopListRequest) (*ShopListReply, error)
|
|
ShopList(context.Context, *ShopListRequest) (*ShopListReply, error)
|
|
|
|
|
+ // 商户详情
|
|
|
|
|
+ ShopDetail(context.Context, *ShopDetailRequest) (*ShopInfo, error)
|
|
|
|
|
+ // 商户许可列表
|
|
|
|
|
+ ShopLicenseList(context.Context, *ShopDetailRequest) (*LicenseList, error)
|
|
|
// 商户添加用户
|
|
// 商户添加用户
|
|
|
ShopAddUser(context.Context, *ShopAddUserRequest) (*DefaultReply, error)
|
|
ShopAddUser(context.Context, *ShopAddUserRequest) (*DefaultReply, error)
|
|
|
// 商户添加许可证
|
|
// 商户添加许可证
|
|
@@ -473,6 +558,8 @@ type ApiServer interface {
|
|
|
ColumnCreate(context.Context, *ColumnCreateRequest) (*CreateReply, error)
|
|
ColumnCreate(context.Context, *ColumnCreateRequest) (*CreateReply, error)
|
|
|
// 创建许可
|
|
// 创建许可
|
|
|
LicenseCreate(context.Context, *LicenseCreateRequest) (*CreateReply, error)
|
|
LicenseCreate(context.Context, *LicenseCreateRequest) (*CreateReply, error)
|
|
|
|
|
+ // 许可类型字典
|
|
|
|
|
+ LicenseTypeMap(context.Context, *IdList) (*LicenseTypeMapReply, error)
|
|
|
// 许可证批量绑定栏目(之前绑定的会全部取消)
|
|
// 许可证批量绑定栏目(之前绑定的会全部取消)
|
|
|
LicenseBindColumns(context.Context, *LicenseBindColumnsRequest) (*DefaultReply, error)
|
|
LicenseBindColumns(context.Context, *LicenseBindColumnsRequest) (*DefaultReply, error)
|
|
|
IMSystemCreate(context.Context, *CreateSystemRequest) (*TokenParam, error)
|
|
IMSystemCreate(context.Context, *CreateSystemRequest) (*TokenParam, error)
|
|
@@ -489,6 +576,12 @@ type UnimplementedApiServer struct {
|
|
|
func (UnimplementedApiServer) GenVerifyImage(context.Context, *GenVerifyImageRequest) (*GenVerifyImageReply, error) {
|
|
func (UnimplementedApiServer) GenVerifyImage(context.Context, *GenVerifyImageRequest) (*GenVerifyImageReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GenVerifyImage not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method GenVerifyImage not implemented")
|
|
|
}
|
|
}
|
|
|
|
|
+func (UnimplementedApiServer) GenPhoneVerifyCode(context.Context, *GenPhoneVerifyCodeRequest) (*DefaultReply, error) {
|
|
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method GenPhoneVerifyCode not implemented")
|
|
|
|
|
+}
|
|
|
|
|
+func (UnimplementedApiServer) CheckVerifyCode(context.Context, *CheckVerifyCodeRequest) (*DefaultReply, error) {
|
|
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method CheckVerifyCode not implemented")
|
|
|
|
|
+}
|
|
|
func (UnimplementedApiServer) SignUpUserCode(context.Context, *SignUpRequest) (*CreateReply, error) {
|
|
func (UnimplementedApiServer) SignUpUserCode(context.Context, *SignUpRequest) (*CreateReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method SignUpUserCode not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method SignUpUserCode not implemented")
|
|
|
}
|
|
}
|
|
@@ -504,6 +597,12 @@ func (UnimplementedApiServer) SignInWithPhonePassword(context.Context, *SignInPa
|
|
|
func (UnimplementedApiServer) SubSessionCheck(context.Context, *TokenParam) (*SessionCheckReply, error) {
|
|
func (UnimplementedApiServer) SubSessionCheck(context.Context, *TokenParam) (*SessionCheckReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method SubSessionCheck not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method SubSessionCheck not implemented")
|
|
|
}
|
|
}
|
|
|
|
|
+func (UnimplementedApiServer) SubSessionSetValue(context.Context, *SubSessionSetValueRequest) (*DefaultReply, error) {
|
|
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method SubSessionSetValue not implemented")
|
|
|
|
|
+}
|
|
|
|
|
+func (UnimplementedApiServer) SubSessionGetValue(context.Context, *SubSessionGetValueRequest) (*SubSessionGetValueReply, error) {
|
|
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method SubSessionGetValue not implemented")
|
|
|
|
|
+}
|
|
|
func (UnimplementedApiServer) SubPermissionListCheck(context.Context, *PermissionCheck) (*PermissionCheckReply, error) {
|
|
func (UnimplementedApiServer) SubPermissionListCheck(context.Context, *PermissionCheck) (*PermissionCheckReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method SubPermissionListCheck not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method SubPermissionListCheck not implemented")
|
|
|
}
|
|
}
|
|
@@ -555,6 +654,12 @@ func (UnimplementedApiServer) ShopCreate(context.Context, *CreateShopRequest) (*
|
|
|
func (UnimplementedApiServer) ShopList(context.Context, *ShopListRequest) (*ShopListReply, error) {
|
|
func (UnimplementedApiServer) ShopList(context.Context, *ShopListRequest) (*ShopListReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ShopList not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method ShopList not implemented")
|
|
|
}
|
|
}
|
|
|
|
|
+func (UnimplementedApiServer) ShopDetail(context.Context, *ShopDetailRequest) (*ShopInfo, error) {
|
|
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method ShopDetail not implemented")
|
|
|
|
|
+}
|
|
|
|
|
+func (UnimplementedApiServer) ShopLicenseList(context.Context, *ShopDetailRequest) (*LicenseList, error) {
|
|
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method ShopLicenseList not implemented")
|
|
|
|
|
+}
|
|
|
func (UnimplementedApiServer) ShopAddUser(context.Context, *ShopAddUserRequest) (*DefaultReply, error) {
|
|
func (UnimplementedApiServer) ShopAddUser(context.Context, *ShopAddUserRequest) (*DefaultReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ShopAddUser not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method ShopAddUser not implemented")
|
|
|
}
|
|
}
|
|
@@ -573,6 +678,9 @@ func (UnimplementedApiServer) ColumnCreate(context.Context, *ColumnCreateRequest
|
|
|
func (UnimplementedApiServer) LicenseCreate(context.Context, *LicenseCreateRequest) (*CreateReply, error) {
|
|
func (UnimplementedApiServer) LicenseCreate(context.Context, *LicenseCreateRequest) (*CreateReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LicenseCreate not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method LicenseCreate not implemented")
|
|
|
}
|
|
}
|
|
|
|
|
+func (UnimplementedApiServer) LicenseTypeMap(context.Context, *IdList) (*LicenseTypeMapReply, error) {
|
|
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method LicenseTypeMap not implemented")
|
|
|
|
|
+}
|
|
|
func (UnimplementedApiServer) LicenseBindColumns(context.Context, *LicenseBindColumnsRequest) (*DefaultReply, error) {
|
|
func (UnimplementedApiServer) LicenseBindColumns(context.Context, *LicenseBindColumnsRequest) (*DefaultReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LicenseBindColumns not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method LicenseBindColumns not implemented")
|
|
|
}
|
|
}
|
|
@@ -619,6 +727,42 @@ func _Api_GenVerifyImage_Handler(srv interface{}, ctx context.Context, dec func(
|
|
|
return interceptor(ctx, in, info, handler)
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func _Api_GenPhoneVerifyCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
+ in := new(GenPhoneVerifyCodeRequest)
|
|
|
|
|
+ if err := dec(in); err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ if interceptor == nil {
|
|
|
|
|
+ return srv.(ApiServer).GenPhoneVerifyCode(ctx, in)
|
|
|
|
|
+ }
|
|
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
|
|
+ Server: srv,
|
|
|
|
|
+ FullMethod: "/im.Api/GenPhoneVerifyCode",
|
|
|
|
|
+ }
|
|
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.(ApiServer).GenPhoneVerifyCode(ctx, req.(*GenPhoneVerifyCodeRequest))
|
|
|
|
|
+ }
|
|
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func _Api_CheckVerifyCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
+ in := new(CheckVerifyCodeRequest)
|
|
|
|
|
+ if err := dec(in); err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ if interceptor == nil {
|
|
|
|
|
+ return srv.(ApiServer).CheckVerifyCode(ctx, in)
|
|
|
|
|
+ }
|
|
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
|
|
+ Server: srv,
|
|
|
|
|
+ FullMethod: "/im.Api/CheckVerifyCode",
|
|
|
|
|
+ }
|
|
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.(ApiServer).CheckVerifyCode(ctx, req.(*CheckVerifyCodeRequest))
|
|
|
|
|
+ }
|
|
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func _Api_SignUpUserCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
func _Api_SignUpUserCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(SignUpRequest)
|
|
in := new(SignUpRequest)
|
|
|
if err := dec(in); err != nil {
|
|
if err := dec(in); err != nil {
|
|
@@ -709,6 +853,42 @@ func _Api_SubSessionCheck_Handler(srv interface{}, ctx context.Context, dec func
|
|
|
return interceptor(ctx, in, info, handler)
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func _Api_SubSessionSetValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
+ in := new(SubSessionSetValueRequest)
|
|
|
|
|
+ if err := dec(in); err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ if interceptor == nil {
|
|
|
|
|
+ return srv.(ApiServer).SubSessionSetValue(ctx, in)
|
|
|
|
|
+ }
|
|
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
|
|
+ Server: srv,
|
|
|
|
|
+ FullMethod: "/im.Api/SubSessionSetValue",
|
|
|
|
|
+ }
|
|
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.(ApiServer).SubSessionSetValue(ctx, req.(*SubSessionSetValueRequest))
|
|
|
|
|
+ }
|
|
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func _Api_SubSessionGetValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
+ in := new(SubSessionGetValueRequest)
|
|
|
|
|
+ if err := dec(in); err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ if interceptor == nil {
|
|
|
|
|
+ return srv.(ApiServer).SubSessionGetValue(ctx, in)
|
|
|
|
|
+ }
|
|
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
|
|
+ Server: srv,
|
|
|
|
|
+ FullMethod: "/im.Api/SubSessionGetValue",
|
|
|
|
|
+ }
|
|
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.(ApiServer).SubSessionGetValue(ctx, req.(*SubSessionGetValueRequest))
|
|
|
|
|
+ }
|
|
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func _Api_SubPermissionListCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
func _Api_SubPermissionListCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(PermissionCheck)
|
|
in := new(PermissionCheck)
|
|
|
if err := dec(in); err != nil {
|
|
if err := dec(in); err != nil {
|
|
@@ -1015,6 +1195,42 @@ func _Api_ShopList_Handler(srv interface{}, ctx context.Context, dec func(interf
|
|
|
return interceptor(ctx, in, info, handler)
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func _Api_ShopDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
+ in := new(ShopDetailRequest)
|
|
|
|
|
+ if err := dec(in); err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ if interceptor == nil {
|
|
|
|
|
+ return srv.(ApiServer).ShopDetail(ctx, in)
|
|
|
|
|
+ }
|
|
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
|
|
+ Server: srv,
|
|
|
|
|
+ FullMethod: "/im.Api/ShopDetail",
|
|
|
|
|
+ }
|
|
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.(ApiServer).ShopDetail(ctx, req.(*ShopDetailRequest))
|
|
|
|
|
+ }
|
|
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func _Api_ShopLicenseList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
+ in := new(ShopDetailRequest)
|
|
|
|
|
+ if err := dec(in); err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ if interceptor == nil {
|
|
|
|
|
+ return srv.(ApiServer).ShopLicenseList(ctx, in)
|
|
|
|
|
+ }
|
|
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
|
|
+ Server: srv,
|
|
|
|
|
+ FullMethod: "/im.Api/ShopLicenseList",
|
|
|
|
|
+ }
|
|
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.(ApiServer).ShopLicenseList(ctx, req.(*ShopDetailRequest))
|
|
|
|
|
+ }
|
|
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func _Api_ShopAddUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
func _Api_ShopAddUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(ShopAddUserRequest)
|
|
in := new(ShopAddUserRequest)
|
|
|
if err := dec(in); err != nil {
|
|
if err := dec(in); err != nil {
|
|
@@ -1123,6 +1339,24 @@ func _Api_LicenseCreate_Handler(srv interface{}, ctx context.Context, dec func(i
|
|
|
return interceptor(ctx, in, info, handler)
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func _Api_LicenseTypeMap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
+ in := new(IdList)
|
|
|
|
|
+ if err := dec(in); err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ if interceptor == nil {
|
|
|
|
|
+ return srv.(ApiServer).LicenseTypeMap(ctx, in)
|
|
|
|
|
+ }
|
|
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
|
|
+ Server: srv,
|
|
|
|
|
+ FullMethod: "/im.Api/LicenseTypeMap",
|
|
|
|
|
+ }
|
|
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.(ApiServer).LicenseTypeMap(ctx, req.(*IdList))
|
|
|
|
|
+ }
|
|
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func _Api_LicenseBindColumns_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
func _Api_LicenseBindColumns_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(LicenseBindColumnsRequest)
|
|
in := new(LicenseBindColumnsRequest)
|
|
|
if err := dec(in); err != nil {
|
|
if err := dec(in); err != nil {
|
|
@@ -1227,6 +1461,14 @@ var Api_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "GenVerifyImage",
|
|
MethodName: "GenVerifyImage",
|
|
|
Handler: _Api_GenVerifyImage_Handler,
|
|
Handler: _Api_GenVerifyImage_Handler,
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ MethodName: "GenPhoneVerifyCode",
|
|
|
|
|
+ Handler: _Api_GenPhoneVerifyCode_Handler,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ MethodName: "CheckVerifyCode",
|
|
|
|
|
+ Handler: _Api_CheckVerifyCode_Handler,
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
MethodName: "SignUpUserCode",
|
|
MethodName: "SignUpUserCode",
|
|
|
Handler: _Api_SignUpUserCode_Handler,
|
|
Handler: _Api_SignUpUserCode_Handler,
|
|
@@ -1247,6 +1489,14 @@ var Api_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "SubSessionCheck",
|
|
MethodName: "SubSessionCheck",
|
|
|
Handler: _Api_SubSessionCheck_Handler,
|
|
Handler: _Api_SubSessionCheck_Handler,
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ MethodName: "SubSessionSetValue",
|
|
|
|
|
+ Handler: _Api_SubSessionSetValue_Handler,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ MethodName: "SubSessionGetValue",
|
|
|
|
|
+ Handler: _Api_SubSessionGetValue_Handler,
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
MethodName: "SubPermissionListCheck",
|
|
MethodName: "SubPermissionListCheck",
|
|
|
Handler: _Api_SubPermissionListCheck_Handler,
|
|
Handler: _Api_SubPermissionListCheck_Handler,
|
|
@@ -1315,6 +1565,14 @@ var Api_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "ShopList",
|
|
MethodName: "ShopList",
|
|
|
Handler: _Api_ShopList_Handler,
|
|
Handler: _Api_ShopList_Handler,
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ MethodName: "ShopDetail",
|
|
|
|
|
+ Handler: _Api_ShopDetail_Handler,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ MethodName: "ShopLicenseList",
|
|
|
|
|
+ Handler: _Api_ShopLicenseList_Handler,
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
MethodName: "ShopAddUser",
|
|
MethodName: "ShopAddUser",
|
|
|
Handler: _Api_ShopAddUser_Handler,
|
|
Handler: _Api_ShopAddUser_Handler,
|
|
@@ -1339,6 +1597,10 @@ var Api_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "LicenseCreate",
|
|
MethodName: "LicenseCreate",
|
|
|
Handler: _Api_LicenseCreate_Handler,
|
|
Handler: _Api_LicenseCreate_Handler,
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ MethodName: "LicenseTypeMap",
|
|
|
|
|
+ Handler: _Api_LicenseTypeMap_Handler,
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
MethodName: "LicenseBindColumns",
|
|
MethodName: "LicenseBindColumns",
|
|
|
Handler: _Api_LicenseBindColumns_Handler,
|
|
Handler: _Api_LicenseBindColumns_Handler,
|