package v1 import ( _ "apsClient/model/response" "apsClient/pkg/contextx" "apsClient/service/problem" "github.com/gin-gonic/gin" ) type SystemApi struct{} // ProblemList // @Tags 系统 // @Summary 问题诊断/问题列表 // @Produce application/json // @Success 200 {object} contextx.Response{data=[]problem.CheckResult} "成功" // @Router /v1/system/problemList [get] func (slf *SystemApi) ProblemList(c *gin.Context) { ctx, ok := contextx.NewContext(c, nil) if !ok { return } list := problem.Get() ctx.OkWithDetailed(list) }