Skip to content
Snippets Groups Projects
Select Git revision
  • 78539871cf2d9f6b187865c4855450143dec4e79
  • master default protected
  • feature/PRXS-3383-CollectionsRankSort
  • 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
  • v0.27.0
  • v0.21.0
  • v0.19.0
  • v0.20.0
25 results

common.proto

Blame
  • user avatar
    Alena Petraki authored
    Расширена спецификация для структурированной ошибки. В Operation используется ошибка типа common.Error
    595e1e03
    History
    common.proto 1.02 KiB
    syntax = "proto3";
    
    option go_package = "git.perx.ru/perxis/perxis-go/proto/common;common";
    
    package common;
    
    import "google/protobuf/struct.proto";
    
    message Filter {
      string op = 1;
      string field = 2;
      google.protobuf.Value value = 3;
    }
    
    message FindOptions {
      repeated string sort = 1;
      int32 page_num = 2;
      int32 page_size = 3;
      repeated string fields = 4;
      bool exclude_fields = 5;
    }
    
    
    enum Access {
      ANY = 0;
      MINE = 1;
      ROLE = 2;
    }
    
    enum Action {
      UNKNOWN = 0;
      CREATE = 1;
      READ = 2;
      UPDATE = 3;
      DELETE = 4;
    }
    
    message Rule {
      string collection_id = 1;
      repeated Action actions = 2;
      Access access = 3;
      repeated string hidden_fields = 5;
      repeated string readonly_fields = 6;
      repeated string writeonly_fields = 7;
      string read_filter = 8;
      string write_filter = 9;
    }
    
    message Collaborator {
      string space_id = 1;
      string subject = 2;
      string role = 3;
    }
    
    message Version {
      string server_version = 1;
      string api_version = 2;
      string build_time = 3;
      string commit = 4;
      int32 build_number = 5;
    }