Skip to content

Commit

Permalink
Merge pull request #2421 from actiontech/256-api-0
Browse files Browse the repository at this point in the history
256-api-0
  • Loading branch information
ColdWaterLW committed May 16, 2024
2 parents 89e41ff + dd0179d commit 0890631
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sqle/api/controller/v1/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ type UpdateSystemVariablesReqV1 struct {
WorkflowExpiredHours *int `json:"workflow_expired_hours" form:"workflow_expired_hours" example:"720"`
Url *string `json:"url" form:"url" example:"http://10.186.61.32:8080" validate:"url"`
OperationRecordExpiredHours *int `json:"operation_record_expired_hours" form:"operation_record_expired_hours" example:"2160"`
CbOperationLogsExpiredHours *int `json:"cb_operation_logs_expired_hours" form:"cb_operation_logs_expired_hours" example:"2160"`
}

// @Summary 修改系统变量
Expand Down Expand Up @@ -139,6 +140,7 @@ type SystemVariablesResV1 struct {
WorkflowExpiredHours int `json:"workflow_expired_hours"`
Url string `json:"url"`
OperationRecordExpiredHours int `json:"operation_record_expired_hours"`
CbOperationLogsExpiredHours int `json:"cb_operation_logs_expired_hours"`
}

// @Summary 获取系统变量
Expand Down
7 changes: 7 additions & 0 deletions sqle/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -12423,6 +12423,9 @@ var doc = `{
"v1.SystemVariablesResV1": {
"type": "object",
"properties": {
"cb_operation_logs_expired_hours": {
"type": "integer"
},
"operation_record_expired_hours": {
"type": "integer"
},
Expand Down Expand Up @@ -12908,6 +12911,10 @@ var doc = `{
"v1.UpdateSystemVariablesReqV1": {
"type": "object",
"properties": {
"cb_operation_logs_expired_hours": {
"type": "integer",
"example": 2160
},
"operation_record_expired_hours": {
"type": "integer",
"example": 2160
Expand Down
7 changes: 7 additions & 0 deletions sqle/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -12407,6 +12407,9 @@
"v1.SystemVariablesResV1": {
"type": "object",
"properties": {
"cb_operation_logs_expired_hours": {
"type": "integer"
},
"operation_record_expired_hours": {
"type": "integer"
},
Expand Down Expand Up @@ -12892,6 +12895,10 @@
"v1.UpdateSystemVariablesReqV1": {
"type": "object",
"properties": {
"cb_operation_logs_expired_hours": {
"type": "integer",
"example": 2160
},
"operation_record_expired_hours": {
"type": "integer",
"example": 2160
Expand Down
5 changes: 5 additions & 0 deletions sqle/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2820,6 +2820,8 @@ definitions:
type: object
v1.SystemVariablesResV1:
properties:
cb_operation_logs_expired_hours:
type: integer
operation_record_expired_hours:
type: integer
url:
Expand Down Expand Up @@ -3147,6 +3149,9 @@ definitions:
type: object
v1.UpdateSystemVariablesReqV1:
properties:
cb_operation_logs_expired_hours:
example: 2160
type: integer
operation_record_expired_hours:
example: 2160
type: integer
Expand Down

0 comments on commit 0890631

Please sign in to comment.