7 Star 1 Fork 1

罗中天/douyin

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
user.go 697 Bytes
一键复制 编辑 原始数据 按行查看 历史
package pack
import (
"gitee.com/derrickball/douyin/app/comment/kitex_gen/comment_rpc"
"gitee.com/derrickball/douyin/app/user/kitex_gen/user_rpc"
"gitee.com/derrickball/douyin/app/video/kitex_gen/video_rpc"
)
func User(u *user_rpc.RPCQueryUserResp) *comment_rpc.User {
return &comment_rpc.User{
Id: u.Id,
Name: u.Name,
FollowCount: u.FollowCount,
FollowerCount: u.FollowerCount,
IsFollow: u.IsFollow,
}
}
func UserVideo(user *video_rpc.User) *comment_rpc.User {
return &comment_rpc.User{
Id: user.Id,
FollowCount: user.FollowCount,
FollowerCount: user.FollowerCount,
IsFollow: user.IsFollow,
Name: user.Name,
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/derrickball/douyin.git
git@gitee.com:derrickball/douyin.git
derrickball
douyin
douyin
48d44dfe16fa

搜索帮助