Skip to content

Commit

Permalink
feat: add console (#559)
Browse files Browse the repository at this point in the history
* feat: add console

Signed-off-by: Gaius <gaius.qi@gmail.com>
  • Loading branch information
gaius-qi authored Aug 18, 2021
1 parent 5478d8e commit 7a3088e
Show file tree
Hide file tree
Showing 15 changed files with 244 additions and 155 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ mysql
!.vscode/extensions.json
*.code-workspace

### macOS ###
# General
.DS_Store
.AppleDouble
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ generate:
.PHONY: generate

swag:
@swag init --parseDependency --parseInternal --parseDepth 10 -g cmd/manager/main.go -o api/manager
@swag init --parseDependency --parseInternal -g cmd/manager/main.go -o api/manager

# Generate changelog
changelog:
Expand Down
124 changes: 76 additions & 48 deletions api/manager/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1369,8 +1369,8 @@ var doc = `{
},
{
"type": "string",
"description": "instance id",
"name": "instance_id",
"description": "cdn cluster id",
"name": "cdn_cluster_id",
"in": "path",
"required": true
}
Expand Down Expand Up @@ -1414,8 +1414,8 @@ var doc = `{
},
{
"type": "string",
"description": "instance id",
"name": "instance_id",
"description": "scheduler cluster id",
"name": "scheduler_cluster_id",
"in": "path",
"required": true
}
Expand Down Expand Up @@ -1516,65 +1516,33 @@ var doc = `{
}
},
"definitions": {
"model.Assertion": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"policy": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
}
},
"policyMap": {
"type": "object",
"additionalProperties": {
"type": "integer"
}
},
"rm": {
"$ref": "#/definitions/rbac.RoleManager"
},
"tokens": {
"type": "array",
"items": {
"type": "string"
}
},
"value": {
"type": "string"
}
}
},
"model.AssertionMap": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/model.Assertion"
}
},
"model.CDN": {
"type": "object",
"properties": {
"cdnclusterID": {
"type": "integer"
},
"created_at": {
"type": "string"
},
"download_port": {
"type": "integer"
},
"host_name": {
"type": "string"
},
"id": {
"type": "integer"
},
"idc": {
"type": "string"
},
"ip": {
"type": "string"
},
"isDel": {
"type": "integer"
},
"location": {
"type": "string"
},
Expand All @@ -1583,6 +1551,9 @@ var doc = `{
},
"status": {
"type": "string"
},
"updated_at": {
"type": "string"
}
}
},
Expand All @@ -1595,6 +1566,15 @@ var doc = `{
"config": {
"$ref": "#/definitions/model.JSONMap"
},
"created_at": {
"type": "string"
},
"id": {
"type": "integer"
},
"isDel": {
"type": "integer"
},
"is_default": {
"type": "boolean"
},
Expand All @@ -1603,6 +1583,9 @@ var doc = `{
},
"securityGroupID": {
"type": "integer"
},
"updated_at": {
"type": "string"
}
}
},
Expand All @@ -1613,15 +1596,24 @@ var doc = `{
"model.Scheduler": {
"type": "object",
"properties": {
"created_at": {
"type": "string"
},
"host_name": {
"type": "string"
},
"id": {
"type": "integer"
},
"idc": {
"type": "string"
},
"ip": {
"type": "string"
},
"isDel": {
"type": "integer"
},
"location": {
"type": "string"
},
Expand All @@ -1637,6 +1629,9 @@ var doc = `{
"status": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"vips": {
"type": "string"
}
Expand All @@ -1654,6 +1649,15 @@ var doc = `{
"config": {
"$ref": "#/definitions/model.JSONMap"
},
"created_at": {
"type": "string"
},
"id": {
"type": "integer"
},
"isDel": {
"type": "integer"
},
"is_default": {
"type": "boolean"
},
Expand All @@ -1665,6 +1669,9 @@ var doc = `{
},
"securityGroupID": {
"type": "integer"
},
"updated_at": {
"type": "string"
}
}
},
Expand All @@ -1674,14 +1681,26 @@ var doc = `{
"bio": {
"type": "string"
},
"created_at": {
"type": "string"
},
"domain": {
"type": "string"
},
"id": {
"type": "integer"
},
"isDel": {
"type": "integer"
},
"name": {
"type": "string"
},
"proxy_domain": {
"type": "string"
},
"updated_at": {
"type": "string"
}
}
},
Expand All @@ -1694,9 +1713,18 @@ var doc = `{
"bio": {
"type": "string"
},
"created_at": {
"type": "string"
},
"email": {
"type": "string"
},
"id": {
"type": "integer"
},
"isDel": {
"type": "integer"
},
"location": {
"type": "string"
},
Expand All @@ -1711,12 +1739,12 @@ var doc = `{
},
"state": {
"type": "string"
},
"updated_at": {
"type": "string"
}
}
},
"rbac.RoleManager": {
"type": "object"
},
"types.CreateCDNClusterRequest": {
"type": "object",
"required": [
Expand Down
Loading

0 comments on commit 7a3088e

Please sign in to comment.