Skip to content

Commit

Permalink
feat: add more memo settings
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed May 29, 2024
1 parent 1894ef1 commit 0f4b7c5
Show file tree
Hide file tree
Showing 12 changed files with 251 additions and 109 deletions.
6 changes: 6 additions & 0 deletions docs/apidocs.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2108,6 +2108,12 @@ definitions:
type: integer
format: int32
description: content_length_limit is the limit of content length. Unit is byte.
enableAutoCompact:
type: boolean
description: enable_auto_compact enables auto compact for large content.
enableDoubleClickEdit:
type: boolean
description: enable_double_click_edit enables editing on double click.
apiv1WorkspaceSetting:
type: object
properties:
Expand Down
4 changes: 4 additions & 0 deletions proto/api/v1/workspace_setting_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ message WorkspaceMemoRelatedSetting {
bool display_with_update_time = 2;
// content_length_limit is the limit of content length. Unit is byte.
int32 content_length_limit = 3;
// enable_auto_compact enables auto compact for large content.
bool enable_auto_compact = 4;
// enable_double_click_edit enables editing on double click.
bool enable_double_click_edit = 5;
}

message GetWorkspaceSettingRequest {
Expand Down
111 changes: 68 additions & 43 deletions proto/gen/api/v1/workspace_setting_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

64 changes: 44 additions & 20 deletions proto/gen/store/workspace_setting.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions proto/store/workspace_setting.proto
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,8 @@ message WorkspaceMemoRelatedSetting {
bool display_with_update_time = 2;
// content_length_limit is the limit of content length. Unit is byte.
int32 content_length_limit = 3;
// enable_auto_compact enables auto compact for large content.
bool enable_auto_compact = 4;
// enable_double_click_edit enables editing on double click.
bool enable_double_click_edit = 5;
}
Loading

0 comments on commit 0f4b7c5

Please sign in to comment.