Browse Source

Merge pull request '接口增加用户ID' (#3324) from fix-yitong into V20221214

Reviewed-on: https://openi.pcl.ac.cn/OpenI/aiforge/pulls/3324
Reviewed-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.12.1^2
zouap 2 years ago
parent
commit
0c53720109
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      modules/convert/cloudbrain.go
  2. +1
    -0
      modules/structs/tagger.go

+ 1
- 0
modules/convert/cloudbrain.go View File

@@ -104,6 +104,7 @@ func ToSpecification(s *models.Specification) *api.SpecificationShow {

func ToTagger(user *models.User) *api.Tagger {
return &api.Tagger{
ID: user.ID,
Name: user.Name,
RelAvatarURL: user.RelAvatarLink(),
Email: user.Email,


+ 1
- 0
modules/structs/tagger.go View File

@@ -1,6 +1,7 @@
package structs

type Tagger struct {
ID int64 `json:"id"`
Name string `json:"name"`
Email string `json:"email"`
RelAvatarURL string `json:"relAvatarURL"`


Loading…
Cancel
Save