feat: swagger接口文档更新1.0.8
This commit is contained in:
@@ -29,7 +29,7 @@ type ChartGraphController struct {
|
||||
// @Tags chart
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {object} map[string]any "data"
|
||||
// @Success 200 {object} object "Response Results"
|
||||
// @Security ApiKeyAuth
|
||||
// @Summary Get relationship graph group name
|
||||
// @Description Get relationship graph group name
|
||||
@@ -46,9 +46,9 @@ func (s *ChartGraphController) GroupNames(c *gin.Context) {
|
||||
// @Tags chart
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param group query string true "Group"
|
||||
// @Param type query string true "Type oneof=node edge combo" Enums(node, edge, combo)
|
||||
// @Success 200 {object} map[string]any "data"
|
||||
// @Param group query string true "Group"
|
||||
// @Param type query string true "Type" Enums(node, edge, combo)
|
||||
// @Success 200 {object} object "Response Results"
|
||||
// @Security ApiKeyAuth
|
||||
// @Summary Getting Relationship Map Data
|
||||
// @Description Getting Relationship Map Data
|
||||
@@ -75,8 +75,8 @@ func (s *ChartGraphController) Load(c *gin.Context) {
|
||||
// @Tags chart
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param data body map[string]any true "{group:'',data:{nodes:[],edges:[],combos:[]}}"
|
||||
// @Success 200 {object} map[string]any "data"
|
||||
// @Param data body object true "Request Param"
|
||||
// @Success 200 {object} object "Response Results"
|
||||
// @Security ApiKeyAuth
|
||||
// @Summary Saving Relationship Diagram Data
|
||||
// @Description Saving Relationship Diagram Data
|
||||
@@ -117,12 +117,12 @@ func (s *ChartGraphController) Save(c *gin.Context) {
|
||||
// @Tags chart
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param group path string true "Group"
|
||||
// @Success 200 {object} map[string]any "data"
|
||||
// @Param group path string true "Group"
|
||||
// @Success 200 {object} object "Response Results"
|
||||
// @Security ApiKeyAuth
|
||||
// @Summary Deleting Relationship Diagram Data
|
||||
// @Description Deleting Relationship Diagram Data
|
||||
// @Router /chart/graph/:group [delete]
|
||||
// @Router /chart/graph/{group} [delete]
|
||||
func (s *ChartGraphController) Delete(c *gin.Context) {
|
||||
language := ctx.AcceptLanguage(c)
|
||||
group := c.Param("group")
|
||||
|
||||
Reference in New Issue
Block a user