feat: swagger接口文档更新1.0.8

This commit is contained in:
TsMask
2025-01-23 15:07:22 +08:00
parent 788e406c32
commit ed9aa17bc3
47 changed files with 16033 additions and 119 deletions

View File

@@ -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")