mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-10-18 06:00:39 +08:00
更换为null_time,null_int
This commit is contained in:
@@ -1,11 +1,5 @@
|
||||
package response
|
||||
|
||||
import (
|
||||
"x_admin/core"
|
||||
|
||||
"github.com/jinzhu/copier"
|
||||
)
|
||||
|
||||
// PageResp 分页返回值
|
||||
type PageResp struct {
|
||||
Count int64 `json:"count"` // 总数
|
||||
@@ -15,10 +9,10 @@ type PageResp struct {
|
||||
}
|
||||
|
||||
// Copy 拷贝结构体
|
||||
func Copy(toValue interface{}, fromValue interface{}) interface{} {
|
||||
if err := copier.Copy(toValue, fromValue); err != nil {
|
||||
core.Logger.Errorf("Copy err: err=[%+v]", err)
|
||||
panic(SystemError)
|
||||
}
|
||||
return toValue
|
||||
}
|
||||
// func Copy(toValue interface{}, fromValue interface{}) interface{} {
|
||||
// if err := copier.Copy(toValue, fromValue); err != nil {
|
||||
// core.Logger.Errorf("Copy err: err=[%+v]", err)
|
||||
// panic(SystemError)
|
||||
// }
|
||||
// return toValue
|
||||
// }
|
||||
|
Reference in New Issue
Block a user