mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-10-18 14:10:52 +08:00
更换为null_time,null_int
This commit is contained in:
@@ -3,8 +3,8 @@ package upload
|
||||
import (
|
||||
"mime/multipart"
|
||||
"x_admin/admin/common/album"
|
||||
"x_admin/core/response"
|
||||
"x_admin/plugin"
|
||||
"x_admin/util"
|
||||
)
|
||||
|
||||
type IUploadService interface {
|
||||
@@ -39,14 +39,14 @@ func (upSrv uploadService) uploadFile(file *multipart.FileHeader, folder string,
|
||||
return
|
||||
}
|
||||
var addReq album.CommonAlbumAddReq
|
||||
response.Copy(&addReq, upRes)
|
||||
util.ConvertUtil.Copy(&addReq, upRes)
|
||||
addReq.Aid = aid
|
||||
addReq.Cid = cid
|
||||
var albumId uint
|
||||
if albumId, e = album.Service.AlbumAdd(addReq); e != nil {
|
||||
return
|
||||
}
|
||||
response.Copy(&res, addReq)
|
||||
util.ConvertUtil.Copy(&res, addReq)
|
||||
res.ID = albumId
|
||||
res.Path = upRes.Path
|
||||
return res, nil
|
||||
|
Reference in New Issue
Block a user