1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- syntax = "proto3";
- message GridMeta {
- string grid_id = 1;
- repeated FieldMeta fields = 2;
- repeated GridBlockMeta block_metas = 3;
- }
- message GridBlockMeta {
- string block_id = 1;
- int32 start_row_index = 2;
- int32 row_count = 3;
- }
- message GridBlockMetaData {
- string block_id = 1;
- repeated RowMeta row_metas = 2;
- }
- message FieldMeta {
- string id = 1;
- string name = 2;
- string desc = 3;
- FieldType field_type = 4;
- bool frozen = 5;
- bool visibility = 6;
- int32 width = 7;
- TypeOptionDataByFieldTypeId type_option_by_field_type_id = 8;
- }
- message TypeOptionDataByFieldTypeId {
- map<string, string> map = 1;
- }
- message FieldChangesetPayload {
- string field_id = 1;
- string grid_id = 2;
- oneof one_of_name { string name = 3; };
- oneof one_of_desc { string desc = 4; };
- oneof one_of_field_type { FieldType field_type = 5; };
- oneof one_of_frozen { bool frozen = 6; };
- oneof one_of_visibility { bool visibility = 7; };
- oneof one_of_width { int32 width = 8; };
- oneof one_of_type_option_data { bytes type_option_data = 9; };
- }
- message AnyData {
- string type_id = 1;
- bytes value = 2;
- }
- message RowMeta {
- string id = 1;
- string block_id = 2;
- map<string, CellMeta> cell_by_field_id = 3;
- int32 height = 4;
- bool visibility = 5;
- }
- message RowMetaChangeset {
- string row_id = 1;
- oneof one_of_height { int32 height = 2; };
- oneof one_of_visibility { bool visibility = 3; };
- map<string, CellMeta> cell_by_field_id = 4;
- }
- message CellMeta {
- string field_id = 1;
- string data = 2;
- }
- message CellMetaChangeset {
- string grid_id = 1;
- string row_id = 2;
- string field_id = 3;
- oneof one_of_data { string data = 4; };
- }
- message BuildGridContext {
- repeated FieldMeta field_metas = 1;
- GridBlockMeta block_metas = 2;
- GridBlockMetaData block_meta_data = 3;
- }
- enum FieldType {
- RichText = 0;
- Number = 1;
- DateTime = 2;
- SingleSelect = 3;
- MultiSelect = 4;
- Checkbox = 5;
- }
|