You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
470 B
24 lines
470 B
package api |
|
|
|
import ( |
|
"changeme/internal/logic/masterFunc" |
|
"changeme/internal/logic/util/response" |
|
|
|
"github.com/gogf/gf/v2/net/ghttp" |
|
) |
|
|
|
func DownLoadMasterJpg(r *ghttp.Request) { |
|
id := r.Get("id").Int() |
|
if id == 0 { |
|
response.FailJson(true, r, "参数错误") |
|
return |
|
} |
|
|
|
err := masterFunc.DownLoadMasterJpgBySftp(id) |
|
if err != nil { |
|
response.FailJson(true, r, "下载失败", []string{err.Error()}) |
|
return |
|
} |
|
response.SusJson(true, r, "下载成功") |
|
|
|
} |