|
@@ -778,11 +778,26 @@ func (this *TargetCommonController) TemplateDownload() {
|
|
|
this.ServeJSON()
|
|
|
}()
|
|
|
|
|
|
- if this.Lang == utils.EnLangVersion {
|
|
|
- this.Ctx.Output.Download("./static/Data Import Template.xlsx", "Data Import Template.xlsx")
|
|
|
- } else {
|
|
|
- this.Ctx.Output.Download("./static/数据导入模板.xlsx", "数据导入模板.xlsx")
|
|
|
- }
|
|
|
+ this.Ctx.Output.Download("./static/数据导入模板.xlsx", "数据导入模板.xlsx")
|
|
|
+
|
|
|
+ br.Ret = 200
|
|
|
+ br.Success = true
|
|
|
+ br.Msg = "下载成功"
|
|
|
+}
|
|
|
+
|
|
|
+// TemplateDownload
|
|
|
+// @Title 下载模板
|
|
|
+// @Description 下载模板
|
|
|
+// @Success 200 {object} models.EdbdataClassifyResp
|
|
|
+// @router /template/en [get]
|
|
|
+func (this *TargetCommonController) TemplateDownloadEn() {
|
|
|
+ br := new(models.BaseResponse).Init()
|
|
|
+ defer func() {
|
|
|
+ this.Data["json"] = br
|
|
|
+ this.ServeJSON()
|
|
|
+ }()
|
|
|
+
|
|
|
+ this.Ctx.Output.Download("./static/Data Import Template.xlsx", "Data Import Template.xlsx")
|
|
|
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|