diff --git a/server/admin/monitor_client/monitor_client_ctl.go b/server/admin/monitor_client/monitor_client_ctl.go index 22971e6..3653da7 100644 --- a/server/admin/monitor_client/monitor_client_ctl.go +++ b/server/admin/monitor_client/monitor_client_ctl.go @@ -23,30 +23,30 @@ type MonitorClientHandler struct { requestGroup singleflight.Group } -// @Summary 监控-客户端信息列表 -// @Tags monitor_client-监控-客户端信息 -// @Produce json -// @Param Token header string true "token" -// @Param PageNo query int true "页码" -// @Param PageSize query int true "每页数量" -// @Param ProjectKey query string false "项目key" -// @Param ClientId query string false "sdk生成的客户端id" -// @Param UserId query string false "用户id" -// @Param Os query string false "系统" -// @Param Browser query string false "浏览器" -// @Param Country query string false "国家" -// @Param Province query string false "省份" -// @Param City query string false "城市" -// @Param Operator query string false "电信运营商" -// @Param Ip query string false "ip" -// @Param Width query number false "屏幕" -// @Param Height query number false "屏幕高度" -// @Param Ua query string false "ua记录" -// @Param CreateTimeStart query string false "创建时间" -// @Param CreateTimeEnd query string false "创建时间" +// @Summary 监控-客户端信息列表 +// @Tags monitor_client-监控-客户端信息 +// @Produce json +// @Param Token header string true "token" +// @Param PageNo query int true "页码" +// @Param PageSize query int true "每页数量" +// @Param ProjectKey query string false "项目key" +// @Param ClientId query string false "sdk生成的客户端id" +// @Param UserId query string false "用户id" +// @Param Os query string false "系统" +// @Param Browser query string false "浏览器" +// @Param Country query string false "国家" +// @Param Province query string false "省份" +// @Param City query string false "城市" +// @Param Operator query string false "电信运营商" +// @Param Ip query string false "ip" +// @Param Width query number false "屏幕" +// @Param Height query number false "屏幕高度" +// @Param Ua query string false "ua记录" +// @Param CreateTimeStart query string false "创建时间" +// @Param CreateTimeEnd query string false "创建时间" // -// @Success 200 {object} response.Response{ data=response.PageResp{ lists=[]MonitorClientResp}} "成功" -// @Router /api/admin/monitor_client/list [get] +// @Success 200 {object} response.Response{ data=response.PageResp{ lists=[]MonitorClientResp}} "成功" +// @Router /api/admin/monitor_client/list [get] func (hd *MonitorClientHandler) List(c *gin.Context) { var page request.PageReq var listReq MonitorClientListReq @@ -60,27 +60,26 @@ func (hd *MonitorClientHandler) List(c *gin.Context) { response.CheckAndRespWithData(c, res, err) } -// @Summary 监控-客户端信息列表-所有 -// @Tags monitor_client-监控-客户端信息 -// @Produce json -// @Param ProjectKey query string false "项目key" -// @Param ClientId query string false "sdk生成的客户端id" -// @Param UserId query string false "用户id" -// @Param Os query string false "系统" -// @Param Browser query string false "浏览器" -// @Param Country query string false "国家" -// @Param Province query string false "省份" -// @Param City query string false "城市" -// @Param Operator query string false "电信运营商" -// @Param Ip query string false "ip" -// @Param Width query number -// @Param Width query number false "屏幕" -// @Param Height query number false "屏幕高度" -// @Param Ua query string false "ua记录" -// @Param CreateTimeStart query string false "创建时间" -// @Param CreateTimeEnd query string false "创建时间" -// @Success 200 {object} response.Response{ data=[]MonitorClientResp} "成功" -// @Router /api/admin/monitor_client/listAll [get] +// @Summary 监控-客户端信息列表-所有 +// @Tags monitor_client-监控-客户端信息 +// @Produce json +// @Param ProjectKey query string false "项目key" +// @Param ClientId query string false "sdk生成的客户端id" +// @Param UserId query string false "用户id" +// @Param Os query string false "系统" +// @Param Browser query string false "浏览器" +// @Param Country query string false "国家" +// @Param Province query string false "省份" +// @Param City query string false "城市" +// @Param Operator query string false "电信运营商" +// @Param Ip query string false "ip" +// @Param Width query number false "屏幕" +// @Param Height query number false "屏幕高度" +// @Param Ua query string false "ua记录" +// @Param CreateTimeStart query string false "创建时间" +// @Param CreateTimeEnd query string false "创建时间" +// @Success 200 {object} response.Response{ data=[]MonitorClientResp} "成功" +// @Router /api/admin/monitor_client/listAll [get] func (hd *MonitorClientHandler) ListAll(c *gin.Context) { var listReq MonitorClientListReq if response.IsFailWithResp(c, util.VerifyUtil.VerifyQuery(c, &listReq)) { @@ -99,13 +98,13 @@ func (hd *MonitorClientHandler) ErrorUsers(c *gin.Context) { response.CheckAndRespWithData(c, res, err) } -// @Summary 监控-客户端信息详情 -// @Tags monitor_client-监控-客户端信息 -// @Produce json -// @Param Token header string true "token" -// @Param Id query number false "uuid" -// @Success 200 {object} response.Response{ data=MonitorClientResp} "成功" -// @Router /api/admin/monitor_client/detail [get] +// @Summary 监控-客户端信息详情 +// @Tags monitor_client-监控-客户端信息 +// @Produce json +// @Param Token header string true "token" +// @Param Id query number false "uuid" +// @Success 200 {object} response.Response{ data=MonitorClientResp} "成功" +// @Router /api/admin/monitor_client/detail [get] func (hd *MonitorClientHandler) Detail(c *gin.Context) { var detailReq MonitorClientDetailReq if response.IsFailWithResp(c, util.VerifyUtil.VerifyQuery(c, &detailReq)) { @@ -119,25 +118,25 @@ func (hd *MonitorClientHandler) Detail(c *gin.Context) { response.CheckAndRespWithData(c, res, err) } -// @Summary 监控-客户端信息新增 -// @Tags monitor_client-监控-客户端信息 -// @Produce json -// @Param Token header string true "token" -// @Param ProjectKey body string false "项目key" -// @Param ClientId body string false "sdk生成的客户端id" -// @Param UserId body string false "用户id" -// @Param Os body string false "系统" -// @Param Browser body string false "浏览器" -// @Param Country query string false "国家" -// @Param Province query string false "省份" -// @Param City query string false "城市" -// @Param Operator query string false "电信运营商" -// @Param Ip query string false "ip" -// @Param Width body number false "屏幕" -// @Param Height body number false "屏幕高度" -// @Param Ua body string false "ua记录" -// @Success 200 {object} response.Response "成功" -// @Router /api/admin/monitor_client/add [post] +// @Summary 监控-客户端信息新增 +// @Tags monitor_client-监控-客户端信息 +// @Produce json +// @Param Token header string true "token" +// @Param ProjectKey body string false "项目key" +// @Param ClientId body string false "sdk生成的客户端id" +// @Param UserId body string false "用户id" +// @Param Os body string false "系统" +// @Param Browser body string false "浏览器" +// @Param Country query string false "国家" +// @Param Province query string false "省份" +// @Param City query string false "城市" +// @Param Operator query string false "电信运营商" +// @Param Ip query string false "ip" +// @Param Width body number false "屏幕" +// @Param Height body number false "屏幕高度" +// @Param Ua body string false "ua记录" +// @Success 200 {object} response.Response "成功" +// @Router /api/admin/monitor_client/add [post] func (hd *MonitorClientHandler) Add(c *gin.Context) { data, err := url.QueryUnescape(c.Query("data")) if err != nil { @@ -190,13 +189,13 @@ func (hd *MonitorClientHandler) Add(c *gin.Context) { c.Data(200, "image/gif", img_util.EmptyGif()) } -// @Summary 监控-客户端信息删除 -// @Tags monitor_client-监控-客户端信息 -// @Produce json -// @Param Token header string true "token" -// @Param Id body number false "uuid" -// @Success 200 {object} response.Response "成功" -// @Router /api/admin/monitor_client/del [post] +// @Summary 监控-客户端信息删除 +// @Tags monitor_client-监控-客户端信息 +// @Produce json +// @Param Token header string true "token" +// @Param Id body number false "uuid" +// @Success 200 {object} response.Response "成功" +// @Router /api/admin/monitor_client/del [post] func (hd *MonitorClientHandler) Del(c *gin.Context) { var delReq MonitorClientDelReq if response.IsFailWithResp(c, util.VerifyUtil.VerifyJSON(c, &delReq)) { @@ -205,14 +204,14 @@ func (hd *MonitorClientHandler) Del(c *gin.Context) { response.CheckAndResp(c, MonitorClientService.Del(delReq.Id)) } -// @Summary 监控-客户端信息删除-批量 -// @Tags monitor_client-监控-客户端信息 +// @Summary 监控-客户端信息删除-批量 +// @Tags monitor_client-监控-客户端信息 // -// @Produce json -// @Param Token header string true "token" -// @Param Ids body string false "逗号分割的id" -// @Success 200 {object} response.Response "成功" -// @Router /api/admin/monitor_client/delBatch [post] +// @Produce json +// @Param Token header string true "token" +// @Param Ids body string false "逗号分割的id" +// @Success 200 {object} response.Response "成功" +// @Router /api/admin/monitor_client/delBatch [post] func (hd *MonitorClientHandler) DelBatch(c *gin.Context) { var delReq MonitorClientDelBatchReq if response.IsFailWithResp(c, util.VerifyUtil.VerifyJSON(c, &delReq)) { @@ -227,26 +226,26 @@ func (hd *MonitorClientHandler) DelBatch(c *gin.Context) { response.CheckAndResp(c, MonitorClientService.DelBatch(Ids)) } -// @Summary 监控-客户端信息导出 -// @Tags monitor_client-监控-客户端信息 -// @Produce json -// @Param Token header string true "token" -// @Param ProjectKey query string false "项目key" -// @Param ClientId query string false "sdk生成的客户端id" -// @Param UserId query string false "用户id" -// @Param Os query string false "系统" -// @Param Browser query string false "浏览器" -// @Param Country query string false "国家" -// @Param Province query string false "省份" -// @Param City query string false "城市" -// @Param Operator query string false "电信运营商" -// @Param Ip query string false "ip" -// @Param Width query number false "屏幕" -// @Param Height query number false "屏幕高度" -// @Param Ua query string false "ua记录" -// @Param CreateTimeStart query string false "创建时间" -// @Param CreateTimeEnd query string false "创建时间" -// @Router /api/admin/monitor_client/ExportFile [get] +// @Summary 监控-客户端信息导出 +// @Tags monitor_client-监控-客户端信息 +// @Produce json +// @Param Token header string true "token" +// @Param ProjectKey query string false "项目key" +// @Param ClientId query string false "sdk生成的客户端id" +// @Param UserId query string false "用户id" +// @Param Os query string false "系统" +// @Param Browser query string false "浏览器" +// @Param Country query string false "国家" +// @Param Province query string false "省份" +// @Param City query string false "城市" +// @Param Operator query string false "电信运营商" +// @Param Ip query string false "ip" +// @Param Width query number false "屏幕" +// @Param Height query number false "屏幕高度" +// @Param Ua query string false "ua记录" +// @Param CreateTimeStart query string false "创建时间" +// @Param CreateTimeEnd query string false "创建时间" +// @Router /api/admin/monitor_client/ExportFile [get] func (hd *MonitorClientHandler) ExportFile(c *gin.Context) { var listReq MonitorClientListReq if response.IsFailWithResp(c, util.VerifyUtil.VerifyQuery(c, &listReq)) { @@ -265,10 +264,10 @@ func (hd *MonitorClientHandler) ExportFile(c *gin.Context) { excel2.DownLoadExcel("监控-客户端信息"+time.Now().Format("20060102-150405"), c.Writer, f) } -// @Summary 监控-客户端信息导入 -// @Tags monitor_client-监控-客户端信息 -// @Produce json -// @Router /api/admin/monitor_client/ImportFile [post] +// @Summary 监控-客户端信息导入 +// @Tags monitor_client-监控-客户端信息 +// @Produce json +// @Router /api/admin/monitor_client/ImportFile [post] func (hd *MonitorClientHandler) ImportFile(c *gin.Context) { file, _, err := c.Request.FormFile("file") if err != nil { diff --git a/server/admin/monitor_slow/monitor_slow_ctl.go b/server/admin/monitor_slow/monitor_slow_ctl.go index 531ae77..42fa9dc 100644 --- a/server/admin/monitor_slow/monitor_slow_ctl.go +++ b/server/admin/monitor_slow/monitor_slow_ctl.go @@ -21,22 +21,22 @@ type MonitorSlowHandler struct { requestGroup singleflight.Group } -// @Summary 监控-错误列列表 -// @Tags monitor_slow-监控-错误列 -// @Produce json -// @Param Token header string true "token" -// @Param PageNo query int true "页码" -// @Param PageSize query int true "每页数量" -// @Param ProjectKey query string false "项目key" -// @Param ClientId query string false "sdk生成的客户端id" -// @Param UserId query string false "用户id" -// @Param Path query string false "URL地址" -// @Param Time query number false "时间" -// @Param CreateTimeStart query string false "创建时间" -// @Param CreateTimeEnd query string false "创建时间" +// @Summary 监控-错误列列表 +// @Tags monitor_slow-监控-错误列 +// @Produce json +// @Param Token header string true "token" +// @Param PageNo query int true "页码" +// @Param PageSize query int true "每页数量" +// @Param ProjectKey query string false "项目key" +// @Param ClientId query string false "sdk生成的客户端id" +// @Param UserId query string false "用户id" +// @Param Path query string false "URL地址" +// @Param Time query number false "时间" +// @Param CreateTimeStart query string false "创建时间" +// @Param CreateTimeEnd query string false "创建时间" // -// @Success 200 {object} response.Response{ data=response.PageResp{ lists=[]MonitorSlowResp}} "成功" -// @Router /api/admin/monitor_slow/list [get] +// @Success 200 {object} response.Response{ data=response.PageResp{ lists=[]MonitorSlowResp}} "成功" +// @Router /api/admin/monitor_slow/list [get] func (hd *MonitorSlowHandler) List(c *gin.Context) { var page request.PageReq var listReq MonitorSlowListReq @@ -50,18 +50,18 @@ func (hd *MonitorSlowHandler) List(c *gin.Context) { response.CheckAndRespWithData(c, res, err) } -// @Summary 监控-错误列列表-所有 -// @Tags monitor_slow-监控-错误列 -// @Produce json -// @Param ProjectKey query string false "项目key" -// @Param ClientId query string false "sdk生成的客户端id" -// @Param UserId query string false "用户id" -// @Param Path query string false "URL地址" -// @Param Time query number false "时间" -// @Param CreateTimeStart query string false "创建时间" -// @Param CreateTimeEnd query string false "创建时间" -// @Success 200 {object} response.Response{ data=[]MonitorSlowResp} "成功" -// @Router /api/admin/monitor_slow/listAll [get] +// @Summary 监控-错误列列表-所有 +// @Tags monitor_slow-监控-错误列 +// @Produce json +// @Param ProjectKey query string false "项目key" +// @Param ClientId query string false "sdk生成的客户端id" +// @Param UserId query string false "用户id" +// @Param Path query string false "URL地址" +// @Param Time query number false "时间" +// @Param CreateTimeStart query string false "创建时间" +// @Param CreateTimeEnd query string false "创建时间" +// @Success 200 {object} response.Response{ data=[]MonitorSlowResp} "成功" +// @Router /api/admin/monitor_slow/listAll [get] func (hd *MonitorSlowHandler) ListAll(c *gin.Context) { var listReq MonitorSlowListReq if response.IsFailWithResp(c, util.VerifyUtil.VerifyQuery(c, &listReq)) { @@ -71,13 +71,13 @@ func (hd *MonitorSlowHandler) ListAll(c *gin.Context) { response.CheckAndRespWithData(c, res, err) } -// @Summary 监控-错误列详情 -// @Tags monitor_slow-监控-错误列 -// @Produce json -// @Param Token header string true "token" -// @Param Id query number false "错误id" -// @Success 200 {object} response.Response{ data=MonitorSlowResp} "成功" -// @Router /api/admin/monitor_slow/detail [get] +// @Summary 监控-错误列详情 +// @Tags monitor_slow-监控-错误列 +// @Produce json +// @Param Token header string true "token" +// @Param Id query number false "错误id" +// @Success 200 {object} response.Response{ data=MonitorSlowResp} "成功" +// @Router /api/admin/monitor_slow/detail [get] func (hd *MonitorSlowHandler) Detail(c *gin.Context) { var detailReq MonitorSlowDetailReq if response.IsFailWithResp(c, util.VerifyUtil.VerifyQuery(c, &detailReq)) { @@ -91,17 +91,11 @@ func (hd *MonitorSlowHandler) Detail(c *gin.Context) { response.CheckAndRespWithData(c, res, err) } -// @Summary 监控-错误列新增 -// @Tags monitor_slow-监控-错误列 -// @Produce json -// @Param Token header string true "token" -// @Param ProjectKey body string false "项目key" -// @Param ClientId body string false "sdk生成的客户端id" -// @Param UserId body string false "用户id" -// @Param Path body string false "URL地址" -// @Param Time body number false "时间" -// @Success 200 {object} response.Response "成功" -// @Router /api/admin/monitor_slow/add [post] +// @Summary 监控-错误列新增 +// @Tags monitor_slow-监控-错误列 +// @Produce json +// @Success 200 {object} response.Response "成功" +// @Router /api/admin/monitor_slow/add [get] func (hd *MonitorSlowHandler) Add(c *gin.Context) { data, err := url.QueryUnescape(c.Query("data")) if err != nil { @@ -116,18 +110,18 @@ func (hd *MonitorSlowHandler) Add(c *gin.Context) { c.Data(200, "image/gif", img_util.EmptyGif()) } -// @Summary 监控-错误列编辑 -// @Tags monitor_slow-监控-错误列 -// @Produce json -// @Param Token header string true "token" -// @Param Id body number false "错误id" -// @Param ProjectKey body string false "项目key" -// @Param ClientId body string false "sdk生成的客户端id" -// @Param UserId body string false "用户id" -// @Param Path body string false "URL地址" -// @Param Time body number false "时间" -// @Success 200 {object} response.Response "成功" -// @Router /api/admin/monitor_slow/edit [post] +// @Summary 监控-错误列编辑 +// @Tags monitor_slow-监控-错误列 +// @Produce json +// @Param Token header string true "token" +// @Param Id body number false "错误id" +// @Param ProjectKey body string false "项目key" +// @Param ClientId body string false "sdk生成的客户端id" +// @Param UserId body string false "用户id" +// @Param Path body string false "URL地址" +// @Param Time body number false "时间" +// @Success 200 {object} response.Response "成功" +// @Router /api/admin/monitor_slow/edit [post] func (hd *MonitorSlowHandler) Edit(c *gin.Context) { var editReq MonitorSlowEditReq if response.IsFailWithResp(c, util.VerifyUtil.VerifyJSON(c, &editReq)) { @@ -136,13 +130,13 @@ func (hd *MonitorSlowHandler) Edit(c *gin.Context) { response.CheckAndRespWithData(c, editReq.Id, MonitorSlowService.Edit(editReq)) } -// @Summary 监控-错误列删除 -// @Tags monitor_slow-监控-错误列 -// @Produce json -// @Param Token header string true "token" -// @Param Id body number false "错误id" -// @Success 200 {object} response.Response "成功" -// @Router /api/admin/monitor_slow/del [post] +// @Summary 监控-错误列删除 +// @Tags monitor_slow-监控-错误列 +// @Produce json +// @Param Token header string true "token" +// @Param Id body number false "错误id" +// @Success 200 {object} response.Response "成功" +// @Router /api/admin/monitor_slow/del [post] func (hd *MonitorSlowHandler) Del(c *gin.Context) { var delReq MonitorSlowDelReq if response.IsFailWithResp(c, util.VerifyUtil.VerifyJSON(c, &delReq)) { @@ -154,11 +148,11 @@ func (hd *MonitorSlowHandler) Del(c *gin.Context) { // @Summary 监控-错误列删除-批量 // @Tags monitor_slow-监控-错误列 // -// @Produce json -// @Param Token header string true "token" -// @Param Ids body string false "逗号分割的id" -// @Success 200 {object} response.Response "成功" -// @Router /api/admin/monitor_slow/delBatch [post] +// @Produce json +// @Param Token header string true "token" +// @Param Ids body string false "逗号分割的id" +// @Success 200 {object} response.Response "成功" +// @Router /api/admin/monitor_slow/delBatch [post] func (hd *MonitorSlowHandler) DelBatch(c *gin.Context) { var delReq MonitorSlowDelBatchReq if response.IsFailWithResp(c, util.VerifyUtil.VerifyJSON(c, &delReq)) { @@ -173,18 +167,18 @@ func (hd *MonitorSlowHandler) DelBatch(c *gin.Context) { response.CheckAndResp(c, MonitorSlowService.DelBatch(Ids)) } -// @Summary 监控-错误列导出 -// @Tags monitor_slow-监控-错误列 -// @Produce json -// @Param Token header string true "token" -// @Param ProjectKey query string false "项目key" -// @Param ClientId query string false "sdk生成的客户端id" -// @Param UserId query string false "用户id" -// @Param Path query string false "URL地址" -// @Param Time query number false "时间" -// @Param CreateTimeStart query string false "创建时间" -// @Param CreateTimeEnd query string false "创建时间" -// @Router /api/admin/monitor_slow/ExportFile [get] +// @Summary 监控-错误列导出 +// @Tags monitor_slow-监控-错误列 +// @Produce json +// @Param Token header string true "token" +// @Param ProjectKey query string false "项目key" +// @Param ClientId query string false "sdk生成的客户端id" +// @Param UserId query string false "用户id" +// @Param Path query string false "URL地址" +// @Param Time query number false "时间" +// @Param CreateTimeStart query string false "创建时间" +// @Param CreateTimeEnd query string false "创建时间" +// @Router /api/admin/monitor_slow/ExportFile [get] func (hd *MonitorSlowHandler) ExportFile(c *gin.Context) { var listReq MonitorSlowListReq if response.IsFailWithResp(c, util.VerifyUtil.VerifyQuery(c, &listReq)) { @@ -203,10 +197,10 @@ func (hd *MonitorSlowHandler) ExportFile(c *gin.Context) { excel2.DownLoadExcel("监控-错误列"+time.Now().Format("20060102-150405"), c.Writer, f) } -// @Summary 监控-错误列导入 -// @Tags monitor_slow-监控-错误列 -// @Produce json -// @Router /api/admin/monitor_slow/ImportFile [post] +// @Summary 监控-错误列导入 +// @Tags monitor_slow-监控-错误列 +// @Produce json +// @Router /api/admin/monitor_slow/ImportFile [post] func (hd *MonitorSlowHandler) ImportFile(c *gin.Context) { file, _, err := c.Request.FormFile("file") if err != nil { diff --git a/server/admin/user_protocol/user_protocol_ctl.go b/server/admin/user_protocol/user_protocol_ctl.go index 45b584c..ea3f046 100644 --- a/server/admin/user_protocol/user_protocol_ctl.go +++ b/server/admin/user_protocol/user_protocol_ctl.go @@ -18,22 +18,22 @@ type UserProtocolHandler struct { requestGroup singleflight.Group } -// @Summary 用户协议列表 -// @Tags user_protocol-用户协议 -// @Produce json -// @Param Token header string true "token" -// @Param PageNo query int true "页码" -// @Param PageSize query int true "每页数量" -// @Param Title query string false "标题" -// @Param Content query string false "协议内容" -// @Param Sort query number false "排序" -// @Param CreateTimeStart query string false "创建时间" -// @Param CreateTimeEnd query string false "创建时间" -// @Param UpdateTimeStart query string false "更新时间" -// @Param UpdateTimeEnd query string false "更新时间" +// @Summary 用户协议列表 +// @Tags user_protocol-用户协议 +// @Produce json +// @Param Token header string true "token" +// @Param PageNo query int true "页码" +// @Param PageSize query int true "每页数量" +// @Param Title query string false "标题" +// @Param Content query string false "协议内容" +// @Param Sort query number false "排序" +// @Param CreateTimeStart query string false "创建时间" +// @Param CreateTimeEnd query string false "创建时间" +// @Param UpdateTimeStart query string false "更新时间" +// @Param UpdateTimeEnd query string false "更新时间" // -// @Success 200 {object} response.Response{ data=response.PageResp{ lists=[]UserProtocolResp}} "成功" -// @Router /api/admin/user_protocol/list [get] +// @Success 200 {object} response.Response{ data=response.PageResp{ lists=[]UserProtocolResp}} "成功" +// @Router /api/admin/user_protocol/list [get] func (hd *UserProtocolHandler) List(c *gin.Context) { var page request.PageReq var listReq UserProtocolListReq @@ -47,18 +47,18 @@ func (hd *UserProtocolHandler) List(c *gin.Context) { response.CheckAndRespWithData(c, res, err) } -// @Summary 用户协议列表-所有 -// @Tags user_protocol-用户协议 -// @Produce json -// @Param Title query string false "标题" -// @Param Content query string false "协议内容" -// @Param Sort query number false "排序" -// @Param CreateTimeStart query string false "创建时间" -// @Param CreateTimeEnd query string false "创建时间" -// @Param UpdateTimeStart query string false "更新时间" -// @Param UpdateTimeEnd query string false "更新时间" -// @Success 200 {object} response.Response{ data=[]UserProtocolResp} "成功" -// @Router /api/admin/user_protocol/listAll [get] +// @Summary 用户协议列表-所有 +// @Tags user_protocol-用户协议 +// @Produce json +// @Param Title query string false "标题" +// @Param Content query string false "协议内容" +// @Param Sort query number false "排序" +// @Param CreateTimeStart query string false "创建时间" +// @Param CreateTimeEnd query string false "创建时间" +// @Param UpdateTimeStart query string false "更新时间" +// @Param UpdateTimeEnd query string false "更新时间" +// @Success 200 {object} response.Response{ data=[]UserProtocolResp} "成功" +// @Router /api/admin/user_protocol/listAll [get] func (hd *UserProtocolHandler) ListAll(c *gin.Context) { var listReq UserProtocolListReq if response.IsFailWithResp(c, util.VerifyUtil.VerifyQuery(c, &listReq)) { @@ -68,13 +68,13 @@ func (hd *UserProtocolHandler) ListAll(c *gin.Context) { response.CheckAndRespWithData(c, res, err) } -// @Summary 用户协议详情 -// @Tags user_protocol-用户协议 -// @Produce json -// @Param Token header string true "token" -// @Param Id query number false "" -// @Success 200 {object} response.Response{ data=UserProtocolResp} "成功" -// @Router /api/admin/user_protocol/detail [get] +// @Summary 用户协议详情 +// @Tags user_protocol-用户协议 +// @Produce json +// @Param Token header string true "token" +// @Param Id query number false "Id" +// @Success 200 {object} response.Response{ data=UserProtocolResp} "成功" +// @Router /api/admin/user_protocol/detail [get] func (hd *UserProtocolHandler) Detail(c *gin.Context) { var detailReq UserProtocolDetailReq if response.IsFailWithResp(c, util.VerifyUtil.VerifyQuery(c, &detailReq)) { @@ -88,15 +88,15 @@ func (hd *UserProtocolHandler) Detail(c *gin.Context) { response.CheckAndRespWithData(c, res, err) } -// @Summary 用户协议新增 -// @Tags user_protocol-用户协议 -// @Produce json -// @Param Token header string true "token" -// @Param Title body string false "标题" -// @Param Content body string false "协议内容" -// @Param Sort body number false "排序" -// @Success 200 {object} response.Response "成功" -// @Router /api/admin/user_protocol/add [post] +// @Summary 用户协议新增 +// @Tags user_protocol-用户协议 +// @Produce json +// @Param Token header string true "token" +// @Param Title body string false "标题" +// @Param Content body string false "协议内容" +// @Param Sort body number false "排序" +// @Success 200 {object} response.Response "成功" +// @Router /api/admin/user_protocol/add [post] func (hd *UserProtocolHandler) Add(c *gin.Context) { var addReq UserProtocolAddReq if response.IsFailWithResp(c, util.VerifyUtil.VerifyJSON(c, &addReq)) { @@ -106,16 +106,16 @@ func (hd *UserProtocolHandler) Add(c *gin.Context) { response.CheckAndRespWithData(c, createId, e) } -// @Summary 用户协议编辑 -// @Tags user_protocol-用户协议 -// @Produce json -// @Param Token header string true "token" -// @Param Id body number false "" -// @Param Title body string false "标题" -// @Param Content body string false "协议内容" -// @Param Sort body number false "排序" -// @Success 200 {object} response.Response "成功" -// @Router /api/admin/user_protocol/edit [post] +// @Summary 用户协议编辑 +// @Tags user_protocol-用户协议 +// @Produce json +// @Param Token header string true "token" +// @Param Id body number false "Id" +// @Param Title body string false "标题" +// @Param Content body string false "协议内容" +// @Param Sort body number false "排序" +// @Success 200 {object} response.Response "成功" +// @Router /api/admin/user_protocol/edit [post] func (hd *UserProtocolHandler) Edit(c *gin.Context) { var editReq UserProtocolEditReq if response.IsFailWithResp(c, util.VerifyUtil.VerifyJSON(c, &editReq)) { @@ -124,13 +124,13 @@ func (hd *UserProtocolHandler) Edit(c *gin.Context) { response.CheckAndRespWithData(c, editReq.Id, UserProtocolService.Edit(editReq)) } -// @Summary 用户协议删除 -// @Tags user_protocol-用户协议 -// @Produce json -// @Param Token header string true "token" -// @Param Id body number false "" -// @Success 200 {object} response.Response "成功" -// @Router /api/admin/user_protocol/del [post] +// @Summary 用户协议删除 +// @Tags user_protocol-用户协议 +// @Produce json +// @Param Token header string true "token" +// @Param Id body number false "Id" +// @Success 200 {object} response.Response "成功" +// @Router /api/admin/user_protocol/del [post] func (hd *UserProtocolHandler) Del(c *gin.Context) { var delReq UserProtocolDelReq if response.IsFailWithResp(c, util.VerifyUtil.VerifyJSON(c, &delReq)) { @@ -139,14 +139,14 @@ func (hd *UserProtocolHandler) Del(c *gin.Context) { response.CheckAndResp(c, UserProtocolService.Del(delReq.Id)) } -// @Summary 用户协议删除-批量 -// @Tags user_protocol-用户协议 +// @Summary 用户协议删除-批量 +// @Tags user_protocol-用户协议 // -// @Produce json -// @Param Token header string true "token" -// @Param Ids body string false "逗号分割的id" -// @Success 200 {object} response.Response "成功" -// @Router /api/admin/user_protocol/delBatch [post] +// @Produce json +// @Param Token header string true "token" +// @Param Ids body string false "逗号分割的id" +// @Success 200 {object} response.Response "成功" +// @Router /api/admin/user_protocol/delBatch [post] func (hd *UserProtocolHandler) DelBatch(c *gin.Context) { var delReq UserProtocolDelBatchReq if response.IsFailWithResp(c, util.VerifyUtil.VerifyJSON(c, &delReq)) { @@ -161,18 +161,18 @@ func (hd *UserProtocolHandler) DelBatch(c *gin.Context) { response.CheckAndResp(c, UserProtocolService.DelBatch(Ids)) } -// @Summary 用户协议导出 -// @Tags user_protocol-用户协议 -// @Produce json -// @Param Token header string true "token" -// @Param Title query string false "标题" -// @Param Content query string false "协议内容" -// @Param Sort query number false "排序" -// @Param CreateTimeStart query string false "创建时间" -// @Param CreateTimeEnd query string false "创建时间" -// @Param UpdateTimeStart query string false "更新时间" -// @Param UpdateTimeEnd query string false "更新时间" -// @Router /api/admin/user_protocol/ExportFile [get] +// @Summary 用户协议导出 +// @Tags user_protocol-用户协议 +// @Produce json +// @Param Token header string true "token" +// @Param Title query string false "标题" +// @Param Content query string false "协议内容" +// @Param Sort query number false "排序" +// @Param CreateTimeStart query string false "创建时间" +// @Param CreateTimeEnd query string false "创建时间" +// @Param UpdateTimeStart query string false "更新时间" +// @Param UpdateTimeEnd query string false "更新时间" +// @Router /api/admin/user_protocol/ExportFile [get] func (hd *UserProtocolHandler) ExportFile(c *gin.Context) { var listReq UserProtocolListReq if response.IsFailWithResp(c, util.VerifyUtil.VerifyQuery(c, &listReq)) { @@ -191,10 +191,10 @@ func (hd *UserProtocolHandler) ExportFile(c *gin.Context) { excel2.DownLoadExcel("用户协议"+time.Now().Format("20060102-150405"), c.Writer, f) } -// @Summary 用户协议导入 -// @Tags user_protocol-用户协议 -// @Produce json -// @Router /api/admin/user_protocol/ImportFile [post] +// @Summary 用户协议导入 +// @Tags user_protocol-用户协议 +// @Produce json +// @Router /api/admin/user_protocol/ImportFile [post] func (hd *UserProtocolHandler) ImportFile(c *gin.Context) { file, _, err := c.Request.FormFile("file") if err != nil { diff --git a/server/docs/docs.go b/server/docs/docs.go index 1618899..de7653a 100644 --- a/server/docs/docs.go +++ b/server/docs/docs.go @@ -1260,62 +1260,110 @@ const docTemplate = `{ }, { "type": "string", - "description": "项目key.", - "name": "projectKey", + "description": "项目key", + "name": "ProjectKey", "in": "query" }, { "type": "string", - "description": "sdk生成的客户端id.", - "name": "clientId", + "description": "sdk生成的客户端id", + "name": "ClientId", "in": "query" }, { "type": "string", - "description": "用户id.", - "name": "userId", + "description": "用户id", + "name": "UserId", "in": "query" }, { "type": "string", - "description": "系统.", - "name": "os", + "description": "系统", + "name": "Os", "in": "query" }, { "type": "string", - "description": "浏览器.", - "name": "browser", + "description": "浏览器", + "name": "Browser", "in": "query" }, { "type": "string", - "description": "城市.", - "name": "city", - "in": "query" - }, - { - "type": "integer", - "description": "屏幕.", - "name": "width", - "in": "query" - }, - { - "type": "integer", - "description": "屏幕高度.", - "name": "height", + "description": "国家", + "name": "Country", "in": "query" }, { "type": "string", - "description": "ua记录.", - "name": "ua", + "description": "省份", + "name": "Province", + "in": "query" + }, + { + "type": "string", + "description": "城市", + "name": "City", + "in": "query" + }, + { + "type": "string", + "description": "电信运营商", + "name": "Operator", + "in": "query" + }, + { + "type": "string", + "description": "ip", + "name": "Ip", + "in": "query" + }, + { + "type": "number", + "description": "屏幕", + "name": "Width", + "in": "query" + }, + { + "type": "number", + "description": "屏幕高度", + "name": "Height", + "in": "query" + }, + { + "type": "string", + "description": "ua记录", + "name": "Ua", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", "in": "query" } ], "responses": {} } }, + "/api/admin/monitor_client/ImportFile": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_client-监控-客户端信息" + ], + "summary": "监控-客户端信息导入", + "responses": {} + } + }, "/api/admin/monitor_client/add": { "post": { "produces": [ @@ -1334,72 +1382,94 @@ const docTemplate = `{ "required": true }, { - "description": "sdk生成的客户端id.", - "name": "clientId", + "description": "项目key", + "name": "ProjectKey", "in": "body", "schema": { "type": "string" } }, { - "description": "用户id.", - "name": "userId", + "description": "sdk生成的客户端id", + "name": "ClientId", "in": "body", "schema": { "type": "string" } }, { - "description": "系统.", - "name": "os", + "description": "用户id", + "name": "UserId", "in": "body", "schema": { "type": "string" } }, { - "description": "浏览器.", - "name": "browser", + "description": "系统", + "name": "Os", "in": "body", "schema": { "type": "string" } }, { - "description": "城市.", - "name": "city", + "description": "浏览器", + "name": "Browser", "in": "body", "schema": { "type": "string" } }, { - "description": "屏幕.", - "name": "width", + "type": "string", + "description": "国家", + "name": "Country", + "in": "query" + }, + { + "type": "string", + "description": "省份", + "name": "Province", + "in": "query" + }, + { + "type": "string", + "description": "城市", + "name": "City", + "in": "query" + }, + { + "type": "string", + "description": "电信运营商", + "name": "Operator", + "in": "query" + }, + { + "type": "string", + "description": "ip", + "name": "Ip", + "in": "query" + }, + { + "description": "屏幕", + "name": "Width", "in": "body", "schema": { - "type": "integer" + "type": "number" } }, { - "description": "屏幕高度.", - "name": "height", + "description": "屏幕高度", + "name": "Height", "in": "body", "schema": { - "type": "integer" + "type": "number" } }, { - "description": "ua记录.", - "name": "ua", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "更新时间.", - "name": "clientTime", + "description": "ua记录", + "name": "Ua", "in": "body", "schema": { "type": "string" @@ -1434,11 +1504,47 @@ const docTemplate = `{ "required": true }, { - "description": "uuid.", - "name": "id", + "description": "uuid", + "name": "Id", "in": "body", "schema": { - "type": "integer" + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_client/delBatch": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_client-监控-客户端信息" + ], + "summary": "监控-客户端信息删除-批量", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "逗号分割的id", + "name": "Ids", + "in": "body", + "schema": { + "type": "string" } } ], @@ -1470,9 +1576,9 @@ const docTemplate = `{ "required": true }, { - "type": "integer", - "description": "uuid.", - "name": "id", + "type": "number", + "description": "uuid", + "name": "Id", "in": "query" } ], @@ -1487,7 +1593,7 @@ const docTemplate = `{ { "type": "object", "properties": { - "data": { + " data": { "$ref": "#/definitions/monitor_client.MonitorClientResp" } } @@ -1498,106 +1604,6 @@ const docTemplate = `{ } } }, - "/api/admin/monitor_client/edit": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_client-监控-客户端信息" - ], - "summary": "监控-客户端信息编辑", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "description": "sdk生成的客户端id.", - "name": "clientId", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "用户id.", - "name": "userId", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "系统.", - "name": "os", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "浏览器.", - "name": "browser", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "城市.", - "name": "city", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "屏幕.", - "name": "width", - "in": "body", - "schema": { - "type": "integer" - } - }, - { - "description": "屏幕高度.", - "name": "height", - "in": "body", - "schema": { - "type": "integer" - } - }, - { - "description": "ua记录.", - "name": "ua", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "更新时间.", - "name": "clientTime", - "in": "body", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, "/api/admin/monitor_client/list": { "get": { "produces": [ @@ -1631,1288 +1637,92 @@ const docTemplate = `{ }, { "type": "string", - "description": "项目key.", - "name": "projectKey", + "description": "项目key", + "name": "ProjectKey", "in": "query" }, { "type": "string", - "description": "sdk生成的客户端id.", - "name": "clientId", + "description": "sdk生成的客户端id", + "name": "ClientId", "in": "query" }, { "type": "string", - "description": "用户id.", - "name": "userId", + "description": "用户id", + "name": "UserId", "in": "query" }, { "type": "string", - "description": "系统.", - "name": "os", + "description": "系统", + "name": "Os", "in": "query" }, { "type": "string", - "description": "浏览器.", - "name": "browser", + "description": "浏览器", + "name": "Browser", "in": "query" }, { "type": "string", - "description": "城市.", - "name": "city", - "in": "query" - }, - { - "type": "integer", - "description": "屏幕.", - "name": "width", - "in": "query" - }, - { - "type": "integer", - "description": "屏幕高度.", - "name": "height", + "description": "国家", + "name": "Country", "in": "query" }, { "type": "string", - "description": "ua记录.", - "name": "ua", - "in": "query" - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "allOf": [ - { - "$ref": "#/definitions/response.PageResp" - }, - { - "type": "object", - "properties": { - "lists": { - "type": "array", - "items": { - "$ref": "#/definitions/monitor_client.MonitorClientResp" - } - } - } - } - ] - } - } - } - ] - } - }, - "400": { - "description": "请求错误", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/admin/monitor_client/listAll": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_client-监控-客户端信息" - ], - "summary": "监控-客户端信息列表-所有", - "parameters": [ - { - "type": "string", - "description": "项目key.", - "name": "projectKey", + "description": "省份", + "name": "Province", "in": "query" }, { "type": "string", - "description": "sdk生成的客户端id.", - "name": "clientId", + "description": "城市", + "name": "City", "in": "query" }, { "type": "string", - "description": "用户id.", - "name": "userId", + "description": "电信运营商", + "name": "Operator", "in": "query" }, { "type": "string", - "description": "系统.", - "name": "os", + "description": "ip", + "name": "Ip", + "in": "query" + }, + { + "type": "number", + "description": "屏幕", + "name": "Width", + "in": "query" + }, + { + "type": "number", + "description": "屏幕高度", + "name": "Height", "in": "query" }, { "type": "string", - "description": "浏览器.", - "name": "browser", + "description": "ua记录", + "name": "Ua", "in": "query" }, { "type": "string", - "description": "城市.", - "name": "city", - "in": "query" - }, - { - "type": "integer", - "description": "屏幕.", - "name": "width", - "in": "query" - }, - { - "type": "integer", - "description": "屏幕高度.", - "name": "height", + "description": "创建时间", + "name": "CreateTimeStart", "in": "query" }, { "type": "string", - "description": "ua记录.", - "name": "ua", - "in": "query" - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/definitions/monitor_client.MonitorClientResp" - } - } - } - } - ] - } - } - } - } - }, - "/api/admin/monitor_project/ExportFile": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_project-错误项目" - ], - "summary": "错误项目导出", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "type": "string", - "description": "项目uuid.", - "name": "projectKey", - "in": "query" - }, - { - "type": "string", - "description": "项目名称.", - "name": "projectName", - "in": "query" - }, - { - "type": "string", - "description": "项目类型go java web node php 等.", - "name": "projectType", - "in": "query" - } - ], - "responses": {} - } - }, - "/api/admin/monitor_project/add": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_project-错误项目" - ], - "summary": "错误项目新增", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "description": "项目uuid.", - "name": "projectKey", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "项目名称.", - "name": "projectName", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "项目类型go java web node php 等.", - "name": "projectType", - "in": "body", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, - "/api/admin/monitor_project/del": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_project-错误项目" - ], - "summary": "错误项目删除", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "description": "项目id.", - "name": "id", - "in": "body", - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, - "/api/admin/monitor_project/detail": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_project-错误项目" - ], - "summary": "错误项目详情", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "type": "integer", - "description": "项目id.", - "name": "id", - "in": "query" - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/monitor_project.MonitorProjectResp" - } - } - } - ] - } - } - } - } - }, - "/api/admin/monitor_project/edit": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_project-错误项目" - ], - "summary": "错误项目编辑", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "description": "项目id.", - "name": "id", - "in": "body", - "schema": { - "type": "integer" - } - }, - { - "description": "项目uuid.", - "name": "projectKey", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "项目名称.", - "name": "projectName", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "项目类型go java web node php 等.", - "name": "projectType", - "in": "body", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, - "/api/admin/monitor_project/list": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_project-错误项目" - ], - "summary": "错误项目列表", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "type": "integer", - "description": "页码", - "name": "PageNo", - "in": "query", - "required": true - }, - { - "type": "integer", - "description": "每页数量", - "name": "PageSize", - "in": "query", - "required": true - }, - { - "type": "string", - "description": "项目uuid.", - "name": "projectKey", - "in": "query" - }, - { - "type": "string", - "description": "项目名称.", - "name": "projectName", - "in": "query" - }, - { - "type": "string", - "description": "项目类型go java web node php 等.", - "name": "projectType", - "in": "query" - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "allOf": [ - { - "$ref": "#/definitions/response.PageResp" - }, - { - "type": "object", - "properties": { - "lists": { - "type": "array", - "items": { - "$ref": "#/definitions/monitor_project.MonitorProjectResp" - } - } - } - } - ] - } - } - } - ] - } - }, - "400": { - "description": "请求错误", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/admin/monitor_web/ExportFile": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_web-错误收集error" - ], - "summary": "错误收集error导出", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "type": "string", - "description": "项目key.", - "name": "projectKey", - "in": "query" - }, - { - "type": "string", - "description": "sdk生成的客户端id.", - "name": "clientId", - "in": "query" - }, - { - "type": "string", - "description": "事件类型.", - "name": "eventType", - "in": "query" - }, - { - "type": "string", - "description": "URL地址.", - "name": "page", - "in": "query" - }, - { - "type": "string", - "description": "错误消息.", - "name": "message", - "in": "query" - }, - { - "type": "string", - "description": "错误堆栈.", - "name": "stack", - "in": "query" - }, - { - "type": "integer", - "description": "客户端时间.", - "name": "clientTime", - "in": "query" - } - ], - "responses": {} - } - }, - "/api/admin/monitor_web/add": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_web-错误收集error" - ], - "summary": "错误收集error新增", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "description": "项目key.", - "name": "projectKey", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "sdk生成的客户端id.", - "name": "clientId", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "事件类型.", - "name": "eventType", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "URL地址.", - "name": "page", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "错误消息.", - "name": "message", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "错误堆栈.", - "name": "stack", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "客户端时间.", - "name": "clientTime", - "in": "body", - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, - "/api/admin/monitor_web/del": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_web-错误收集error" - ], - "summary": "错误收集error删除", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "description": "uuid.", - "name": "id", - "in": "body", - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, - "/api/admin/monitor_web/detail": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_web-错误收集error" - ], - "summary": "错误收集error详情", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "type": "integer", - "description": "uuid.", - "name": "id", - "in": "query" - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/monitor_web.MonitorWebResp" - } - } - } - } - }, - "/api/admin/monitor_web/edit": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_web-错误收集error" - ], - "summary": "错误收集error编辑", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "description": "uuid.", - "name": "id", - "in": "body", - "schema": { - "type": "integer" - } - }, - { - "description": "项目key.", - "name": "projectKey", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "sdk生成的客户端id.", - "name": "clientId", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "事件类型.", - "name": "eventType", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "URL地址.", - "name": "page", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "错误消息.", - "name": "message", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "错误堆栈.", - "name": "stack", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "客户端时间.", - "name": "clientTime", - "in": "body", - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, - "/api/admin/monitor_web/list": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_web-错误收集error" - ], - "summary": "错误收集error列表", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "type": "integer", - "description": "页码", - "name": "PageNo", - "in": "query", - "required": true - }, - { - "type": "integer", - "description": "每页数量", - "name": "PageSize", - "in": "query", - "required": true - }, - { - "type": "string", - "description": "项目key.", - "name": "projectKey", - "in": "query" - }, - { - "type": "string", - "description": "sdk生成的客户端id.", - "name": "clientId", - "in": "query" - }, - { - "type": "string", - "description": "事件类型.", - "name": "eventType", - "in": "query" - }, - { - "type": "string", - "description": "URL地址.", - "name": "page", - "in": "query" - }, - { - "type": "string", - "description": "错误消息.", - "name": "message", - "in": "query" - }, - { - "type": "string", - "description": "错误堆栈.", - "name": "stack", - "in": "query" - }, - { - "type": "integer", - "description": "客户端时间.", - "name": "clientTime", - "in": "query" - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/monitor_web.MonitorWebResp" - } - } - }, - "400": { - "description": "请求错误", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/admin/monitor_web/listAll": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_web-错误收集error" - ], - "summary": "错误收集error列表-所有", - "responses": { - "200": { - "description": "成功", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/monitor_web.MonitorWebResp" - } - } - } - } - } - }, - "/api/admin/system_log_sms/ExportFile": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "system_log_sms-系统短信日志" - ], - "summary": "系统短信日志导出", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "type": "integer", - "description": "场景编号", - "name": "Scene", - "in": "query" - }, - { - "type": "string", - "description": "手机号码", - "name": "Mobile", - "in": "query" - }, - { - "type": "string", - "description": "发送内容", - "name": "Content", - "in": "query" - }, - { - "type": "integer", - "description": "发送状态:[0=发送中, 1=发送成功, 2=发送失败]", - "name": "Status", - "in": "query" - }, - { - "type": "string", - "description": "短信结果", - "name": "Results", - "in": "query" - } - ], - "responses": {} - } - }, - "/api/admin/system_log_sms/ImportFile": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "system_log_sms-系统短信日志" - ], - "summary": "系统短信日志导入", - "responses": {} - } - }, - "/api/admin/system_log_sms/add": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "system_log_sms-系统短信日志" - ], - "summary": "系统短信日志新增", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "type": "integer", - "description": "场景编号", - "name": "Scene", - "in": "formData" - }, - { - "type": "string", - "description": "手机号码", - "name": "Mobile", - "in": "formData" - }, - { - "type": "string", - "description": "发送内容", - "name": "Content", - "in": "formData" - }, - { - "type": "integer", - "description": "发送状态:[0=发送中, 1=发送成功, 2=发送失败]", - "name": "Status", - "in": "formData" - }, - { - "type": "string", - "description": "短信结果", - "name": "Results", - "in": "formData" - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, - "/api/admin/system_log_sms/del": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "system_log_sms-系统短信日志" - ], - "summary": "系统短信日志删除", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "description": "id", - "name": "Id", - "in": "body", - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, - "/api/admin/system_log_sms/detail": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "system_log_sms-系统短信日志" - ], - "summary": "系统短信日志详情", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "type": "integer", - "description": "id", - "name": "Id", - "in": "query" - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - " data": { - "$ref": "#/definitions/system_log_sms.SystemLogSmsResp" - } - } - } - ] - } - } - } - } - }, - "/api/admin/system_log_sms/edit": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "system_log_sms-系统短信日志" - ], - "summary": "系统短信日志编辑", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "description": "id", - "name": "Id", - "in": "body", - "schema": { - "type": "integer" - } - }, - { - "description": "场景编号", - "name": "Scene", - "in": "body", - "schema": { - "type": "integer" - } - }, - { - "description": "手机号码", - "name": "Mobile", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "发送内容", - "name": "Content", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "发送状态:[0=发送中, 1=发送成功, 2=发送失败]", - "name": "Status", - "in": "body", - "schema": { - "type": "integer" - } - }, - { - "description": "短信结果", - "name": "Results", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "发送时间", - "name": "SendTime", - "in": "body", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, - "/api/admin/system_log_sms/list": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "system_log_sms-系统短信日志" - ], - "summary": "系统短信日志列表", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "type": "integer", - "description": "页码", - "name": "PageNo", - "in": "query", - "required": true - }, - { - "type": "integer", - "description": "每页数量", - "name": "PageSize", - "in": "query", - "required": true - }, - { - "type": "integer", - "description": "场景编号", - "name": "Scene", - "in": "query" - }, - { - "type": "string", - "description": "手机号码", - "name": "Mobile", - "in": "query" - }, - { - "type": "string", - "description": "发送内容", - "name": "Content", - "in": "query" - }, - { - "type": "integer", - "description": "发送状态:[0=发送中, 1=发送成功, 2=发送失败]", - "name": "Status", - "in": "query" - }, - { - "type": "string", - "description": "短信结果", - "name": "Results", + "description": "创建时间", + "name": "CreateTimeEnd", "in": "query" } ], @@ -2938,7 +1748,7 @@ const docTemplate = `{ " lists": { "type": "array", "items": { - "$ref": "#/definitions/system_log_sms.SystemLogSmsResp" + "$ref": "#/definitions/monitor_client.MonitorClientResp" } } } @@ -2953,44 +1763,104 @@ const docTemplate = `{ } } }, - "/api/admin/system_log_sms/listAll": { + "/api/admin/monitor_client/listAll": { "get": { "produces": [ "application/json" ], "tags": [ - "system_log_sms-系统短信日志" + "monitor_client-监控-客户端信息" ], - "summary": "系统短信日志列表-所有", + "summary": "监控-客户端信息列表-所有", "parameters": [ { - "type": "integer", - "description": "场景编号", - "name": "Scene", + "type": "string", + "description": "项目key", + "name": "ProjectKey", "in": "query" }, { "type": "string", - "description": "手机号码", - "name": "Mobile", + "description": "sdk生成的客户端id", + "name": "ClientId", "in": "query" }, { "type": "string", - "description": "发送内容", - "name": "Content", - "in": "query" - }, - { - "type": "integer", - "description": "发送状态:[0=发送中, 1=发送成功, 2=发送失败]", - "name": "Status", + "description": "用户id", + "name": "UserId", "in": "query" }, { "type": "string", - "description": "短信结果", - "name": "Results", + "description": "系统", + "name": "Os", + "in": "query" + }, + { + "type": "string", + "description": "浏览器", + "name": "Browser", + "in": "query" + }, + { + "type": "string", + "description": "国家", + "name": "Country", + "in": "query" + }, + { + "type": "string", + "description": "省份", + "name": "Province", + "in": "query" + }, + { + "type": "string", + "description": "城市", + "name": "City", + "in": "query" + }, + { + "type": "string", + "description": "电信运营商", + "name": "Operator", + "in": "query" + }, + { + "type": "string", + "description": "ip", + "name": "Ip", + "in": "query" + }, + { + "type": "number", + "description": "屏幕", + "name": "Width", + "in": "query" + }, + { + "type": "number", + "description": "屏幕高度", + "name": "Height", + "in": "query" + }, + { + "type": "string", + "description": "ua记录", + "name": "Ua", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", "in": "query" } ], @@ -3008,7 +1878,1982 @@ const docTemplate = `{ " data": { "type": "array", "items": { - "$ref": "#/definitions/system_log_sms.SystemLogSmsResp" + "$ref": "#/definitions/monitor_client.MonitorClientResp" + } + } + } + } + ] + } + } + } + } + }, + "/api/admin/monitor_error/ExportFile": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_error-监控-错误列" + ], + "summary": "监控-错误列导出", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "string", + "description": "项目key", + "name": "ProjectKey", + "in": "query" + }, + { + "type": "string", + "description": "事件类型", + "name": "EventType", + "in": "query" + }, + { + "type": "string", + "description": "URL地址", + "name": "Path", + "in": "query" + }, + { + "type": "string", + "description": "错误消息", + "name": "Message", + "in": "query" + }, + { + "type": "string", + "description": "错误堆栈", + "name": "Stack", + "in": "query" + }, + { + "type": "string", + "description": "md5", + "name": "Md5", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + } + ], + "responses": {} + } + }, + "/api/admin/monitor_error/ImportFile": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_error-监控-错误列" + ], + "summary": "监控-错误列导入", + "responses": {} + } + }, + "/api/admin/monitor_error/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_error-监控-错误列" + ], + "summary": "监控-错误列新增", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "项目key", + "name": "ProjectKey", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "事件类型", + "name": "EventType", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "URL地址", + "name": "Path", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "错误消息", + "name": "Message", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "错误堆栈", + "name": "Stack", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "md5", + "name": "Md5", + "in": "body", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_error/del": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_error-监控-错误列" + ], + "summary": "监控-错误列删除", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "错误id", + "name": "Id", + "in": "body", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_error/delBatch": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_error-监控-错误列" + ], + "summary": "监控-错误列删除-批量", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "逗号分割的id", + "name": "Ids", + "in": "body", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_error/detail": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_error-监控-错误列" + ], + "summary": "监控-错误列详情", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "number", + "description": "错误id", + "name": "Id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "$ref": "#/definitions/monitor_error.MonitorErrorResp" + } + } + } + ] + } + } + } + } + }, + "/api/admin/monitor_error/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_error-监控-错误列" + ], + "summary": "监控-错误列列表", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "integer", + "description": "页码", + "name": "PageNo", + "in": "query", + "required": true + }, + { + "type": "integer", + "description": "每页数量", + "name": "PageSize", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "项目key", + "name": "ProjectKey", + "in": "query" + }, + { + "type": "string", + "description": "事件类型", + "name": "EventType", + "in": "query" + }, + { + "type": "string", + "description": "URL地址", + "name": "Path", + "in": "query" + }, + { + "type": "string", + "description": "错误消息", + "name": "Message", + "in": "query" + }, + { + "type": "string", + "description": "错误堆栈", + "name": "Stack", + "in": "query" + }, + { + "type": "string", + "description": "md5", + "name": "Md5", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "allOf": [ + { + "$ref": "#/definitions/response.PageResp" + }, + { + "type": "object", + "properties": { + " lists": { + "type": "array", + "items": { + "$ref": "#/definitions/monitor_error.MonitorErrorResp" + } + } + } + } + ] + } + } + } + ] + } + } + } + } + }, + "/api/admin/monitor_error/listAll": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_error-监控-错误列" + ], + "summary": "监控-错误列列表-所有", + "parameters": [ + { + "type": "string", + "description": "项目key", + "name": "ProjectKey", + "in": "query" + }, + { + "type": "string", + "description": "事件类型", + "name": "EventType", + "in": "query" + }, + { + "type": "string", + "description": "URL地址", + "name": "Path", + "in": "query" + }, + { + "type": "string", + "description": "错误消息", + "name": "Message", + "in": "query" + }, + { + "type": "string", + "description": "错误堆栈", + "name": "Stack", + "in": "query" + }, + { + "type": "string", + "description": "md5", + "name": "Md5", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "type": "array", + "items": { + "$ref": "#/definitions/monitor_error.MonitorErrorResp" + } + } + } + } + ] + } + } + } + } + }, + "/api/admin/monitor_project/ExportFile": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_project-监控项目" + ], + "summary": "监控项目导出", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "string", + "description": "项目uuid", + "name": "ProjectKey", + "in": "query" + }, + { + "type": "string", + "description": "项目名称", + "name": "ProjectName", + "in": "query" + }, + { + "type": "string", + "description": "项目类型go java web node php 等", + "name": "ProjectType", + "in": "query" + }, + { + "type": "number", + "description": "是否启用: 0=否, 1=是", + "name": "Status", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeEnd", + "in": "query" + } + ], + "responses": {} + } + }, + "/api/admin/monitor_project/ImportFile": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_project-监控项目" + ], + "summary": "监控项目导入", + "responses": {} + } + }, + "/api/admin/monitor_project/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_project-监控项目" + ], + "summary": "监控项目新增", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "项目uuid", + "name": "ProjectKey", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "项目名称", + "name": "ProjectName", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "项目类型go java web node php 等", + "name": "ProjectType", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "是否启用: 0=否, 1=是", + "name": "Status", + "in": "body", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_project/del": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_project-监控项目" + ], + "summary": "监控项目删除", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "项目id", + "name": "Id", + "in": "body", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_project/delBatch": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_project-监控项目" + ], + "summary": "监控项目删除-批量", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "逗号分割的id", + "name": "Ids", + "in": "body", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_project/detail": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_project-监控项目" + ], + "summary": "监控项目详情", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "number", + "description": "项目id", + "name": "Id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "$ref": "#/definitions/monitor_project.MonitorProjectResp" + } + } + } + ] + } + } + } + } + }, + "/api/admin/monitor_project/edit": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_project-监控项目" + ], + "summary": "监控项目编辑", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "项目id", + "name": "Id", + "in": "body", + "schema": { + "type": "number" + } + }, + { + "description": "项目uuid", + "name": "ProjectKey", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "项目名称", + "name": "ProjectName", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "项目类型go java web node php 等", + "name": "ProjectType", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "是否启用: 0=否, 1=是", + "name": "Status", + "in": "body", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_project/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_project-监控项目" + ], + "summary": "监控项目列表", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "integer", + "description": "页码", + "name": "PageNo", + "in": "query", + "required": true + }, + { + "type": "integer", + "description": "每页数量", + "name": "PageSize", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "项目uuid", + "name": "ProjectKey", + "in": "query" + }, + { + "type": "string", + "description": "项目名称", + "name": "ProjectName", + "in": "query" + }, + { + "type": "string", + "description": "项目类型go java web node php 等", + "name": "ProjectType", + "in": "query" + }, + { + "type": "number", + "description": "是否启用: 0=否, 1=是", + "name": "Status", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeEnd", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "allOf": [ + { + "$ref": "#/definitions/response.PageResp" + }, + { + "type": "object", + "properties": { + " lists": { + "type": "array", + "items": { + "$ref": "#/definitions/monitor_project.MonitorProjectResp" + } + } + } + } + ] + } + } + } + ] + } + } + } + } + }, + "/api/admin/monitor_project/listAll": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_project-监控项目" + ], + "summary": "监控项目列表-所有", + "parameters": [ + { + "type": "string", + "description": "项目uuid", + "name": "ProjectKey", + "in": "query" + }, + { + "type": "string", + "description": "项目名称", + "name": "ProjectName", + "in": "query" + }, + { + "type": "string", + "description": "项目类型go java web node php 等", + "name": "ProjectType", + "in": "query" + }, + { + "type": "number", + "description": "是否启用: 0=否, 1=是", + "name": "Status", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeEnd", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "type": "array", + "items": { + "$ref": "#/definitions/monitor_project.MonitorProjectResp" + } + } + } + } + ] + } + } + } + } + }, + "/api/admin/monitor_slow/ExportFile": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_slow-监控-错误列" + ], + "summary": "监控-错误列导出", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "string", + "description": "项目key", + "name": "ProjectKey", + "in": "query" + }, + { + "type": "string", + "description": "sdk生成的客户端id", + "name": "ClientId", + "in": "query" + }, + { + "type": "string", + "description": "用户id", + "name": "UserId", + "in": "query" + }, + { + "type": "string", + "description": "URL地址", + "name": "Path", + "in": "query" + }, + { + "type": "number", + "description": "时间", + "name": "Time", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + } + ], + "responses": {} + } + }, + "/api/admin/monitor_slow/ImportFile": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_slow-监控-错误列" + ], + "summary": "监控-错误列导入", + "responses": {} + } + }, + "/api/admin/monitor_slow/add": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_slow-监控-错误列" + ], + "summary": "监控-错误列新增", + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_slow/del": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_slow-监控-错误列" + ], + "summary": "监控-错误列删除", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "错误id", + "name": "Id", + "in": "body", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_slow/delBatch": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_slow-监控-错误列" + ], + "summary": "监控-错误列删除-批量", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "逗号分割的id", + "name": "Ids", + "in": "body", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_slow/detail": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_slow-监控-错误列" + ], + "summary": "监控-错误列详情", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "number", + "description": "错误id", + "name": "Id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "$ref": "#/definitions/monitor_slow.MonitorSlowResp" + } + } + } + ] + } + } + } + } + }, + "/api/admin/monitor_slow/edit": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_slow-监控-错误列" + ], + "summary": "监控-错误列编辑", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "错误id", + "name": "Id", + "in": "body", + "schema": { + "type": "number" + } + }, + { + "description": "项目key", + "name": "ProjectKey", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "sdk生成的客户端id", + "name": "ClientId", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "用户id", + "name": "UserId", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "URL地址", + "name": "Path", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "时间", + "name": "Time", + "in": "body", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_slow/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_slow-监控-错误列" + ], + "summary": "监控-错误列列表", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "integer", + "description": "页码", + "name": "PageNo", + "in": "query", + "required": true + }, + { + "type": "integer", + "description": "每页数量", + "name": "PageSize", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "项目key", + "name": "ProjectKey", + "in": "query" + }, + { + "type": "string", + "description": "sdk生成的客户端id", + "name": "ClientId", + "in": "query" + }, + { + "type": "string", + "description": "用户id", + "name": "UserId", + "in": "query" + }, + { + "type": "string", + "description": "URL地址", + "name": "Path", + "in": "query" + }, + { + "type": "number", + "description": "时间", + "name": "Time", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "allOf": [ + { + "$ref": "#/definitions/response.PageResp" + }, + { + "type": "object", + "properties": { + " lists": { + "type": "array", + "items": { + "$ref": "#/definitions/monitor_slow.MonitorSlowResp" + } + } + } + } + ] + } + } + } + ] + } + } + } + } + }, + "/api/admin/monitor_slow/listAll": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_slow-监控-错误列" + ], + "summary": "监控-错误列列表-所有", + "parameters": [ + { + "type": "string", + "description": "项目key", + "name": "ProjectKey", + "in": "query" + }, + { + "type": "string", + "description": "sdk生成的客户端id", + "name": "ClientId", + "in": "query" + }, + { + "type": "string", + "description": "用户id", + "name": "UserId", + "in": "query" + }, + { + "type": "string", + "description": "URL地址", + "name": "Path", + "in": "query" + }, + { + "type": "number", + "description": "时间", + "name": "Time", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "type": "array", + "items": { + "$ref": "#/definitions/monitor_slow.MonitorSlowResp" + } + } + } + } + ] + } + } + } + } + }, + "/api/admin/user_protocol/ExportFile": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "user_protocol-用户协议" + ], + "summary": "用户协议导出", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "string", + "description": "标题", + "name": "Title", + "in": "query" + }, + { + "type": "string", + "description": "协议内容", + "name": "Content", + "in": "query" + }, + { + "type": "number", + "description": "排序", + "name": "Sort", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeEnd", + "in": "query" + } + ], + "responses": {} + } + }, + "/api/admin/user_protocol/ImportFile": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "user_protocol-用户协议" + ], + "summary": "用户协议导入", + "responses": {} + } + }, + "/api/admin/user_protocol/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "user_protocol-用户协议" + ], + "summary": "用户协议新增", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "标题", + "name": "Title", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "协议内容", + "name": "Content", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "排序", + "name": "Sort", + "in": "body", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/user_protocol/del": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "user_protocol-用户协议" + ], + "summary": "用户协议删除", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "Id", + "name": "Id", + "in": "body", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/user_protocol/delBatch": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "user_protocol-用户协议" + ], + "summary": "用户协议删除-批量", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "逗号分割的id", + "name": "Ids", + "in": "body", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/user_protocol/detail": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "user_protocol-用户协议" + ], + "summary": "用户协议详情", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "number", + "description": "Id", + "name": "Id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "$ref": "#/definitions/user_protocol.UserProtocolResp" + } + } + } + ] + } + } + } + } + }, + "/api/admin/user_protocol/edit": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "user_protocol-用户协议" + ], + "summary": "用户协议编辑", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "Id", + "name": "Id", + "in": "body", + "schema": { + "type": "number" + } + }, + { + "description": "标题", + "name": "Title", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "协议内容", + "name": "Content", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "排序", + "name": "Sort", + "in": "body", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/user_protocol/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "user_protocol-用户协议" + ], + "summary": "用户协议列表", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "integer", + "description": "页码", + "name": "PageNo", + "in": "query", + "required": true + }, + { + "type": "integer", + "description": "每页数量", + "name": "PageSize", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "标题", + "name": "Title", + "in": "query" + }, + { + "type": "string", + "description": "协议内容", + "name": "Content", + "in": "query" + }, + { + "type": "number", + "description": "排序", + "name": "Sort", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeEnd", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "allOf": [ + { + "$ref": "#/definitions/response.PageResp" + }, + { + "type": "object", + "properties": { + " lists": { + "type": "array", + "items": { + "$ref": "#/definitions/user_protocol.UserProtocolResp" + } + } + } + } + ] + } + } + } + ] + } + } + } + } + }, + "/api/admin/user_protocol/listAll": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "user_protocol-用户协议" + ], + "summary": "用户协议列表-所有", + "parameters": [ + { + "type": "string", + "description": "标题", + "name": "Title", + "in": "query" + }, + { + "type": "string", + "description": "协议内容", + "name": "Content", + "in": "query" + }, + { + "type": "number", + "description": "排序", + "name": "Sort", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeEnd", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "type": "array", + "items": { + "$ref": "#/definitions/user_protocol.UserProtocolResp" } } } @@ -3113,6 +3958,17 @@ const docTemplate = `{ } }, "definitions": { + "core.NullFloat": { + "type": "object", + "properties": { + "float": { + "type": "number" + }, + "valid": { + "type": "boolean" + } + } + }, "core.NullInt": { "type": "object", "properties": { @@ -3127,6 +3983,9 @@ const docTemplate = `{ "core.NullTime": { "type": "object", "properties": { + "format": { + "type": "string" + }, "time": { "type": "string" }, @@ -3148,7 +4007,11 @@ const docTemplate = `{ }, "createTime": { "description": "创建时间", - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/core.NullTime" + } + ] }, "flowFormData": { "description": "表单配置", @@ -3191,7 +4054,11 @@ const docTemplate = `{ }, "updateTime": { "description": "更新时间", - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/core.NullTime" + } + ] } } }, @@ -3220,7 +4087,11 @@ const docTemplate = `{ }, "createTime": { "description": "创建时间", - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/core.NullTime" + } + ] }, "formValue": { "description": "表单值", @@ -3256,7 +4127,11 @@ const docTemplate = `{ }, "updateTime": { "description": "更新时间", - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/core.NullTime" + } + ] } } }, @@ -3307,22 +4182,38 @@ const docTemplate = `{ "description": "sdk生成的客户端id", "type": "string" }, - "clientTime": { - "description": "更新时间", + "country": { + "description": "国家", "type": "string" }, "createTime": { "description": "创建时间", - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/core.NullTime" + } + ] }, "height": { "description": "屏幕高度", - "type": "integer" + "allOf": [ + { + "$ref": "#/definitions/core.NullInt" + } + ] }, "id": { "description": "uuid", "type": "integer" }, + "ip": { + "description": "ip", + "type": "string" + }, + "operator": { + "description": "电信运营商", + "type": "string" + }, "os": { "description": "系统", "type": "string" @@ -3331,6 +4222,10 @@ const docTemplate = `{ "description": "项目key", "type": "string" }, + "province": { + "description": "省份", + "type": "string" + }, "ua": { "description": "ua记录", "type": "string" @@ -3341,7 +4236,52 @@ const docTemplate = `{ }, "width": { "description": "屏幕", + "allOf": [ + { + "$ref": "#/definitions/core.NullInt" + } + ] + } + } + }, + "monitor_error.MonitorErrorResp": { + "type": "object", + "properties": { + "createTime": { + "description": "创建时间", + "allOf": [ + { + "$ref": "#/definitions/core.NullTime" + } + ] + }, + "eventType": { + "description": "事件类型", + "type": "string" + }, + "id": { + "description": "错误id", "type": "integer" + }, + "md5": { + "description": "md5", + "type": "string" + }, + "message": { + "description": "错误消息", + "type": "string" + }, + "path": { + "description": "URL地址", + "type": "string" + }, + "projectKey": { + "description": "项目key", + "type": "string" + }, + "stack": { + "description": "错误堆栈", + "type": "string" } } }, @@ -3350,7 +4290,11 @@ const docTemplate = `{ "properties": { "createTime": { "description": "创建时间", - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/core.NullTime" + } + ] }, "id": { "description": "项目id", @@ -3368,40 +4312,44 @@ const docTemplate = `{ "description": "项目类型go java web node php 等", "type": "string" }, + "status": { + "description": "是否启用: 0=否, 1=是", + "allOf": [ + { + "$ref": "#/definitions/core.NullInt" + } + ] + }, "updateTime": { "description": "更新时间", - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/core.NullTime" + } + ] } } }, - "monitor_web.MonitorWebResp": { + "monitor_slow.MonitorSlowResp": { "type": "object", "properties": { "clientId": { "description": "sdk生成的客户端id", "type": "string" }, - "clientTime": { - "description": "客户端时间", - "type": "string" - }, "createTime": { "description": "创建时间", - "type": "string" - }, - "eventType": { - "description": "事件类型", - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/core.NullTime" + } + ] }, "id": { - "description": "uuid", + "description": "错误id", "type": "integer" }, - "message": { - "description": "错误消息", - "type": "string" - }, - "page": { + "path": { "description": "URL地址", "type": "string" }, @@ -3409,8 +4357,16 @@ const docTemplate = `{ "description": "项目key", "type": "string" }, - "stack": { - "description": "错误堆栈", + "time": { + "description": "时间", + "allOf": [ + { + "$ref": "#/definitions/core.NullFloat" + } + ] + }, + "userId": { + "description": "用户id", "type": "string" } } @@ -3447,11 +4403,11 @@ const docTemplate = `{ } } }, - "system_log_sms.SystemLogSmsResp": { + "user_protocol.UserProtocolResp": { "type": "object", "properties": { "content": { - "description": "发送内容", + "description": "协议内容", "type": "string" }, "createTime": { @@ -3463,41 +4419,20 @@ const docTemplate = `{ ] }, "id": { - "description": "id", "type": "integer" }, - "mobile": { - "description": "手机号码", + "sort": { + "description": "排序", + "allOf": [ + { + "$ref": "#/definitions/core.NullFloat" + } + ] + }, + "title": { + "description": "标题", "type": "string" }, - "results": { - "description": "短信结果", - "type": "string" - }, - "scene": { - "description": "场景编号", - "allOf": [ - { - "$ref": "#/definitions/core.NullInt" - } - ] - }, - "sendTime": { - "description": "发送时间", - "allOf": [ - { - "$ref": "#/definitions/core.NullTime" - } - ] - }, - "status": { - "description": "发送状态:[0=发送中, 1=发送成功, 2=发送失败]", - "allOf": [ - { - "$ref": "#/definitions/core.NullInt" - } - ] - }, "updateTime": { "description": "更新时间", "allOf": [ diff --git a/server/docs/swagger.json b/server/docs/swagger.json index 5599ece..6557787 100644 --- a/server/docs/swagger.json +++ b/server/docs/swagger.json @@ -1254,62 +1254,110 @@ }, { "type": "string", - "description": "项目key.", - "name": "projectKey", + "description": "项目key", + "name": "ProjectKey", "in": "query" }, { "type": "string", - "description": "sdk生成的客户端id.", - "name": "clientId", + "description": "sdk生成的客户端id", + "name": "ClientId", "in": "query" }, { "type": "string", - "description": "用户id.", - "name": "userId", + "description": "用户id", + "name": "UserId", "in": "query" }, { "type": "string", - "description": "系统.", - "name": "os", + "description": "系统", + "name": "Os", "in": "query" }, { "type": "string", - "description": "浏览器.", - "name": "browser", + "description": "浏览器", + "name": "Browser", "in": "query" }, { "type": "string", - "description": "城市.", - "name": "city", - "in": "query" - }, - { - "type": "integer", - "description": "屏幕.", - "name": "width", - "in": "query" - }, - { - "type": "integer", - "description": "屏幕高度.", - "name": "height", + "description": "国家", + "name": "Country", "in": "query" }, { "type": "string", - "description": "ua记录.", - "name": "ua", + "description": "省份", + "name": "Province", + "in": "query" + }, + { + "type": "string", + "description": "城市", + "name": "City", + "in": "query" + }, + { + "type": "string", + "description": "电信运营商", + "name": "Operator", + "in": "query" + }, + { + "type": "string", + "description": "ip", + "name": "Ip", + "in": "query" + }, + { + "type": "number", + "description": "屏幕", + "name": "Width", + "in": "query" + }, + { + "type": "number", + "description": "屏幕高度", + "name": "Height", + "in": "query" + }, + { + "type": "string", + "description": "ua记录", + "name": "Ua", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", "in": "query" } ], "responses": {} } }, + "/api/admin/monitor_client/ImportFile": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_client-监控-客户端信息" + ], + "summary": "监控-客户端信息导入", + "responses": {} + } + }, "/api/admin/monitor_client/add": { "post": { "produces": [ @@ -1328,72 +1376,94 @@ "required": true }, { - "description": "sdk生成的客户端id.", - "name": "clientId", + "description": "项目key", + "name": "ProjectKey", "in": "body", "schema": { "type": "string" } }, { - "description": "用户id.", - "name": "userId", + "description": "sdk生成的客户端id", + "name": "ClientId", "in": "body", "schema": { "type": "string" } }, { - "description": "系统.", - "name": "os", + "description": "用户id", + "name": "UserId", "in": "body", "schema": { "type": "string" } }, { - "description": "浏览器.", - "name": "browser", + "description": "系统", + "name": "Os", "in": "body", "schema": { "type": "string" } }, { - "description": "城市.", - "name": "city", + "description": "浏览器", + "name": "Browser", "in": "body", "schema": { "type": "string" } }, { - "description": "屏幕.", - "name": "width", + "type": "string", + "description": "国家", + "name": "Country", + "in": "query" + }, + { + "type": "string", + "description": "省份", + "name": "Province", + "in": "query" + }, + { + "type": "string", + "description": "城市", + "name": "City", + "in": "query" + }, + { + "type": "string", + "description": "电信运营商", + "name": "Operator", + "in": "query" + }, + { + "type": "string", + "description": "ip", + "name": "Ip", + "in": "query" + }, + { + "description": "屏幕", + "name": "Width", "in": "body", "schema": { - "type": "integer" + "type": "number" } }, { - "description": "屏幕高度.", - "name": "height", + "description": "屏幕高度", + "name": "Height", "in": "body", "schema": { - "type": "integer" + "type": "number" } }, { - "description": "ua记录.", - "name": "ua", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "更新时间.", - "name": "clientTime", + "description": "ua记录", + "name": "Ua", "in": "body", "schema": { "type": "string" @@ -1428,11 +1498,47 @@ "required": true }, { - "description": "uuid.", - "name": "id", + "description": "uuid", + "name": "Id", "in": "body", "schema": { - "type": "integer" + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_client/delBatch": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_client-监控-客户端信息" + ], + "summary": "监控-客户端信息删除-批量", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "逗号分割的id", + "name": "Ids", + "in": "body", + "schema": { + "type": "string" } } ], @@ -1464,9 +1570,9 @@ "required": true }, { - "type": "integer", - "description": "uuid.", - "name": "id", + "type": "number", + "description": "uuid", + "name": "Id", "in": "query" } ], @@ -1481,7 +1587,7 @@ { "type": "object", "properties": { - "data": { + " data": { "$ref": "#/definitions/monitor_client.MonitorClientResp" } } @@ -1492,106 +1598,6 @@ } } }, - "/api/admin/monitor_client/edit": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_client-监控-客户端信息" - ], - "summary": "监控-客户端信息编辑", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "description": "sdk生成的客户端id.", - "name": "clientId", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "用户id.", - "name": "userId", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "系统.", - "name": "os", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "浏览器.", - "name": "browser", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "城市.", - "name": "city", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "屏幕.", - "name": "width", - "in": "body", - "schema": { - "type": "integer" - } - }, - { - "description": "屏幕高度.", - "name": "height", - "in": "body", - "schema": { - "type": "integer" - } - }, - { - "description": "ua记录.", - "name": "ua", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "更新时间.", - "name": "clientTime", - "in": "body", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, "/api/admin/monitor_client/list": { "get": { "produces": [ @@ -1625,1288 +1631,92 @@ }, { "type": "string", - "description": "项目key.", - "name": "projectKey", + "description": "项目key", + "name": "ProjectKey", "in": "query" }, { "type": "string", - "description": "sdk生成的客户端id.", - "name": "clientId", + "description": "sdk生成的客户端id", + "name": "ClientId", "in": "query" }, { "type": "string", - "description": "用户id.", - "name": "userId", + "description": "用户id", + "name": "UserId", "in": "query" }, { "type": "string", - "description": "系统.", - "name": "os", + "description": "系统", + "name": "Os", "in": "query" }, { "type": "string", - "description": "浏览器.", - "name": "browser", + "description": "浏览器", + "name": "Browser", "in": "query" }, { "type": "string", - "description": "城市.", - "name": "city", - "in": "query" - }, - { - "type": "integer", - "description": "屏幕.", - "name": "width", - "in": "query" - }, - { - "type": "integer", - "description": "屏幕高度.", - "name": "height", + "description": "国家", + "name": "Country", "in": "query" }, { "type": "string", - "description": "ua记录.", - "name": "ua", - "in": "query" - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "allOf": [ - { - "$ref": "#/definitions/response.PageResp" - }, - { - "type": "object", - "properties": { - "lists": { - "type": "array", - "items": { - "$ref": "#/definitions/monitor_client.MonitorClientResp" - } - } - } - } - ] - } - } - } - ] - } - }, - "400": { - "description": "请求错误", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/admin/monitor_client/listAll": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_client-监控-客户端信息" - ], - "summary": "监控-客户端信息列表-所有", - "parameters": [ - { - "type": "string", - "description": "项目key.", - "name": "projectKey", + "description": "省份", + "name": "Province", "in": "query" }, { "type": "string", - "description": "sdk生成的客户端id.", - "name": "clientId", + "description": "城市", + "name": "City", "in": "query" }, { "type": "string", - "description": "用户id.", - "name": "userId", + "description": "电信运营商", + "name": "Operator", "in": "query" }, { "type": "string", - "description": "系统.", - "name": "os", + "description": "ip", + "name": "Ip", + "in": "query" + }, + { + "type": "number", + "description": "屏幕", + "name": "Width", + "in": "query" + }, + { + "type": "number", + "description": "屏幕高度", + "name": "Height", "in": "query" }, { "type": "string", - "description": "浏览器.", - "name": "browser", + "description": "ua记录", + "name": "Ua", "in": "query" }, { "type": "string", - "description": "城市.", - "name": "city", - "in": "query" - }, - { - "type": "integer", - "description": "屏幕.", - "name": "width", - "in": "query" - }, - { - "type": "integer", - "description": "屏幕高度.", - "name": "height", + "description": "创建时间", + "name": "CreateTimeStart", "in": "query" }, { "type": "string", - "description": "ua记录.", - "name": "ua", - "in": "query" - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/definitions/monitor_client.MonitorClientResp" - } - } - } - } - ] - } - } - } - } - }, - "/api/admin/monitor_project/ExportFile": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_project-错误项目" - ], - "summary": "错误项目导出", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "type": "string", - "description": "项目uuid.", - "name": "projectKey", - "in": "query" - }, - { - "type": "string", - "description": "项目名称.", - "name": "projectName", - "in": "query" - }, - { - "type": "string", - "description": "项目类型go java web node php 等.", - "name": "projectType", - "in": "query" - } - ], - "responses": {} - } - }, - "/api/admin/monitor_project/add": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_project-错误项目" - ], - "summary": "错误项目新增", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "description": "项目uuid.", - "name": "projectKey", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "项目名称.", - "name": "projectName", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "项目类型go java web node php 等.", - "name": "projectType", - "in": "body", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, - "/api/admin/monitor_project/del": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_project-错误项目" - ], - "summary": "错误项目删除", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "description": "项目id.", - "name": "id", - "in": "body", - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, - "/api/admin/monitor_project/detail": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_project-错误项目" - ], - "summary": "错误项目详情", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "type": "integer", - "description": "项目id.", - "name": "id", - "in": "query" - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/monitor_project.MonitorProjectResp" - } - } - } - ] - } - } - } - } - }, - "/api/admin/monitor_project/edit": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_project-错误项目" - ], - "summary": "错误项目编辑", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "description": "项目id.", - "name": "id", - "in": "body", - "schema": { - "type": "integer" - } - }, - { - "description": "项目uuid.", - "name": "projectKey", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "项目名称.", - "name": "projectName", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "项目类型go java web node php 等.", - "name": "projectType", - "in": "body", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, - "/api/admin/monitor_project/list": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_project-错误项目" - ], - "summary": "错误项目列表", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "type": "integer", - "description": "页码", - "name": "PageNo", - "in": "query", - "required": true - }, - { - "type": "integer", - "description": "每页数量", - "name": "PageSize", - "in": "query", - "required": true - }, - { - "type": "string", - "description": "项目uuid.", - "name": "projectKey", - "in": "query" - }, - { - "type": "string", - "description": "项目名称.", - "name": "projectName", - "in": "query" - }, - { - "type": "string", - "description": "项目类型go java web node php 等.", - "name": "projectType", - "in": "query" - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "allOf": [ - { - "$ref": "#/definitions/response.PageResp" - }, - { - "type": "object", - "properties": { - "lists": { - "type": "array", - "items": { - "$ref": "#/definitions/monitor_project.MonitorProjectResp" - } - } - } - } - ] - } - } - } - ] - } - }, - "400": { - "description": "请求错误", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/admin/monitor_web/ExportFile": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_web-错误收集error" - ], - "summary": "错误收集error导出", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "type": "string", - "description": "项目key.", - "name": "projectKey", - "in": "query" - }, - { - "type": "string", - "description": "sdk生成的客户端id.", - "name": "clientId", - "in": "query" - }, - { - "type": "string", - "description": "事件类型.", - "name": "eventType", - "in": "query" - }, - { - "type": "string", - "description": "URL地址.", - "name": "page", - "in": "query" - }, - { - "type": "string", - "description": "错误消息.", - "name": "message", - "in": "query" - }, - { - "type": "string", - "description": "错误堆栈.", - "name": "stack", - "in": "query" - }, - { - "type": "integer", - "description": "客户端时间.", - "name": "clientTime", - "in": "query" - } - ], - "responses": {} - } - }, - "/api/admin/monitor_web/add": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_web-错误收集error" - ], - "summary": "错误收集error新增", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "description": "项目key.", - "name": "projectKey", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "sdk生成的客户端id.", - "name": "clientId", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "事件类型.", - "name": "eventType", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "URL地址.", - "name": "page", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "错误消息.", - "name": "message", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "错误堆栈.", - "name": "stack", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "客户端时间.", - "name": "clientTime", - "in": "body", - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, - "/api/admin/monitor_web/del": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_web-错误收集error" - ], - "summary": "错误收集error删除", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "description": "uuid.", - "name": "id", - "in": "body", - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, - "/api/admin/monitor_web/detail": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_web-错误收集error" - ], - "summary": "错误收集error详情", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "type": "integer", - "description": "uuid.", - "name": "id", - "in": "query" - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/monitor_web.MonitorWebResp" - } - } - } - } - }, - "/api/admin/monitor_web/edit": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_web-错误收集error" - ], - "summary": "错误收集error编辑", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "description": "uuid.", - "name": "id", - "in": "body", - "schema": { - "type": "integer" - } - }, - { - "description": "项目key.", - "name": "projectKey", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "sdk生成的客户端id.", - "name": "clientId", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "事件类型.", - "name": "eventType", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "URL地址.", - "name": "page", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "错误消息.", - "name": "message", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "错误堆栈.", - "name": "stack", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "客户端时间.", - "name": "clientTime", - "in": "body", - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, - "/api/admin/monitor_web/list": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_web-错误收集error" - ], - "summary": "错误收集error列表", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "type": "integer", - "description": "页码", - "name": "PageNo", - "in": "query", - "required": true - }, - { - "type": "integer", - "description": "每页数量", - "name": "PageSize", - "in": "query", - "required": true - }, - { - "type": "string", - "description": "项目key.", - "name": "projectKey", - "in": "query" - }, - { - "type": "string", - "description": "sdk生成的客户端id.", - "name": "clientId", - "in": "query" - }, - { - "type": "string", - "description": "事件类型.", - "name": "eventType", - "in": "query" - }, - { - "type": "string", - "description": "URL地址.", - "name": "page", - "in": "query" - }, - { - "type": "string", - "description": "错误消息.", - "name": "message", - "in": "query" - }, - { - "type": "string", - "description": "错误堆栈.", - "name": "stack", - "in": "query" - }, - { - "type": "integer", - "description": "客户端时间.", - "name": "clientTime", - "in": "query" - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/monitor_web.MonitorWebResp" - } - } - }, - "400": { - "description": "请求错误", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/admin/monitor_web/listAll": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "monitor_web-错误收集error" - ], - "summary": "错误收集error列表-所有", - "responses": { - "200": { - "description": "成功", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/monitor_web.MonitorWebResp" - } - } - } - } - } - }, - "/api/admin/system_log_sms/ExportFile": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "system_log_sms-系统短信日志" - ], - "summary": "系统短信日志导出", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "type": "integer", - "description": "场景编号", - "name": "Scene", - "in": "query" - }, - { - "type": "string", - "description": "手机号码", - "name": "Mobile", - "in": "query" - }, - { - "type": "string", - "description": "发送内容", - "name": "Content", - "in": "query" - }, - { - "type": "integer", - "description": "发送状态:[0=发送中, 1=发送成功, 2=发送失败]", - "name": "Status", - "in": "query" - }, - { - "type": "string", - "description": "短信结果", - "name": "Results", - "in": "query" - } - ], - "responses": {} - } - }, - "/api/admin/system_log_sms/ImportFile": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "system_log_sms-系统短信日志" - ], - "summary": "系统短信日志导入", - "responses": {} - } - }, - "/api/admin/system_log_sms/add": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "system_log_sms-系统短信日志" - ], - "summary": "系统短信日志新增", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "type": "integer", - "description": "场景编号", - "name": "Scene", - "in": "formData" - }, - { - "type": "string", - "description": "手机号码", - "name": "Mobile", - "in": "formData" - }, - { - "type": "string", - "description": "发送内容", - "name": "Content", - "in": "formData" - }, - { - "type": "integer", - "description": "发送状态:[0=发送中, 1=发送成功, 2=发送失败]", - "name": "Status", - "in": "formData" - }, - { - "type": "string", - "description": "短信结果", - "name": "Results", - "in": "formData" - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, - "/api/admin/system_log_sms/del": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "system_log_sms-系统短信日志" - ], - "summary": "系统短信日志删除", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "description": "id", - "name": "Id", - "in": "body", - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, - "/api/admin/system_log_sms/detail": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "system_log_sms-系统短信日志" - ], - "summary": "系统短信日志详情", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "type": "integer", - "description": "id", - "name": "Id", - "in": "query" - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - " data": { - "$ref": "#/definitions/system_log_sms.SystemLogSmsResp" - } - } - } - ] - } - } - } - } - }, - "/api/admin/system_log_sms/edit": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "system_log_sms-系统短信日志" - ], - "summary": "系统短信日志编辑", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "description": "id", - "name": "Id", - "in": "body", - "schema": { - "type": "integer" - } - }, - { - "description": "场景编号", - "name": "Scene", - "in": "body", - "schema": { - "type": "integer" - } - }, - { - "description": "手机号码", - "name": "Mobile", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "发送内容", - "name": "Content", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "发送状态:[0=发送中, 1=发送成功, 2=发送失败]", - "name": "Status", - "in": "body", - "schema": { - "type": "integer" - } - }, - { - "description": "短信结果", - "name": "Results", - "in": "body", - "schema": { - "type": "string" - } - }, - { - "description": "发送时间", - "name": "SendTime", - "in": "body", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, - "/api/admin/system_log_sms/list": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "system_log_sms-系统短信日志" - ], - "summary": "系统短信日志列表", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Token", - "in": "header", - "required": true - }, - { - "type": "integer", - "description": "页码", - "name": "PageNo", - "in": "query", - "required": true - }, - { - "type": "integer", - "description": "每页数量", - "name": "PageSize", - "in": "query", - "required": true - }, - { - "type": "integer", - "description": "场景编号", - "name": "Scene", - "in": "query" - }, - { - "type": "string", - "description": "手机号码", - "name": "Mobile", - "in": "query" - }, - { - "type": "string", - "description": "发送内容", - "name": "Content", - "in": "query" - }, - { - "type": "integer", - "description": "发送状态:[0=发送中, 1=发送成功, 2=发送失败]", - "name": "Status", - "in": "query" - }, - { - "type": "string", - "description": "短信结果", - "name": "Results", + "description": "创建时间", + "name": "CreateTimeEnd", "in": "query" } ], @@ -2932,7 +1742,7 @@ " lists": { "type": "array", "items": { - "$ref": "#/definitions/system_log_sms.SystemLogSmsResp" + "$ref": "#/definitions/monitor_client.MonitorClientResp" } } } @@ -2947,44 +1757,104 @@ } } }, - "/api/admin/system_log_sms/listAll": { + "/api/admin/monitor_client/listAll": { "get": { "produces": [ "application/json" ], "tags": [ - "system_log_sms-系统短信日志" + "monitor_client-监控-客户端信息" ], - "summary": "系统短信日志列表-所有", + "summary": "监控-客户端信息列表-所有", "parameters": [ { - "type": "integer", - "description": "场景编号", - "name": "Scene", + "type": "string", + "description": "项目key", + "name": "ProjectKey", "in": "query" }, { "type": "string", - "description": "手机号码", - "name": "Mobile", + "description": "sdk生成的客户端id", + "name": "ClientId", "in": "query" }, { "type": "string", - "description": "发送内容", - "name": "Content", - "in": "query" - }, - { - "type": "integer", - "description": "发送状态:[0=发送中, 1=发送成功, 2=发送失败]", - "name": "Status", + "description": "用户id", + "name": "UserId", "in": "query" }, { "type": "string", - "description": "短信结果", - "name": "Results", + "description": "系统", + "name": "Os", + "in": "query" + }, + { + "type": "string", + "description": "浏览器", + "name": "Browser", + "in": "query" + }, + { + "type": "string", + "description": "国家", + "name": "Country", + "in": "query" + }, + { + "type": "string", + "description": "省份", + "name": "Province", + "in": "query" + }, + { + "type": "string", + "description": "城市", + "name": "City", + "in": "query" + }, + { + "type": "string", + "description": "电信运营商", + "name": "Operator", + "in": "query" + }, + { + "type": "string", + "description": "ip", + "name": "Ip", + "in": "query" + }, + { + "type": "number", + "description": "屏幕", + "name": "Width", + "in": "query" + }, + { + "type": "number", + "description": "屏幕高度", + "name": "Height", + "in": "query" + }, + { + "type": "string", + "description": "ua记录", + "name": "Ua", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", "in": "query" } ], @@ -3002,7 +1872,1982 @@ " data": { "type": "array", "items": { - "$ref": "#/definitions/system_log_sms.SystemLogSmsResp" + "$ref": "#/definitions/monitor_client.MonitorClientResp" + } + } + } + } + ] + } + } + } + } + }, + "/api/admin/monitor_error/ExportFile": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_error-监控-错误列" + ], + "summary": "监控-错误列导出", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "string", + "description": "项目key", + "name": "ProjectKey", + "in": "query" + }, + { + "type": "string", + "description": "事件类型", + "name": "EventType", + "in": "query" + }, + { + "type": "string", + "description": "URL地址", + "name": "Path", + "in": "query" + }, + { + "type": "string", + "description": "错误消息", + "name": "Message", + "in": "query" + }, + { + "type": "string", + "description": "错误堆栈", + "name": "Stack", + "in": "query" + }, + { + "type": "string", + "description": "md5", + "name": "Md5", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + } + ], + "responses": {} + } + }, + "/api/admin/monitor_error/ImportFile": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_error-监控-错误列" + ], + "summary": "监控-错误列导入", + "responses": {} + } + }, + "/api/admin/monitor_error/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_error-监控-错误列" + ], + "summary": "监控-错误列新增", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "项目key", + "name": "ProjectKey", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "事件类型", + "name": "EventType", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "URL地址", + "name": "Path", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "错误消息", + "name": "Message", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "错误堆栈", + "name": "Stack", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "md5", + "name": "Md5", + "in": "body", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_error/del": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_error-监控-错误列" + ], + "summary": "监控-错误列删除", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "错误id", + "name": "Id", + "in": "body", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_error/delBatch": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_error-监控-错误列" + ], + "summary": "监控-错误列删除-批量", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "逗号分割的id", + "name": "Ids", + "in": "body", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_error/detail": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_error-监控-错误列" + ], + "summary": "监控-错误列详情", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "number", + "description": "错误id", + "name": "Id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "$ref": "#/definitions/monitor_error.MonitorErrorResp" + } + } + } + ] + } + } + } + } + }, + "/api/admin/monitor_error/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_error-监控-错误列" + ], + "summary": "监控-错误列列表", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "integer", + "description": "页码", + "name": "PageNo", + "in": "query", + "required": true + }, + { + "type": "integer", + "description": "每页数量", + "name": "PageSize", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "项目key", + "name": "ProjectKey", + "in": "query" + }, + { + "type": "string", + "description": "事件类型", + "name": "EventType", + "in": "query" + }, + { + "type": "string", + "description": "URL地址", + "name": "Path", + "in": "query" + }, + { + "type": "string", + "description": "错误消息", + "name": "Message", + "in": "query" + }, + { + "type": "string", + "description": "错误堆栈", + "name": "Stack", + "in": "query" + }, + { + "type": "string", + "description": "md5", + "name": "Md5", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "allOf": [ + { + "$ref": "#/definitions/response.PageResp" + }, + { + "type": "object", + "properties": { + " lists": { + "type": "array", + "items": { + "$ref": "#/definitions/monitor_error.MonitorErrorResp" + } + } + } + } + ] + } + } + } + ] + } + } + } + } + }, + "/api/admin/monitor_error/listAll": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_error-监控-错误列" + ], + "summary": "监控-错误列列表-所有", + "parameters": [ + { + "type": "string", + "description": "项目key", + "name": "ProjectKey", + "in": "query" + }, + { + "type": "string", + "description": "事件类型", + "name": "EventType", + "in": "query" + }, + { + "type": "string", + "description": "URL地址", + "name": "Path", + "in": "query" + }, + { + "type": "string", + "description": "错误消息", + "name": "Message", + "in": "query" + }, + { + "type": "string", + "description": "错误堆栈", + "name": "Stack", + "in": "query" + }, + { + "type": "string", + "description": "md5", + "name": "Md5", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "type": "array", + "items": { + "$ref": "#/definitions/monitor_error.MonitorErrorResp" + } + } + } + } + ] + } + } + } + } + }, + "/api/admin/monitor_project/ExportFile": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_project-监控项目" + ], + "summary": "监控项目导出", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "string", + "description": "项目uuid", + "name": "ProjectKey", + "in": "query" + }, + { + "type": "string", + "description": "项目名称", + "name": "ProjectName", + "in": "query" + }, + { + "type": "string", + "description": "项目类型go java web node php 等", + "name": "ProjectType", + "in": "query" + }, + { + "type": "number", + "description": "是否启用: 0=否, 1=是", + "name": "Status", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeEnd", + "in": "query" + } + ], + "responses": {} + } + }, + "/api/admin/monitor_project/ImportFile": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_project-监控项目" + ], + "summary": "监控项目导入", + "responses": {} + } + }, + "/api/admin/monitor_project/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_project-监控项目" + ], + "summary": "监控项目新增", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "项目uuid", + "name": "ProjectKey", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "项目名称", + "name": "ProjectName", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "项目类型go java web node php 等", + "name": "ProjectType", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "是否启用: 0=否, 1=是", + "name": "Status", + "in": "body", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_project/del": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_project-监控项目" + ], + "summary": "监控项目删除", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "项目id", + "name": "Id", + "in": "body", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_project/delBatch": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_project-监控项目" + ], + "summary": "监控项目删除-批量", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "逗号分割的id", + "name": "Ids", + "in": "body", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_project/detail": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_project-监控项目" + ], + "summary": "监控项目详情", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "number", + "description": "项目id", + "name": "Id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "$ref": "#/definitions/monitor_project.MonitorProjectResp" + } + } + } + ] + } + } + } + } + }, + "/api/admin/monitor_project/edit": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_project-监控项目" + ], + "summary": "监控项目编辑", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "项目id", + "name": "Id", + "in": "body", + "schema": { + "type": "number" + } + }, + { + "description": "项目uuid", + "name": "ProjectKey", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "项目名称", + "name": "ProjectName", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "项目类型go java web node php 等", + "name": "ProjectType", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "是否启用: 0=否, 1=是", + "name": "Status", + "in": "body", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_project/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_project-监控项目" + ], + "summary": "监控项目列表", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "integer", + "description": "页码", + "name": "PageNo", + "in": "query", + "required": true + }, + { + "type": "integer", + "description": "每页数量", + "name": "PageSize", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "项目uuid", + "name": "ProjectKey", + "in": "query" + }, + { + "type": "string", + "description": "项目名称", + "name": "ProjectName", + "in": "query" + }, + { + "type": "string", + "description": "项目类型go java web node php 等", + "name": "ProjectType", + "in": "query" + }, + { + "type": "number", + "description": "是否启用: 0=否, 1=是", + "name": "Status", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeEnd", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "allOf": [ + { + "$ref": "#/definitions/response.PageResp" + }, + { + "type": "object", + "properties": { + " lists": { + "type": "array", + "items": { + "$ref": "#/definitions/monitor_project.MonitorProjectResp" + } + } + } + } + ] + } + } + } + ] + } + } + } + } + }, + "/api/admin/monitor_project/listAll": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_project-监控项目" + ], + "summary": "监控项目列表-所有", + "parameters": [ + { + "type": "string", + "description": "项目uuid", + "name": "ProjectKey", + "in": "query" + }, + { + "type": "string", + "description": "项目名称", + "name": "ProjectName", + "in": "query" + }, + { + "type": "string", + "description": "项目类型go java web node php 等", + "name": "ProjectType", + "in": "query" + }, + { + "type": "number", + "description": "是否启用: 0=否, 1=是", + "name": "Status", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeEnd", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "type": "array", + "items": { + "$ref": "#/definitions/monitor_project.MonitorProjectResp" + } + } + } + } + ] + } + } + } + } + }, + "/api/admin/monitor_slow/ExportFile": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_slow-监控-错误列" + ], + "summary": "监控-错误列导出", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "string", + "description": "项目key", + "name": "ProjectKey", + "in": "query" + }, + { + "type": "string", + "description": "sdk生成的客户端id", + "name": "ClientId", + "in": "query" + }, + { + "type": "string", + "description": "用户id", + "name": "UserId", + "in": "query" + }, + { + "type": "string", + "description": "URL地址", + "name": "Path", + "in": "query" + }, + { + "type": "number", + "description": "时间", + "name": "Time", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + } + ], + "responses": {} + } + }, + "/api/admin/monitor_slow/ImportFile": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_slow-监控-错误列" + ], + "summary": "监控-错误列导入", + "responses": {} + } + }, + "/api/admin/monitor_slow/add": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_slow-监控-错误列" + ], + "summary": "监控-错误列新增", + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_slow/del": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_slow-监控-错误列" + ], + "summary": "监控-错误列删除", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "错误id", + "name": "Id", + "in": "body", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_slow/delBatch": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_slow-监控-错误列" + ], + "summary": "监控-错误列删除-批量", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "逗号分割的id", + "name": "Ids", + "in": "body", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_slow/detail": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_slow-监控-错误列" + ], + "summary": "监控-错误列详情", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "number", + "description": "错误id", + "name": "Id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "$ref": "#/definitions/monitor_slow.MonitorSlowResp" + } + } + } + ] + } + } + } + } + }, + "/api/admin/monitor_slow/edit": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_slow-监控-错误列" + ], + "summary": "监控-错误列编辑", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "错误id", + "name": "Id", + "in": "body", + "schema": { + "type": "number" + } + }, + { + "description": "项目key", + "name": "ProjectKey", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "sdk生成的客户端id", + "name": "ClientId", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "用户id", + "name": "UserId", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "URL地址", + "name": "Path", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "时间", + "name": "Time", + "in": "body", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/monitor_slow/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_slow-监控-错误列" + ], + "summary": "监控-错误列列表", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "integer", + "description": "页码", + "name": "PageNo", + "in": "query", + "required": true + }, + { + "type": "integer", + "description": "每页数量", + "name": "PageSize", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "项目key", + "name": "ProjectKey", + "in": "query" + }, + { + "type": "string", + "description": "sdk生成的客户端id", + "name": "ClientId", + "in": "query" + }, + { + "type": "string", + "description": "用户id", + "name": "UserId", + "in": "query" + }, + { + "type": "string", + "description": "URL地址", + "name": "Path", + "in": "query" + }, + { + "type": "number", + "description": "时间", + "name": "Time", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "allOf": [ + { + "$ref": "#/definitions/response.PageResp" + }, + { + "type": "object", + "properties": { + " lists": { + "type": "array", + "items": { + "$ref": "#/definitions/monitor_slow.MonitorSlowResp" + } + } + } + } + ] + } + } + } + ] + } + } + } + } + }, + "/api/admin/monitor_slow/listAll": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "monitor_slow-监控-错误列" + ], + "summary": "监控-错误列列表-所有", + "parameters": [ + { + "type": "string", + "description": "项目key", + "name": "ProjectKey", + "in": "query" + }, + { + "type": "string", + "description": "sdk生成的客户端id", + "name": "ClientId", + "in": "query" + }, + { + "type": "string", + "description": "用户id", + "name": "UserId", + "in": "query" + }, + { + "type": "string", + "description": "URL地址", + "name": "Path", + "in": "query" + }, + { + "type": "number", + "description": "时间", + "name": "Time", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "type": "array", + "items": { + "$ref": "#/definitions/monitor_slow.MonitorSlowResp" + } + } + } + } + ] + } + } + } + } + }, + "/api/admin/user_protocol/ExportFile": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "user_protocol-用户协议" + ], + "summary": "用户协议导出", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "string", + "description": "标题", + "name": "Title", + "in": "query" + }, + { + "type": "string", + "description": "协议内容", + "name": "Content", + "in": "query" + }, + { + "type": "number", + "description": "排序", + "name": "Sort", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeEnd", + "in": "query" + } + ], + "responses": {} + } + }, + "/api/admin/user_protocol/ImportFile": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "user_protocol-用户协议" + ], + "summary": "用户协议导入", + "responses": {} + } + }, + "/api/admin/user_protocol/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "user_protocol-用户协议" + ], + "summary": "用户协议新增", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "标题", + "name": "Title", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "协议内容", + "name": "Content", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "排序", + "name": "Sort", + "in": "body", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/user_protocol/del": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "user_protocol-用户协议" + ], + "summary": "用户协议删除", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "Id", + "name": "Id", + "in": "body", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/user_protocol/delBatch": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "user_protocol-用户协议" + ], + "summary": "用户协议删除-批量", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "逗号分割的id", + "name": "Ids", + "in": "body", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/user_protocol/detail": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "user_protocol-用户协议" + ], + "summary": "用户协议详情", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "number", + "description": "Id", + "name": "Id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "$ref": "#/definitions/user_protocol.UserProtocolResp" + } + } + } + ] + } + } + } + } + }, + "/api/admin/user_protocol/edit": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "user_protocol-用户协议" + ], + "summary": "用户协议编辑", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "description": "Id", + "name": "Id", + "in": "body", + "schema": { + "type": "number" + } + }, + { + "description": "标题", + "name": "Title", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "协议内容", + "name": "Content", + "in": "body", + "schema": { + "type": "string" + } + }, + { + "description": "排序", + "name": "Sort", + "in": "body", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/api/admin/user_protocol/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "user_protocol-用户协议" + ], + "summary": "用户协议列表", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Token", + "in": "header", + "required": true + }, + { + "type": "integer", + "description": "页码", + "name": "PageNo", + "in": "query", + "required": true + }, + { + "type": "integer", + "description": "每页数量", + "name": "PageSize", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "标题", + "name": "Title", + "in": "query" + }, + { + "type": "string", + "description": "协议内容", + "name": "Content", + "in": "query" + }, + { + "type": "number", + "description": "排序", + "name": "Sort", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeEnd", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "allOf": [ + { + "$ref": "#/definitions/response.PageResp" + }, + { + "type": "object", + "properties": { + " lists": { + "type": "array", + "items": { + "$ref": "#/definitions/user_protocol.UserProtocolResp" + } + } + } + } + ] + } + } + } + ] + } + } + } + } + }, + "/api/admin/user_protocol/listAll": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "user_protocol-用户协议" + ], + "summary": "用户协议列表-所有", + "parameters": [ + { + "type": "string", + "description": "标题", + "name": "Title", + "in": "query" + }, + { + "type": "string", + "description": "协议内容", + "name": "Content", + "in": "query" + }, + { + "type": "number", + "description": "排序", + "name": "Sort", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "CreateTimeEnd", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeStart", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "UpdateTimeEnd", + "in": "query" + } + ], + "responses": { + "200": { + "description": "成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + " data": { + "type": "array", + "items": { + "$ref": "#/definitions/user_protocol.UserProtocolResp" } } } @@ -3107,6 +3952,17 @@ } }, "definitions": { + "core.NullFloat": { + "type": "object", + "properties": { + "float": { + "type": "number" + }, + "valid": { + "type": "boolean" + } + } + }, "core.NullInt": { "type": "object", "properties": { @@ -3121,6 +3977,9 @@ "core.NullTime": { "type": "object", "properties": { + "format": { + "type": "string" + }, "time": { "type": "string" }, @@ -3142,7 +4001,11 @@ }, "createTime": { "description": "创建时间", - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/core.NullTime" + } + ] }, "flowFormData": { "description": "表单配置", @@ -3185,7 +4048,11 @@ }, "updateTime": { "description": "更新时间", - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/core.NullTime" + } + ] } } }, @@ -3214,7 +4081,11 @@ }, "createTime": { "description": "创建时间", - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/core.NullTime" + } + ] }, "formValue": { "description": "表单值", @@ -3250,7 +4121,11 @@ }, "updateTime": { "description": "更新时间", - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/core.NullTime" + } + ] } } }, @@ -3301,22 +4176,38 @@ "description": "sdk生成的客户端id", "type": "string" }, - "clientTime": { - "description": "更新时间", + "country": { + "description": "国家", "type": "string" }, "createTime": { "description": "创建时间", - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/core.NullTime" + } + ] }, "height": { "description": "屏幕高度", - "type": "integer" + "allOf": [ + { + "$ref": "#/definitions/core.NullInt" + } + ] }, "id": { "description": "uuid", "type": "integer" }, + "ip": { + "description": "ip", + "type": "string" + }, + "operator": { + "description": "电信运营商", + "type": "string" + }, "os": { "description": "系统", "type": "string" @@ -3325,6 +4216,10 @@ "description": "项目key", "type": "string" }, + "province": { + "description": "省份", + "type": "string" + }, "ua": { "description": "ua记录", "type": "string" @@ -3335,7 +4230,52 @@ }, "width": { "description": "屏幕", + "allOf": [ + { + "$ref": "#/definitions/core.NullInt" + } + ] + } + } + }, + "monitor_error.MonitorErrorResp": { + "type": "object", + "properties": { + "createTime": { + "description": "创建时间", + "allOf": [ + { + "$ref": "#/definitions/core.NullTime" + } + ] + }, + "eventType": { + "description": "事件类型", + "type": "string" + }, + "id": { + "description": "错误id", "type": "integer" + }, + "md5": { + "description": "md5", + "type": "string" + }, + "message": { + "description": "错误消息", + "type": "string" + }, + "path": { + "description": "URL地址", + "type": "string" + }, + "projectKey": { + "description": "项目key", + "type": "string" + }, + "stack": { + "description": "错误堆栈", + "type": "string" } } }, @@ -3344,7 +4284,11 @@ "properties": { "createTime": { "description": "创建时间", - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/core.NullTime" + } + ] }, "id": { "description": "项目id", @@ -3362,40 +4306,44 @@ "description": "项目类型go java web node php 等", "type": "string" }, + "status": { + "description": "是否启用: 0=否, 1=是", + "allOf": [ + { + "$ref": "#/definitions/core.NullInt" + } + ] + }, "updateTime": { "description": "更新时间", - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/core.NullTime" + } + ] } } }, - "monitor_web.MonitorWebResp": { + "monitor_slow.MonitorSlowResp": { "type": "object", "properties": { "clientId": { "description": "sdk生成的客户端id", "type": "string" }, - "clientTime": { - "description": "客户端时间", - "type": "string" - }, "createTime": { "description": "创建时间", - "type": "string" - }, - "eventType": { - "description": "事件类型", - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/core.NullTime" + } + ] }, "id": { - "description": "uuid", + "description": "错误id", "type": "integer" }, - "message": { - "description": "错误消息", - "type": "string" - }, - "page": { + "path": { "description": "URL地址", "type": "string" }, @@ -3403,8 +4351,16 @@ "description": "项目key", "type": "string" }, - "stack": { - "description": "错误堆栈", + "time": { + "description": "时间", + "allOf": [ + { + "$ref": "#/definitions/core.NullFloat" + } + ] + }, + "userId": { + "description": "用户id", "type": "string" } } @@ -3441,11 +4397,11 @@ } } }, - "system_log_sms.SystemLogSmsResp": { + "user_protocol.UserProtocolResp": { "type": "object", "properties": { "content": { - "description": "发送内容", + "description": "协议内容", "type": "string" }, "createTime": { @@ -3457,41 +4413,20 @@ ] }, "id": { - "description": "id", "type": "integer" }, - "mobile": { - "description": "手机号码", + "sort": { + "description": "排序", + "allOf": [ + { + "$ref": "#/definitions/core.NullFloat" + } + ] + }, + "title": { + "description": "标题", "type": "string" }, - "results": { - "description": "短信结果", - "type": "string" - }, - "scene": { - "description": "场景编号", - "allOf": [ - { - "$ref": "#/definitions/core.NullInt" - } - ] - }, - "sendTime": { - "description": "发送时间", - "allOf": [ - { - "$ref": "#/definitions/core.NullTime" - } - ] - }, - "status": { - "description": "发送状态:[0=发送中, 1=发送成功, 2=发送失败]", - "allOf": [ - { - "$ref": "#/definitions/core.NullInt" - } - ] - }, "updateTime": { "description": "更新时间", "allOf": [ diff --git a/server/docs/swagger.yaml b/server/docs/swagger.yaml index ce79ab8..48e75fc 100644 --- a/server/docs/swagger.yaml +++ b/server/docs/swagger.yaml @@ -1,5 +1,12 @@ basePath: / definitions: + core.NullFloat: + properties: + float: + type: number + valid: + type: boolean + type: object core.NullInt: properties: int: @@ -9,6 +16,8 @@ definitions: type: object core.NullTime: properties: + format: + type: string time: type: string valid: @@ -23,8 +32,9 @@ definitions: description: 申请人昵称 type: string createTime: + allOf: + - $ref: '#/definitions/core.NullTime' description: 创建时间 - type: string flowFormData: description: 表单配置 type: string @@ -55,8 +65,9 @@ definitions: description: 模板 type: integer updateTime: + allOf: + - $ref: '#/definitions/core.NullTime' description: 更新时间 - type: string type: object flow_history.FlowHistoryResp: properties: @@ -76,8 +87,9 @@ definitions: description: 审批用户昵称 type: string createTime: + allOf: + - $ref: '#/definitions/core.NullTime' description: 创建时间 - type: string formValue: description: 表单值 type: string @@ -103,8 +115,9 @@ definitions: description: 模板id type: integer updateTime: + allOf: + - $ref: '#/definitions/core.NullTime' description: 更新时间 - type: string type: object flow_template.FlowTemplateResp: properties: @@ -140,24 +153,35 @@ definitions: clientId: description: sdk生成的客户端id type: string - clientTime: - description: 更新时间 + country: + description: 国家 type: string createTime: + allOf: + - $ref: '#/definitions/core.NullTime' description: 创建时间 - type: string height: + allOf: + - $ref: '#/definitions/core.NullInt' description: 屏幕高度 - type: integer id: description: uuid type: integer + ip: + description: ip + type: string + operator: + description: 电信运营商 + type: string os: description: 系统 type: string projectKey: description: 项目key type: string + province: + description: 省份 + type: string ua: description: ua记录 type: string @@ -165,14 +189,44 @@ definitions: description: 用户id type: string width: + allOf: + - $ref: '#/definitions/core.NullInt' description: 屏幕 + type: object + monitor_error.MonitorErrorResp: + properties: + createTime: + allOf: + - $ref: '#/definitions/core.NullTime' + description: 创建时间 + eventType: + description: 事件类型 + type: string + id: + description: 错误id type: integer + md5: + description: md5 + type: string + message: + description: 错误消息 + type: string + path: + description: URL地址 + type: string + projectKey: + description: 项目key + type: string + stack: + description: 错误堆栈 + type: string type: object monitor_project.MonitorProjectResp: properties: createTime: + allOf: + - $ref: '#/definitions/core.NullTime' description: 创建时间 - type: string id: description: 项目id type: integer @@ -185,38 +239,39 @@ definitions: projectType: description: 项目类型go java web node php 等 type: string + status: + allOf: + - $ref: '#/definitions/core.NullInt' + description: '是否启用: 0=否, 1=是' updateTime: + allOf: + - $ref: '#/definitions/core.NullTime' description: 更新时间 - type: string type: object - monitor_web.MonitorWebResp: + monitor_slow.MonitorSlowResp: properties: clientId: description: sdk生成的客户端id type: string - clientTime: - description: 客户端时间 - type: string createTime: + allOf: + - $ref: '#/definitions/core.NullTime' description: 创建时间 - type: string - eventType: - description: 事件类型 - type: string id: - description: uuid + description: 错误id type: integer - message: - description: 错误消息 - type: string - page: + path: description: URL地址 type: string projectKey: description: 项目key type: string - stack: - description: 错误堆栈 + time: + allOf: + - $ref: '#/definitions/core.NullFloat' + description: 时间 + userId: + description: 用户id type: string type: object response.PageResp: @@ -241,36 +296,24 @@ definitions: message: type: string type: object - system_log_sms.SystemLogSmsResp: + user_protocol.UserProtocolResp: properties: content: - description: 发送内容 + description: 协议内容 type: string createTime: allOf: - $ref: '#/definitions/core.NullTime' description: 创建时间 id: - description: id type: integer - mobile: - description: 手机号码 + sort: + allOf: + - $ref: '#/definitions/core.NullFloat' + description: 排序 + title: + description: 标题 type: string - results: - description: 短信结果 - type: string - scene: - allOf: - - $ref: '#/definitions/core.NullInt' - description: 场景编号 - sendTime: - allOf: - - $ref: '#/definitions/core.NullTime' - description: 发送时间 - status: - allOf: - - $ref: '#/definitions/core.NullInt' - description: 发送状态:[0=发送中, 1=发送成功, 2=发送失败] updateTime: allOf: - $ref: '#/definitions/core.NullTime' @@ -1058,41 +1101,65 @@ paths: name: Token required: true type: string - - description: 项目key. + - description: 项目key in: query - name: projectKey + name: ProjectKey type: string - - description: sdk生成的客户端id. + - description: sdk生成的客户端id in: query - name: clientId + name: ClientId type: string - - description: 用户id. + - description: 用户id in: query - name: userId + name: UserId type: string - - description: 系统. + - description: 系统 in: query - name: os + name: Os type: string - - description: 浏览器. + - description: 浏览器 in: query - name: browser + name: Browser type: string - - description: 城市. + - description: 国家 in: query - name: city + name: Country type: string - - description: 屏幕. + - description: 省份 in: query - name: width - type: integer - - description: 屏幕高度. + name: Province + type: string + - description: 城市 in: query - name: height - type: integer - - description: ua记录. + name: City + type: string + - description: 电信运营商 in: query - name: ua + name: Operator + type: string + - description: ip + in: query + name: Ip + type: string + - description: 屏幕 + in: query + name: Width + type: number + - description: 屏幕高度 + in: query + name: Height + type: number + - description: ua记录 + in: query + name: Ua + type: string + - description: 创建时间 + in: query + name: CreateTimeStart + type: string + - description: 创建时间 + in: query + name: CreateTimeEnd type: string produces: - application/json @@ -1100,6 +1167,14 @@ paths: summary: 监控-客户端信息导出 tags: - monitor_client-监控-客户端信息 + /api/admin/monitor_client/ImportFile: + post: + produces: + - application/json + responses: {} + summary: 监控-客户端信息导入 + tags: + - monitor_client-监控-客户端信息 /api/admin/monitor_client/add: post: parameters: @@ -1108,49 +1183,64 @@ paths: name: Token required: true type: string - - description: sdk生成的客户端id. + - description: 项目key in: body - name: clientId + name: ProjectKey schema: type: string - - description: 用户id. + - description: sdk生成的客户端id in: body - name: userId + name: ClientId schema: type: string - - description: 系统. + - description: 用户id in: body - name: os + name: UserId schema: type: string - - description: 浏览器. + - description: 系统 in: body - name: browser + name: Os schema: type: string - - description: 城市. + - description: 浏览器 in: body - name: city + name: Browser schema: type: string - - description: 屏幕. + - description: 国家 + in: query + name: Country + type: string + - description: 省份 + in: query + name: Province + type: string + - description: 城市 + in: query + name: City + type: string + - description: 电信运营商 + in: query + name: Operator + type: string + - description: ip + in: query + name: Ip + type: string + - description: 屏幕 in: body - name: width + name: Width schema: - type: integer - - description: 屏幕高度. + type: number + - description: 屏幕高度 in: body - name: height + name: Height schema: - type: integer - - description: ua记录. + type: number + - description: ua记录 in: body - name: ua - schema: - type: string - - description: 更新时间. - in: body - name: clientTime + name: Ua schema: type: string produces: @@ -1171,11 +1261,11 @@ paths: name: Token required: true type: string - - description: uuid. + - description: uuid in: body - name: id + name: Id schema: - type: integer + type: number produces: - application/json responses: @@ -1186,34 +1276,7 @@ paths: summary: 监控-客户端信息删除 tags: - monitor_client-监控-客户端信息 - /api/admin/monitor_client/detail: - get: - parameters: - - description: token - in: header - name: Token - required: true - type: string - - description: uuid. - in: query - name: id - type: integer - produces: - - application/json - responses: - "200": - description: 成功 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/monitor_client.MonitorClientResp' - type: object - summary: 监控-客户端信息详情 - tags: - - monitor_client-监控-客户端信息 - /api/admin/monitor_client/edit: + /api/admin/monitor_client/delBatch: post: parameters: - description: token @@ -1221,49 +1284,9 @@ paths: name: Token required: true type: string - - description: sdk生成的客户端id. + - description: 逗号分割的id in: body - name: clientId - schema: - type: string - - description: 用户id. - in: body - name: userId - schema: - type: string - - description: 系统. - in: body - name: os - schema: - type: string - - description: 浏览器. - in: body - name: browser - schema: - type: string - - description: 城市. - in: body - name: city - schema: - type: string - - description: 屏幕. - in: body - name: width - schema: - type: integer - - description: 屏幕高度. - in: body - name: height - schema: - type: integer - - description: ua记录. - in: body - name: ua - schema: - type: string - - description: 更新时间. - in: body - name: clientTime + name: Ids schema: type: string produces: @@ -1273,7 +1296,34 @@ paths: description: 成功 schema: $ref: '#/definitions/response.Response' - summary: 监控-客户端信息编辑 + summary: 监控-客户端信息删除-批量 + tags: + - monitor_client-监控-客户端信息 + /api/admin/monitor_client/detail: + get: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: uuid + in: query + name: Id + type: number + produces: + - application/json + responses: + "200": + description: 成功 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + ' data': + $ref: '#/definitions/monitor_client.MonitorClientResp' + type: object + summary: 监控-客户端信息详情 tags: - monitor_client-监控-客户端信息 /api/admin/monitor_client/list: @@ -1294,41 +1344,65 @@ paths: name: PageSize required: true type: integer - - description: 项目key. + - description: 项目key in: query - name: projectKey + name: ProjectKey type: string - - description: sdk生成的客户端id. + - description: sdk生成的客户端id in: query - name: clientId + name: ClientId type: string - - description: 用户id. + - description: 用户id in: query - name: userId + name: UserId type: string - - description: 系统. + - description: 系统 in: query - name: os + name: Os type: string - - description: 浏览器. + - description: 浏览器 in: query - name: browser + name: Browser type: string - - description: 城市. + - description: 国家 in: query - name: city + name: Country type: string - - description: 屏幕. + - description: 省份 in: query - name: width - type: integer - - description: 屏幕高度. + name: Province + type: string + - description: 城市 in: query - name: height - type: integer - - description: ua记录. + name: City + type: string + - description: 电信运营商 in: query - name: ua + name: Operator + type: string + - description: ip + in: query + name: Ip + type: string + - description: 屏幕 + in: query + name: Width + type: number + - description: 屏幕高度 + in: query + name: Height + type: number + - description: ua记录 + in: query + name: Ua + type: string + - description: 创建时间 + in: query + name: CreateTimeStart + type: string + - description: 创建时间 + in: query + name: CreateTimeEnd type: string produces: - application/json @@ -1339,61 +1413,81 @@ paths: allOf: - $ref: '#/definitions/response.Response' - properties: - data: + ' data': allOf: - $ref: '#/definitions/response.PageResp' - properties: - lists: + ' lists': items: $ref: '#/definitions/monitor_client.MonitorClientResp' type: array type: object type: object - "400": - description: 请求错误 - schema: - type: string summary: 监控-客户端信息列表 tags: - monitor_client-监控-客户端信息 /api/admin/monitor_client/listAll: get: parameters: - - description: 项目key. + - description: 项目key in: query - name: projectKey + name: ProjectKey type: string - - description: sdk生成的客户端id. + - description: sdk生成的客户端id in: query - name: clientId + name: ClientId type: string - - description: 用户id. + - description: 用户id in: query - name: userId + name: UserId type: string - - description: 系统. + - description: 系统 in: query - name: os + name: Os type: string - - description: 浏览器. + - description: 浏览器 in: query - name: browser + name: Browser type: string - - description: 城市. + - description: 国家 in: query - name: city + name: Country type: string - - description: 屏幕. + - description: 省份 in: query - name: width - type: integer - - description: 屏幕高度. + name: Province + type: string + - description: 城市 in: query - name: height - type: integer - - description: ua记录. + name: City + type: string + - description: 电信运营商 in: query - name: ua + name: Operator + type: string + - description: ip + in: query + name: Ip + type: string + - description: 屏幕 + in: query + name: Width + type: number + - description: 屏幕高度 + in: query + name: Height + type: number + - description: ua记录 + in: query + name: Ua + type: string + - description: 创建时间 + in: query + name: CreateTimeStart + type: string + - description: 创建时间 + in: query + name: CreateTimeEnd type: string produces: - application/json @@ -1404,7 +1498,7 @@ paths: allOf: - $ref: '#/definitions/response.Response' - properties: - data: + ' data': items: $ref: '#/definitions/monitor_client.MonitorClientResp' type: array @@ -1412,6 +1506,305 @@ paths: summary: 监控-客户端信息列表-所有 tags: - monitor_client-监控-客户端信息 + /api/admin/monitor_error/ExportFile: + get: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: 项目key + in: query + name: ProjectKey + type: string + - description: 事件类型 + in: query + name: EventType + type: string + - description: URL地址 + in: query + name: Path + type: string + - description: 错误消息 + in: query + name: Message + type: string + - description: 错误堆栈 + in: query + name: Stack + type: string + - description: md5 + in: query + name: Md5 + type: string + - description: 创建时间 + in: query + name: CreateTimeStart + type: string + - description: 创建时间 + in: query + name: CreateTimeEnd + type: string + produces: + - application/json + responses: {} + summary: 监控-错误列导出 + tags: + - monitor_error-监控-错误列 + /api/admin/monitor_error/ImportFile: + post: + produces: + - application/json + responses: {} + summary: 监控-错误列导入 + tags: + - monitor_error-监控-错误列 + /api/admin/monitor_error/add: + post: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: 项目key + in: body + name: ProjectKey + schema: + type: string + - description: 事件类型 + in: body + name: EventType + schema: + type: string + - description: URL地址 + in: body + name: Path + schema: + type: string + - description: 错误消息 + in: body + name: Message + schema: + type: string + - description: 错误堆栈 + in: body + name: Stack + schema: + type: string + - description: md5 + in: body + name: Md5 + schema: + type: string + produces: + - application/json + responses: + "200": + description: 成功 + schema: + $ref: '#/definitions/response.Response' + summary: 监控-错误列新增 + tags: + - monitor_error-监控-错误列 + /api/admin/monitor_error/del: + post: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: 错误id + in: body + name: Id + schema: + type: number + produces: + - application/json + responses: + "200": + description: 成功 + schema: + $ref: '#/definitions/response.Response' + summary: 监控-错误列删除 + tags: + - monitor_error-监控-错误列 + /api/admin/monitor_error/delBatch: + post: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: 逗号分割的id + in: body + name: Ids + schema: + type: string + produces: + - application/json + responses: + "200": + description: 成功 + schema: + $ref: '#/definitions/response.Response' + summary: 监控-错误列删除-批量 + tags: + - monitor_error-监控-错误列 + /api/admin/monitor_error/detail: + get: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: 错误id + in: query + name: Id + type: number + produces: + - application/json + responses: + "200": + description: 成功 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + ' data': + $ref: '#/definitions/monitor_error.MonitorErrorResp' + type: object + summary: 监控-错误列详情 + tags: + - monitor_error-监控-错误列 + /api/admin/monitor_error/list: + get: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: 页码 + in: query + name: PageNo + required: true + type: integer + - description: 每页数量 + in: query + name: PageSize + required: true + type: integer + - description: 项目key + in: query + name: ProjectKey + type: string + - description: 事件类型 + in: query + name: EventType + type: string + - description: URL地址 + in: query + name: Path + type: string + - description: 错误消息 + in: query + name: Message + type: string + - description: 错误堆栈 + in: query + name: Stack + type: string + - description: md5 + in: query + name: Md5 + type: string + - description: 创建时间 + in: query + name: CreateTimeStart + type: string + - description: 创建时间 + in: query + name: CreateTimeEnd + type: string + produces: + - application/json + responses: + "200": + description: 成功 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + ' data': + allOf: + - $ref: '#/definitions/response.PageResp' + - properties: + ' lists': + items: + $ref: '#/definitions/monitor_error.MonitorErrorResp' + type: array + type: object + type: object + summary: 监控-错误列列表 + tags: + - monitor_error-监控-错误列 + /api/admin/monitor_error/listAll: + get: + parameters: + - description: 项目key + in: query + name: ProjectKey + type: string + - description: 事件类型 + in: query + name: EventType + type: string + - description: URL地址 + in: query + name: Path + type: string + - description: 错误消息 + in: query + name: Message + type: string + - description: 错误堆栈 + in: query + name: Stack + type: string + - description: md5 + in: query + name: Md5 + type: string + - description: 创建时间 + in: query + name: CreateTimeStart + type: string + - description: 创建时间 + in: query + name: CreateTimeEnd + type: string + produces: + - application/json + responses: + "200": + description: 成功 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + ' data': + items: + $ref: '#/definitions/monitor_error.MonitorErrorResp' + type: array + type: object + summary: 监控-错误列列表-所有 + tags: + - monitor_error-监控-错误列 /api/admin/monitor_project/ExportFile: get: parameters: @@ -1420,24 +1813,52 @@ paths: name: Token required: true type: string - - description: 项目uuid. + - description: 项目uuid in: query - name: projectKey + name: ProjectKey type: string - - description: 项目名称. + - description: 项目名称 in: query - name: projectName + name: ProjectName type: string - - description: 项目类型go java web node php 等. + - description: 项目类型go java web node php 等 in: query - name: projectType + name: ProjectType + type: string + - description: '是否启用: 0=否, 1=是' + in: query + name: Status + type: number + - description: 创建时间 + in: query + name: CreateTimeStart + type: string + - description: 创建时间 + in: query + name: CreateTimeEnd + type: string + - description: 更新时间 + in: query + name: UpdateTimeStart + type: string + - description: 更新时间 + in: query + name: UpdateTimeEnd type: string produces: - application/json responses: {} - summary: 错误项目导出 + summary: 监控项目导出 tags: - - monitor_project-错误项目 + - monitor_project-监控项目 + /api/admin/monitor_project/ImportFile: + post: + produces: + - application/json + responses: {} + summary: 监控项目导入 + tags: + - monitor_project-监控项目 /api/admin/monitor_project/add: post: parameters: @@ -1446,21 +1867,26 @@ paths: name: Token required: true type: string - - description: 项目uuid. + - description: 项目uuid in: body - name: projectKey + name: ProjectKey schema: type: string - - description: 项目名称. + - description: 项目名称 in: body - name: projectName + name: ProjectName schema: type: string - - description: 项目类型go java web node php 等. + - description: 项目类型go java web node php 等 in: body - name: projectType + name: ProjectType schema: type: string + - description: '是否启用: 0=否, 1=是' + in: body + name: Status + schema: + type: number produces: - application/json responses: @@ -1468,9 +1894,9 @@ paths: description: 成功 schema: $ref: '#/definitions/response.Response' - summary: 错误项目新增 + summary: 监控项目新增 tags: - - monitor_project-错误项目 + - monitor_project-监控项目 /api/admin/monitor_project/del: post: parameters: @@ -1479,11 +1905,11 @@ paths: name: Token required: true type: string - - description: 项目id. + - description: 项目id in: body - name: id + name: Id schema: - type: integer + type: number produces: - application/json responses: @@ -1491,9 +1917,32 @@ paths: description: 成功 schema: $ref: '#/definitions/response.Response' - summary: 错误项目删除 + summary: 监控项目删除 tags: - - monitor_project-错误项目 + - monitor_project-监控项目 + /api/admin/monitor_project/delBatch: + post: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: 逗号分割的id + in: body + name: Ids + schema: + type: string + produces: + - application/json + responses: + "200": + description: 成功 + schema: + $ref: '#/definitions/response.Response' + summary: 监控项目删除-批量 + tags: + - monitor_project-监控项目 /api/admin/monitor_project/detail: get: parameters: @@ -1502,10 +1951,10 @@ paths: name: Token required: true type: string - - description: 项目id. + - description: 项目id in: query - name: id - type: integer + name: Id + type: number produces: - application/json responses: @@ -1515,12 +1964,12 @@ paths: allOf: - $ref: '#/definitions/response.Response' - properties: - data: + ' data': $ref: '#/definitions/monitor_project.MonitorProjectResp' type: object - summary: 错误项目详情 + summary: 监控项目详情 tags: - - monitor_project-错误项目 + - monitor_project-监控项目 /api/admin/monitor_project/edit: post: parameters: @@ -1529,26 +1978,31 @@ paths: name: Token required: true type: string - - description: 项目id. + - description: 项目id in: body - name: id + name: Id schema: - type: integer - - description: 项目uuid. + type: number + - description: 项目uuid in: body - name: projectKey + name: ProjectKey schema: type: string - - description: 项目名称. + - description: 项目名称 in: body - name: projectName + name: ProjectName schema: type: string - - description: 项目类型go java web node php 等. + - description: 项目类型go java web node php 等 in: body - name: projectType + name: ProjectType schema: type: string + - description: '是否启用: 0=否, 1=是' + in: body + name: Status + schema: + type: number produces: - application/json responses: @@ -1556,9 +2010,9 @@ paths: description: 成功 schema: $ref: '#/definitions/response.Response' - summary: 错误项目编辑 + summary: 监控项目编辑 tags: - - monitor_project-错误项目 + - monitor_project-监控项目 /api/admin/monitor_project/list: get: parameters: @@ -1577,538 +2031,37 @@ paths: name: PageSize required: true type: integer - - description: 项目uuid. + - description: 项目uuid in: query - name: projectKey + name: ProjectKey type: string - - description: 项目名称. + - description: 项目名称 in: query - name: projectName + name: ProjectName type: string - - description: 项目类型go java web node php 等. + - description: 项目类型go java web node php 等 in: query - name: projectType + name: ProjectType type: string - produces: - - application/json - responses: - "200": - description: 成功 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - allOf: - - $ref: '#/definitions/response.PageResp' - - properties: - lists: - items: - $ref: '#/definitions/monitor_project.MonitorProjectResp' - type: array - type: object - type: object - "400": - description: 请求错误 - schema: - type: string - summary: 错误项目列表 - tags: - - monitor_project-错误项目 - /api/admin/monitor_web/ExportFile: - get: - parameters: - - description: token - in: header - name: Token - required: true - type: string - - description: 项目key. - in: query - name: projectKey - type: string - - description: sdk生成的客户端id. - in: query - name: clientId - type: string - - description: 事件类型. - in: query - name: eventType - type: string - - description: URL地址. - in: query - name: page - type: string - - description: 错误消息. - in: query - name: message - type: string - - description: 错误堆栈. - in: query - name: stack - type: string - - description: 客户端时间. - in: query - name: clientTime - type: integer - produces: - - application/json - responses: {} - summary: 错误收集error导出 - tags: - - monitor_web-错误收集error - /api/admin/monitor_web/add: - post: - parameters: - - description: token - in: header - name: Token - required: true - type: string - - description: 项目key. - in: body - name: projectKey - schema: - type: string - - description: sdk生成的客户端id. - in: body - name: clientId - schema: - type: string - - description: 事件类型. - in: body - name: eventType - schema: - type: string - - description: URL地址. - in: body - name: page - schema: - type: string - - description: 错误消息. - in: body - name: message - schema: - type: string - - description: 错误堆栈. - in: body - name: stack - schema: - type: string - - description: 客户端时间. - in: body - name: clientTime - schema: - type: integer - produces: - - application/json - responses: - "200": - description: 成功 - schema: - $ref: '#/definitions/response.Response' - summary: 错误收集error新增 - tags: - - monitor_web-错误收集error - /api/admin/monitor_web/del: - post: - parameters: - - description: token - in: header - name: Token - required: true - type: string - - description: uuid. - in: body - name: id - schema: - type: integer - produces: - - application/json - responses: - "200": - description: 成功 - schema: - $ref: '#/definitions/response.Response' - summary: 错误收集error删除 - tags: - - monitor_web-错误收集error - /api/admin/monitor_web/detail: - get: - parameters: - - description: token - in: header - name: Token - required: true - type: string - - description: uuid. - in: query - name: id - type: integer - produces: - - application/json - responses: - "200": - description: 成功 - schema: - $ref: '#/definitions/monitor_web.MonitorWebResp' - summary: 错误收集error详情 - tags: - - monitor_web-错误收集error - /api/admin/monitor_web/edit: - post: - parameters: - - description: token - in: header - name: Token - required: true - type: string - - description: uuid. - in: body - name: id - schema: - type: integer - - description: 项目key. - in: body - name: projectKey - schema: - type: string - - description: sdk生成的客户端id. - in: body - name: clientId - schema: - type: string - - description: 事件类型. - in: body - name: eventType - schema: - type: string - - description: URL地址. - in: body - name: page - schema: - type: string - - description: 错误消息. - in: body - name: message - schema: - type: string - - description: 错误堆栈. - in: body - name: stack - schema: - type: string - - description: 客户端时间. - in: body - name: clientTime - schema: - type: integer - produces: - - application/json - responses: - "200": - description: 成功 - schema: - $ref: '#/definitions/response.Response' - summary: 错误收集error编辑 - tags: - - monitor_web-错误收集error - /api/admin/monitor_web/list: - get: - parameters: - - description: token - in: header - name: Token - required: true - type: string - - description: 页码 - in: query - name: PageNo - required: true - type: integer - - description: 每页数量 - in: query - name: PageSize - required: true - type: integer - - description: 项目key. - in: query - name: projectKey - type: string - - description: sdk生成的客户端id. - in: query - name: clientId - type: string - - description: 事件类型. - in: query - name: eventType - type: string - - description: URL地址. - in: query - name: page - type: string - - description: 错误消息. - in: query - name: message - type: string - - description: 错误堆栈. - in: query - name: stack - type: string - - description: 客户端时间. - in: query - name: clientTime - type: integer - produces: - - application/json - responses: - "200": - description: 成功 - schema: - items: - $ref: '#/definitions/monitor_web.MonitorWebResp' - type: array - "400": - description: 请求错误 - schema: - type: string - summary: 错误收集error列表 - tags: - - monitor_web-错误收集error - /api/admin/monitor_web/listAll: - get: - produces: - - application/json - responses: - "200": - description: 成功 - schema: - items: - $ref: '#/definitions/monitor_web.MonitorWebResp' - type: array - summary: 错误收集error列表-所有 - tags: - - monitor_web-错误收集error - /api/admin/system_log_sms/ExportFile: - get: - parameters: - - description: token - in: header - name: Token - required: true - type: string - - description: 场景编号 - in: query - name: Scene - type: integer - - description: 手机号码 - in: query - name: Mobile - type: string - - description: 发送内容 - in: query - name: Content - type: string - - description: 发送状态:[0=发送中, 1=发送成功, 2=发送失败] + - description: '是否启用: 0=否, 1=是' in: query name: Status - type: integer - - description: 短信结果 + type: number + - description: 创建时间 in: query - name: Results + name: CreateTimeStart type: string - produces: - - application/json - responses: {} - summary: 系统短信日志导出 - tags: - - system_log_sms-系统短信日志 - /api/admin/system_log_sms/ImportFile: - post: - produces: - - application/json - responses: {} - summary: 系统短信日志导入 - tags: - - system_log_sms-系统短信日志 - /api/admin/system_log_sms/add: - post: - parameters: - - description: token - in: header - name: Token - required: true - type: string - - description: 场景编号 - in: formData - name: Scene - type: integer - - description: 手机号码 - in: formData - name: Mobile - type: string - - description: 发送内容 - in: formData - name: Content - type: string - - description: 发送状态:[0=发送中, 1=发送成功, 2=发送失败] - in: formData - name: Status - type: integer - - description: 短信结果 - in: formData - name: Results - type: string - produces: - - application/json - responses: - "200": - description: 成功 - schema: - $ref: '#/definitions/response.Response' - summary: 系统短信日志新增 - tags: - - system_log_sms-系统短信日志 - /api/admin/system_log_sms/del: - post: - parameters: - - description: token - in: header - name: Token - required: true - type: string - - description: id - in: body - name: Id - schema: - type: integer - produces: - - application/json - responses: - "200": - description: 成功 - schema: - $ref: '#/definitions/response.Response' - summary: 系统短信日志删除 - tags: - - system_log_sms-系统短信日志 - /api/admin/system_log_sms/detail: - get: - parameters: - - description: token - in: header - name: Token - required: true - type: string - - description: id + - description: 创建时间 in: query - name: Id - type: integer - produces: - - application/json - responses: - "200": - description: 成功 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - ' data': - $ref: '#/definitions/system_log_sms.SystemLogSmsResp' - type: object - summary: 系统短信日志详情 - tags: - - system_log_sms-系统短信日志 - /api/admin/system_log_sms/edit: - post: - parameters: - - description: token - in: header - name: Token - required: true + name: CreateTimeEnd type: string - - description: id - in: body - name: Id - schema: - type: integer - - description: 场景编号 - in: body - name: Scene - schema: - type: integer - - description: 手机号码 - in: body - name: Mobile - schema: - type: string - - description: 发送内容 - in: body - name: Content - schema: - type: string - - description: 发送状态:[0=发送中, 1=发送成功, 2=发送失败] - in: body - name: Status - schema: - type: integer - - description: 短信结果 - in: body - name: Results - schema: - type: string - - description: 发送时间 - in: body - name: SendTime - schema: - type: string - produces: - - application/json - responses: - "200": - description: 成功 - schema: - $ref: '#/definitions/response.Response' - summary: 系统短信日志编辑 - tags: - - system_log_sms-系统短信日志 - /api/admin/system_log_sms/list: - get: - parameters: - - description: token - in: header - name: Token - required: true + - description: 更新时间 + in: query + name: UpdateTimeStart type: string - - description: 页码 + - description: 更新时间 in: query - name: PageNo - required: true - type: integer - - description: 每页数量 - in: query - name: PageSize - required: true - type: integer - - description: 场景编号 - in: query - name: Scene - type: integer - - description: 手机号码 - in: query - name: Mobile - type: string - - description: 发送内容 - in: query - name: Content - type: string - - description: 发送状态:[0=发送中, 1=发送成功, 2=发送失败] - in: query - name: Status - type: integer - - description: 短信结果 - in: query - name: Results + name: UpdateTimeEnd type: string produces: - application/json @@ -2125,35 +2078,47 @@ paths: - properties: ' lists': items: - $ref: '#/definitions/system_log_sms.SystemLogSmsResp' + $ref: '#/definitions/monitor_project.MonitorProjectResp' type: array type: object type: object - summary: 系统短信日志列表 + summary: 监控项目列表 tags: - - system_log_sms-系统短信日志 - /api/admin/system_log_sms/listAll: + - monitor_project-监控项目 + /api/admin/monitor_project/listAll: get: parameters: - - description: 场景编号 + - description: 项目uuid in: query - name: Scene - type: integer - - description: 手机号码 - in: query - name: Mobile + name: ProjectKey type: string - - description: 发送内容 + - description: 项目名称 in: query - name: Content + name: ProjectName type: string - - description: 发送状态:[0=发送中, 1=发送成功, 2=发送失败] + - description: 项目类型go java web node php 等 + in: query + name: ProjectType + type: string + - description: '是否启用: 0=否, 1=是' in: query name: Status - type: integer - - description: 短信结果 + type: number + - description: 创建时间 in: query - name: Results + name: CreateTimeStart + type: string + - description: 创建时间 + in: query + name: CreateTimeEnd + type: string + - description: 更新时间 + in: query + name: UpdateTimeStart + type: string + - description: 更新时间 + in: query + name: UpdateTimeEnd type: string produces: - application/json @@ -2166,12 +2131,621 @@ paths: - properties: ' data': items: - $ref: '#/definitions/system_log_sms.SystemLogSmsResp' + $ref: '#/definitions/monitor_project.MonitorProjectResp' type: array type: object - summary: 系统短信日志列表-所有 + summary: 监控项目列表-所有 tags: - - system_log_sms-系统短信日志 + - monitor_project-监控项目 + /api/admin/monitor_slow/ExportFile: + get: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: 项目key + in: query + name: ProjectKey + type: string + - description: sdk生成的客户端id + in: query + name: ClientId + type: string + - description: 用户id + in: query + name: UserId + type: string + - description: URL地址 + in: query + name: Path + type: string + - description: 时间 + in: query + name: Time + type: number + - description: 创建时间 + in: query + name: CreateTimeStart + type: string + - description: 创建时间 + in: query + name: CreateTimeEnd + type: string + produces: + - application/json + responses: {} + summary: 监控-错误列导出 + tags: + - monitor_slow-监控-错误列 + /api/admin/monitor_slow/ImportFile: + post: + produces: + - application/json + responses: {} + summary: 监控-错误列导入 + tags: + - monitor_slow-监控-错误列 + /api/admin/monitor_slow/add: + get: + produces: + - application/json + responses: + "200": + description: 成功 + schema: + $ref: '#/definitions/response.Response' + summary: 监控-错误列新增 + tags: + - monitor_slow-监控-错误列 + /api/admin/monitor_slow/del: + post: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: 错误id + in: body + name: Id + schema: + type: number + produces: + - application/json + responses: + "200": + description: 成功 + schema: + $ref: '#/definitions/response.Response' + summary: 监控-错误列删除 + tags: + - monitor_slow-监控-错误列 + /api/admin/monitor_slow/delBatch: + post: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: 逗号分割的id + in: body + name: Ids + schema: + type: string + produces: + - application/json + responses: + "200": + description: 成功 + schema: + $ref: '#/definitions/response.Response' + summary: 监控-错误列删除-批量 + tags: + - monitor_slow-监控-错误列 + /api/admin/monitor_slow/detail: + get: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: 错误id + in: query + name: Id + type: number + produces: + - application/json + responses: + "200": + description: 成功 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + ' data': + $ref: '#/definitions/monitor_slow.MonitorSlowResp' + type: object + summary: 监控-错误列详情 + tags: + - monitor_slow-监控-错误列 + /api/admin/monitor_slow/edit: + post: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: 错误id + in: body + name: Id + schema: + type: number + - description: 项目key + in: body + name: ProjectKey + schema: + type: string + - description: sdk生成的客户端id + in: body + name: ClientId + schema: + type: string + - description: 用户id + in: body + name: UserId + schema: + type: string + - description: URL地址 + in: body + name: Path + schema: + type: string + - description: 时间 + in: body + name: Time + schema: + type: number + produces: + - application/json + responses: + "200": + description: 成功 + schema: + $ref: '#/definitions/response.Response' + summary: 监控-错误列编辑 + tags: + - monitor_slow-监控-错误列 + /api/admin/monitor_slow/list: + get: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: 页码 + in: query + name: PageNo + required: true + type: integer + - description: 每页数量 + in: query + name: PageSize + required: true + type: integer + - description: 项目key + in: query + name: ProjectKey + type: string + - description: sdk生成的客户端id + in: query + name: ClientId + type: string + - description: 用户id + in: query + name: UserId + type: string + - description: URL地址 + in: query + name: Path + type: string + - description: 时间 + in: query + name: Time + type: number + - description: 创建时间 + in: query + name: CreateTimeStart + type: string + - description: 创建时间 + in: query + name: CreateTimeEnd + type: string + produces: + - application/json + responses: + "200": + description: 成功 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + ' data': + allOf: + - $ref: '#/definitions/response.PageResp' + - properties: + ' lists': + items: + $ref: '#/definitions/monitor_slow.MonitorSlowResp' + type: array + type: object + type: object + summary: 监控-错误列列表 + tags: + - monitor_slow-监控-错误列 + /api/admin/monitor_slow/listAll: + get: + parameters: + - description: 项目key + in: query + name: ProjectKey + type: string + - description: sdk生成的客户端id + in: query + name: ClientId + type: string + - description: 用户id + in: query + name: UserId + type: string + - description: URL地址 + in: query + name: Path + type: string + - description: 时间 + in: query + name: Time + type: number + - description: 创建时间 + in: query + name: CreateTimeStart + type: string + - description: 创建时间 + in: query + name: CreateTimeEnd + type: string + produces: + - application/json + responses: + "200": + description: 成功 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + ' data': + items: + $ref: '#/definitions/monitor_slow.MonitorSlowResp' + type: array + type: object + summary: 监控-错误列列表-所有 + tags: + - monitor_slow-监控-错误列 + /api/admin/user_protocol/ExportFile: + get: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: 标题 + in: query + name: Title + type: string + - description: 协议内容 + in: query + name: Content + type: string + - description: 排序 + in: query + name: Sort + type: number + - description: 创建时间 + in: query + name: CreateTimeStart + type: string + - description: 创建时间 + in: query + name: CreateTimeEnd + type: string + - description: 更新时间 + in: query + name: UpdateTimeStart + type: string + - description: 更新时间 + in: query + name: UpdateTimeEnd + type: string + produces: + - application/json + responses: {} + summary: 用户协议导出 + tags: + - user_protocol-用户协议 + /api/admin/user_protocol/ImportFile: + post: + produces: + - application/json + responses: {} + summary: 用户协议导入 + tags: + - user_protocol-用户协议 + /api/admin/user_protocol/add: + post: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: 标题 + in: body + name: Title + schema: + type: string + - description: 协议内容 + in: body + name: Content + schema: + type: string + - description: 排序 + in: body + name: Sort + schema: + type: number + produces: + - application/json + responses: + "200": + description: 成功 + schema: + $ref: '#/definitions/response.Response' + summary: 用户协议新增 + tags: + - user_protocol-用户协议 + /api/admin/user_protocol/del: + post: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: Id + in: body + name: Id + schema: + type: number + produces: + - application/json + responses: + "200": + description: 成功 + schema: + $ref: '#/definitions/response.Response' + summary: 用户协议删除 + tags: + - user_protocol-用户协议 + /api/admin/user_protocol/delBatch: + post: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: 逗号分割的id + in: body + name: Ids + schema: + type: string + produces: + - application/json + responses: + "200": + description: 成功 + schema: + $ref: '#/definitions/response.Response' + summary: 用户协议删除-批量 + tags: + - user_protocol-用户协议 + /api/admin/user_protocol/detail: + get: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: Id + in: query + name: Id + type: number + produces: + - application/json + responses: + "200": + description: 成功 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + ' data': + $ref: '#/definitions/user_protocol.UserProtocolResp' + type: object + summary: 用户协议详情 + tags: + - user_protocol-用户协议 + /api/admin/user_protocol/edit: + post: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: Id + in: body + name: Id + schema: + type: number + - description: 标题 + in: body + name: Title + schema: + type: string + - description: 协议内容 + in: body + name: Content + schema: + type: string + - description: 排序 + in: body + name: Sort + schema: + type: number + produces: + - application/json + responses: + "200": + description: 成功 + schema: + $ref: '#/definitions/response.Response' + summary: 用户协议编辑 + tags: + - user_protocol-用户协议 + /api/admin/user_protocol/list: + get: + parameters: + - description: token + in: header + name: Token + required: true + type: string + - description: 页码 + in: query + name: PageNo + required: true + type: integer + - description: 每页数量 + in: query + name: PageSize + required: true + type: integer + - description: 标题 + in: query + name: Title + type: string + - description: 协议内容 + in: query + name: Content + type: string + - description: 排序 + in: query + name: Sort + type: number + - description: 创建时间 + in: query + name: CreateTimeStart + type: string + - description: 创建时间 + in: query + name: CreateTimeEnd + type: string + - description: 更新时间 + in: query + name: UpdateTimeStart + type: string + - description: 更新时间 + in: query + name: UpdateTimeEnd + type: string + produces: + - application/json + responses: + "200": + description: 成功 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + ' data': + allOf: + - $ref: '#/definitions/response.PageResp' + - properties: + ' lists': + items: + $ref: '#/definitions/user_protocol.UserProtocolResp' + type: array + type: object + type: object + summary: 用户协议列表 + tags: + - user_protocol-用户协议 + /api/admin/user_protocol/listAll: + get: + parameters: + - description: 标题 + in: query + name: Title + type: string + - description: 协议内容 + in: query + name: Content + type: string + - description: 排序 + in: query + name: Sort + type: number + - description: 创建时间 + in: query + name: CreateTimeStart + type: string + - description: 创建时间 + in: query + name: CreateTimeEnd + type: string + - description: 更新时间 + in: query + name: UpdateTimeStart + type: string + - description: 更新时间 + in: query + name: UpdateTimeEnd + type: string + produces: + - application/json + responses: + "200": + description: 成功 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + ' data': + items: + $ref: '#/definitions/user_protocol.UserProtocolResp' + type: array + type: object + summary: 用户协议列表-所有 + tags: + - user_protocol-用户协议 /api/article_collect/list: get: parameters: