Skip to content

Commit

Permalink
Merge branch 'main' into fix/新增文件审核api
Browse files Browse the repository at this point in the history
  • Loading branch information
Love-YeLin authored Apr 7, 2024
2 parents 8c8fbc9 + 702274d commit c408169
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
6 changes: 5 additions & 1 deletion biz/application/service/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,15 @@ func (s *UserService) GetUser(ctx context.Context, req *gencontent.GetUserReq) (

func (s *UserService) CreateUser(ctx context.Context, req *gencontent.CreateUserReq) (resp *gencontent.CreateUserResp, err error) {
oid, _ := primitive.ObjectIDFromHex(req.UserId)
url := req.Url
if url == "" {
url = consts.DefaultAvatarUrl
}
if _, err = s.UserMongoMapper.Insert(ctx, &usermapper.User{
ID: oid,
Name: req.Name,
Sex: req.Sex,
Url: consts.DefaultAvatarUrl,
Url: url,
Description: consts.DefaultDescription,
}); err != nil {
return resp, err
Expand Down
17 changes: 17 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,23 @@ cloud.google.com/go/billing v1.5.0/go.mod h1:mztb1tBc3QekhjSgmpf/CV4LzWXLzCArwpL
cloud.google.com/go/billing v1.6.0/go.mod h1:WoXzguj+BeHXPbKfNWkqVtDdzORazmCjraY+vrxcyvI=
cloud.google.com/go/billing v1.7.0/go.mod h1:q457N3Hbj9lYwwRbnlD7vUpyjq6u5U1RAOArInEiD5Y=
cloud.google.com/go/binaryauthorization v1.1.0/go.mod h1:xwnoWu3Y84jbuHa0zd526MJYmtnVXn0syOjaJgy4+dM=
投递时间: 2024-03-26投递岗位: 软件开发-后台开发方向
当前状态:复试(腾讯会议面试)
腾讯邀你参加腾讯会议面试,请提前登录面试链接检测设备是否可用,并在面试前10分钟点击面试链接,祝您应聘顺利!

面试时间:2024-04-02 16:00

面试类型:实习生

面试岗位:后台开发

面试部门:腾讯视频

面试链接:https://meeting.tencent.com/dm/GThPa9YDPvRm 或登录腾讯会议号:235530594

备注:如果超过预定时间10分钟,面试官仍未出现,请联系0755-86013388,转分机号855999确认


cloud.google.com/go/binaryauthorization v1.2.0/go.mod h1:86WKkJHtRcv5ViNABtYMhhNWRrD1Vpi//uKEy7aYEfI=
cloud.google.com/go/binaryauthorization v1.3.0/go.mod h1:lRZbKgjDIIQvzYQS1p99A7/U1JqvqeZg0wiI5tp6tg0=
cloud.google.com/go/binaryauthorization v1.4.0/go.mod h1:tsSPQrBd77VLplV70GUhBf/Zm3FsKmgSqgm4UmiDItk=
Expand Down

0 comments on commit c408169

Please sign in to comment.