更新
This commit is contained in:
parent
7e14e003fd
commit
c67c845211
@ -160,7 +160,7 @@ func ExportRegister(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
columns := []string{"画家姓名", "性别", "手机号", "身份证号", "通讯地址", "身份证照片", "本人近照", "报名时间", "更新时间"}
|
columns := []string{"画家姓名", "性别", "手机号", "身份证号", "通讯地址", "身份证照片", "本人近照", "报名时间", "更新时间"}
|
||||||
exportFileName := fmt.Sprintf("%s迁想妙得.xlsx", time.Now().Format("20060102"))
|
exportFileName := fmt.Sprintf("%s迁想妙得.xlsx", time.Now().Format("20060102"))
|
||||||
filePath := fmt.Sprintf("./runtime/%s", exportFileName)
|
filePath := fmt.Sprintf("./api/runtime/%s", exportFileName)
|
||||||
data := make([]interface{}, 0)
|
data := make([]interface{}, 0)
|
||||||
for _, v := range resp.Data {
|
for _, v := range resp.Data {
|
||||||
var temp []string
|
var temp []string
|
||||||
@ -195,7 +195,7 @@ func ExportRegister(c *gin.Context) {
|
|||||||
httpType = model.HttpType
|
httpType = model.HttpType
|
||||||
}
|
}
|
||||||
var exportUrl string
|
var exportUrl string
|
||||||
exportUrl = fmt.Sprintf("%s%s/static/%s", httpType, c.Request.Host, exportFileName)
|
exportUrl = fmt.Sprintf("%s%s/api/static/%s", httpType, c.Request.Host, exportFileName)
|
||||||
response.ResponseQuickMsg(c, msg.Ok, resp.Msg, map[string]string{
|
response.ResponseQuickMsg(c, msg.Ok, resp.Msg, map[string]string{
|
||||||
"exportUrl": exportUrl,
|
"exportUrl": exportUrl,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user