updates proto

This commit is contained in:
2026-10-01 14:19:43 +07:00
parent 1887b5b9a1
commit d9c5ca2956
27 changed files with 1897 additions and 1872 deletions
+495 -488
View File
File diff suppressed because it is too large Load Diff
+628 -628
View File
File diff suppressed because it is too large Load Diff
+21 -15
View File
@@ -4,6 +4,12 @@
// - protoc v7.36.0
// source: main.proto
// Contract rules:
// - fields inside each message are declared in ascending number order;
// - published field numbers are never renumbered or reused;
// - use ID, <name>ID and URL for abbreviation fields so generated clients
// keep the same naming convention across Go and TypeScript.
package proto
import (
@@ -33,7 +39,7 @@ const (
EveningDetectiveServer_GetPrivacy_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetPrivacy"
EveningDetectiveServer_GetConsent_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetConsent"
EveningDetectiveServer_GetUsers_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetUsers"
EveningDetectiveServer_GetUserById_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetUserById"
EveningDetectiveServer_GetUserByID_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetUserByID"
EveningDetectiveServer_GetMe_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetMe"
EveningDetectiveServer_ChangeUserPassword_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/ChangeUserPassword"
EveningDetectiveServer_AddUserRole_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/AddUserRole"
@@ -124,7 +130,7 @@ type EveningDetectiveServerClient interface {
GetPrivacy(ctx context.Context, in *GetPrivacyReq, opts ...grpc.CallOption) (*GetPrivacyRsp, error)
GetConsent(ctx context.Context, in *GetConsentReq, opts ...grpc.CallOption) (*GetConsentRsp, error)
GetUsers(ctx context.Context, in *GetUsersReq, opts ...grpc.CallOption) (*GetUsersRsp, error)
GetUserById(ctx context.Context, in *GetUserByIdReq, opts ...grpc.CallOption) (*GetUserByIdRsp, error)
GetUserByID(ctx context.Context, in *GetUserByIDReq, opts ...grpc.CallOption) (*GetUserByIDRsp, error)
GetMe(ctx context.Context, in *GetMeReq, opts ...grpc.CallOption) (*GetMeRsp, error)
// Только администратор; сеансы пользователя сохраняются.
// Ошибки: 401, 403, 400, 404, 500.
@@ -346,10 +352,10 @@ func (c *eveningDetectiveServerClient) GetUsers(ctx context.Context, in *GetUser
return out, nil
}
func (c *eveningDetectiveServerClient) GetUserById(ctx context.Context, in *GetUserByIdReq, opts ...grpc.CallOption) (*GetUserByIdRsp, error) {
func (c *eveningDetectiveServerClient) GetUserByID(ctx context.Context, in *GetUserByIDReq, opts ...grpc.CallOption) (*GetUserByIDRsp, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(GetUserByIdRsp)
err := c.cc.Invoke(ctx, EveningDetectiveServer_GetUserById_FullMethodName, in, out, cOpts...)
out := new(GetUserByIDRsp)
err := c.cc.Invoke(ctx, EveningDetectiveServer_GetUserByID_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
@@ -1083,7 +1089,7 @@ type EveningDetectiveServerServer interface {
GetPrivacy(context.Context, *GetPrivacyReq) (*GetPrivacyRsp, error)
GetConsent(context.Context, *GetConsentReq) (*GetConsentRsp, error)
GetUsers(context.Context, *GetUsersReq) (*GetUsersRsp, error)
GetUserById(context.Context, *GetUserByIdReq) (*GetUserByIdRsp, error)
GetUserByID(context.Context, *GetUserByIDReq) (*GetUserByIDRsp, error)
GetMe(context.Context, *GetMeReq) (*GetMeRsp, error)
// Только администратор; сеансы пользователя сохраняются.
// Ошибки: 401, 403, 400, 404, 500.
@@ -1214,8 +1220,8 @@ func (UnimplementedEveningDetectiveServerServer) GetConsent(context.Context, *Ge
func (UnimplementedEveningDetectiveServerServer) GetUsers(context.Context, *GetUsersReq) (*GetUsersRsp, error) {
return nil, status.Error(codes.Unimplemented, "method GetUsers not implemented")
}
func (UnimplementedEveningDetectiveServerServer) GetUserById(context.Context, *GetUserByIdReq) (*GetUserByIdRsp, error) {
return nil, status.Error(codes.Unimplemented, "method GetUserById not implemented")
func (UnimplementedEveningDetectiveServerServer) GetUserByID(context.Context, *GetUserByIDReq) (*GetUserByIDRsp, error) {
return nil, status.Error(codes.Unimplemented, "method GetUserByID not implemented")
}
func (UnimplementedEveningDetectiveServerServer) GetMe(context.Context, *GetMeReq) (*GetMeRsp, error) {
return nil, status.Error(codes.Unimplemented, "method GetMe not implemented")
@@ -1686,20 +1692,20 @@ func _EveningDetectiveServer_GetUsers_Handler(srv interface{}, ctx context.Conte
return interceptor(ctx, in, info, handler)
}
func _EveningDetectiveServer_GetUserById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetUserByIdReq)
func _EveningDetectiveServer_GetUserByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetUserByIDReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EveningDetectiveServerServer).GetUserById(ctx, in)
return srv.(EveningDetectiveServerServer).GetUserByID(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: EveningDetectiveServer_GetUserById_FullMethodName,
FullMethod: EveningDetectiveServer_GetUserByID_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EveningDetectiveServerServer).GetUserById(ctx, req.(*GetUserByIdReq))
return srv.(EveningDetectiveServerServer).GetUserByID(ctx, req.(*GetUserByIDReq))
}
return interceptor(ctx, in, info, handler)
}
@@ -3042,8 +3048,8 @@ var EveningDetectiveServer_ServiceDesc = grpc.ServiceDesc{
Handler: _EveningDetectiveServer_GetUsers_Handler,
},
{
MethodName: "GetUserById",
Handler: _EveningDetectiveServer_GetUserById_Handler,
MethodName: "GetUserByID",
Handler: _EveningDetectiveServer_GetUserByID_Handler,
},
{
MethodName: "GetMe",