create profile rpc
This commit is contained in:
@@ -9,6 +9,9 @@ import "common.proto";
|
||||
// logical "profiles" (schemas). Each table has stored structure, links, and
|
||||
// validation rules.
|
||||
service TableDefinition {
|
||||
// Creates a profile with default modules and managed structures, without a user table.
|
||||
rpc CreateProfile(CreateProfileRequest) returns (CreateProfileResponse);
|
||||
|
||||
rpc GetModuleConfiguration(GetModuleConfigurationRequest) returns (ModuleConfiguration);
|
||||
rpc SetModuleConfiguration(SetModuleConfigurationRequest) returns (ModuleConfiguration);
|
||||
|
||||
@@ -108,6 +111,16 @@ service TableDefinition {
|
||||
rpc DeleteProfile(DeleteProfileRequest) returns (DeleteProfileResponse);
|
||||
}
|
||||
|
||||
message CreateProfileRequest {
|
||||
string profile_name = 1;
|
||||
// Omit to leave the bookkeeping currency unconfigured.
|
||||
optional string accounting_currency = 2;
|
||||
}
|
||||
|
||||
message CreateProfileResponse {
|
||||
int64 profile_id = 1;
|
||||
}
|
||||
|
||||
message ModuleScope {
|
||||
oneof target {
|
||||
komp_ac.common.Empty defaults = 1;
|
||||
|
||||
Reference in New Issue
Block a user