Skip to content

Commit

Permalink
Merge pull request #2560 from actiontech/fix_audit_plan_list_instance_id
Browse files Browse the repository at this point in the history
Fix audit plan list instance  id loss of precision
  • Loading branch information
LordofAvernus authored Aug 23, 2024
2 parents 5fa5cb3 + 1c21c03 commit 0860fd8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions sqle/api/controller/v1/instance_audit_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ type GetInstanceAuditPlansResV1 struct {

type InstanceAuditPlanResV1 struct {
InstanceAuditPlanId uint `json:"instance_audit_plan_id"`
InstanceID uint64 `json:"instance_id"`
InstanceID string `json:"instance_id"`
InstanceName string `json:"instance_name"`
Business string `json:"business"`
InstanceType string `json:"instance_type"`
Expand Down Expand Up @@ -527,7 +527,7 @@ func GetInstanceAuditPlans(c echo.Context) error {
inst := dms.GetInstancesByIdWithoutError(v.InstanceID)
resData[i] = InstanceAuditPlanResV1{
InstanceAuditPlanId: v.Id,
InstanceID: inst.ID,
InstanceID: strconv.FormatUint(inst.ID, 10),
InstanceName: inst.Name,
Business: inst.Business,
InstanceType: v.DBType,
Expand Down
6 changes: 3 additions & 3 deletions sqle/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -10306,8 +10306,8 @@ var doc = `{
"priority": {
"type": "string",
"enum": [
"high",
"''"
"",
"high"
]
},
"remark": {
Expand Down Expand Up @@ -13070,7 +13070,7 @@ var doc = `{
"type": "integer"
},
"instance_id": {
"type": "integer"
"type": "string"
},
"instance_name": {
"type": "string"
Expand Down
6 changes: 3 additions & 3 deletions sqle/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -10290,8 +10290,8 @@
"priority": {
"type": "string",
"enum": [
"high",
"''"
"",
"high"
]
},
"remark": {
Expand Down Expand Up @@ -13054,7 +13054,7 @@
"type": "integer"
},
"instance_id": {
"type": "integer"
"type": "string"
},
"instance_name": {
"type": "string"
Expand Down
4 changes: 2 additions & 2 deletions sqle/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,8 @@ definitions:
type: array
priority:
enum:
- ""
- high
- ''''''
type: string
remark:
type: string
Expand Down Expand Up @@ -2413,7 +2413,7 @@ definitions:
instance_audit_plan_id:
type: integer
instance_id:
type: integer
type: string
instance_name:
type: string
instance_type:
Expand Down

0 comments on commit 0860fd8

Please sign in to comment.