fix: rebuild MES as compilable go-zero+ent backend (renamed bj_power_mes), restore 3 workstation projects from pristine original, align naming; all Go projects go build clean
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/jinzhu/copier"
|
||||
"bj_power_mes/common/errorx"
|
||||
xhttp "bj_power_mes/common/httpx"
|
||||
"bj_power_mes/ent"
|
||||
@@ -11,8 +12,6 @@ import (
|
||||
"bj_power_mes/internal/svc"
|
||||
"bj_power_mes/internal/types"
|
||||
|
||||
"github.com/jinzhu/copier"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
||||
@@ -43,9 +42,7 @@ func (l *UserinfoLogic) Userinfo() (resp *types.UserInfoReply, err error) {
|
||||
}
|
||||
|
||||
resp = new(types.UserInfoReply)
|
||||
if err := copier.Copy(resp, u); err != nil {
|
||||
l.Errorf("用户信息拷贝失败: %v", err)
|
||||
}
|
||||
_ = copier.Copy(resp, u)
|
||||
|
||||
resp.CreatedAt = u.CreatedAt.Unix()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user