|
@@ -23,31 +23,6 @@ type ManualEdbController struct {
|
|
|
controllers.BaseAuthController
|
|
|
}
|
|
|
|
|
|
-// TemplateDownload
|
|
|
-// @Title 下载模板
|
|
|
-// @Description 下载模板
|
|
|
-// @Success 200 {object} models.EdbdataClassifyResp
|
|
|
-// @Param Source query int false "来源:1:模板1;2:模板2"
|
|
|
-// @router /template [get]
|
|
|
-func (c *ManualEdbController) TemplateDownload() {
|
|
|
- br := new(models.BaseResponse).Init()
|
|
|
- defer func() {
|
|
|
- c.Data["json"] = br
|
|
|
- c.ServeJSON()
|
|
|
- }()
|
|
|
- source, _ := c.GetInt("Source")
|
|
|
- switch source {
|
|
|
- case 2:
|
|
|
- c.Ctx.Output.Download("./static/template/导入模板2.xlsx", "数据导入模板2.xlsx")
|
|
|
- default:
|
|
|
- c.Ctx.Output.Download("./static/template/导入模板1.xlsx", "数据导入模板1.xlsx")
|
|
|
- }
|
|
|
-
|
|
|
- br.Ret = 200
|
|
|
- br.Success = true
|
|
|
- br.Msg = "下载成功"
|
|
|
-}
|
|
|
-
|
|
|
// EdbDetail
|
|
|
// @Title 指标列表
|
|
|
// @Description 指标列表
|