Skip to content
Snippets Groups Projects
Select Git revision
  • 283b11871c14d15e8fdd596dc1b50116f87f1653
  • master default protected
  • feature/3149-LocaleCodeAsID
  • refactor/PRXS-3053-RefactorFiles
  • feature/3146-UpdateItemStorageInterface
  • feature/3180-RemoveOldHugo
  • feature/3264-FixExtracTranslationsArrays
  • feature/3274-ObjectIndexesFixes
  • feature/2931-AllowPartialDecode
  • feature/3055-ItemsRestAPI
  • feature/3082-gitlab-triage
  • feature/3055-LogsRestAPI
  • feature/2985-add-preset-settings
  • feature/2929-MultiInvitationFix
  • feature/2929-MultiInvitation
  • docs/2889-HugoModules
  • docs/2954-CheckResource
  • docs/3012-SplitBuild
  • docs/3024-PerxisWebStatic
  • feature/2911-GetArchive
  • feature/2941-GoWrapGrpc
  • v0.27.0
  • v0.21.0
  • v0.19.0
  • v0.20.0
25 results

organizations.proto

Blame
  • organizations.proto 1.38 KiB
    syntax = "proto3";
    
    import "google/protobuf/empty.proto";
    import "common/common.proto";
    
    option go_package = "git.perx.ru/perxis/perxis-go/organizations;organizations";
    
    package account.organizations;
    
    // Организация
    message Organization {
      string id = 1; // Идентификатор организации
      string name = 2; // Имя организации
      string description = 3; // Описание организации
      string logo_url = 5; // URI изображения логотипа
      optional string owner_id = 6;
    }
    
    // Запросы и ответы
    
    message CreateRequest {
      Organization org = 1;
    }
    
    message CreateResponse {
      Organization created = 1;
    }
    
    message GetRequest {
      string org_id = 1;
    }
    
    message GetResponse {
      Organization org = 1;
    }
    
    message UpdateRequest {
      Organization org = 1;
    }
    
    message DeleteRequest {
      string org_id = 1;
    }
    
    message Filter {
      repeated string ids = 3;
      repeated string names = 4;
    }
    
    message FindRequest {
      Filter filter = 1;
      common.FindOptions opts = 2;
    }
    
    message FindResponse {
      repeated Organization orgs = 1;
      int64 total = 2;
    }
    
    service Organizations {
      rpc Create(CreateRequest) returns(CreateResponse) {}
      rpc Get(GetRequest) returns(GetResponse) {}
      rpc Delete(DeleteRequest) returns(google.protobuf.Empty) {}
      rpc Find(FindRequest) returns(FindResponse) {}
      rpc Update(UpdateRequest) returns(google.protobuf.Empty) {}
    }