Skip to content

Commit

Permalink
api definition: get red dots of system modules
Browse files Browse the repository at this point in the history
  • Loading branch information
winfredLIN committed Oct 22, 2024
1 parent 4b4287a commit 87b2d35
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions sqle/api/controller/v1/system_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,26 @@ func GetSystemModuleStatus(c echo.Context) error {
},
})
}

type GetSystemModuleRedDotsRes struct {
controller.BaseRes
Data ModuleRedDots `json:"data"`
}

type ModuleRedDots []ModuleRedDot

type ModuleRedDot struct {
ModuleName string `json:"module_name"`
HasRedDot bool `json:"has_red_dot"`
}

// @Summary 查询系统各模块的红点提示信息
// @Description get the red dot prompt information in the system
// @Id GetSystemModuleRedDots
// @Tags system
// @Security ApiKeyAuth
// @Success 200 {object} v1.GetSystemModuleRedDotsRes
// @router /v1/system/module_red_dots [get]
func GetSystemModuleRedDots(c echo.Context) error {
return nil
}

0 comments on commit 87b2d35

Please sign in to comment.