|
@@ -171,9 +171,9 @@ func (*selection) Update(ctx context.Context, request http_model.UpdateSelection
|
|
|
for _, v := range request.SecBrief {
|
|
|
brief := gorm_model.YounggeeSecBrief{
|
|
|
SelectionID: selectionInfo.SelectionID,
|
|
|
- FileUid: conv.MustString(v.PhotoUid, ""),
|
|
|
+ FileUid: conv.MustString(v.FileUid, ""),
|
|
|
FileName: v.Name,
|
|
|
- FileUrl: v.PhotoUrl,
|
|
|
+ FileUrl: v.FileUrl,
|
|
|
CreatedAt: time.Now(),
|
|
|
}
|
|
|
err = db.CreateSecBrief(ctx, brief)
|
|
@@ -193,9 +193,9 @@ func (*selection) Update(ctx context.Context, request http_model.UpdateSelection
|
|
|
for _, v := range request.SecExample {
|
|
|
Example := gorm_model.YounggeeSecExample{
|
|
|
SelectionID: selectionInfo.SelectionID,
|
|
|
- FileUid: conv.MustString(v.PhotoUid, ""),
|
|
|
+ FileUid: conv.MustString(v.FileUrl, ""),
|
|
|
FileName: v.Name,
|
|
|
- FileUrl: v.PhotoUrl,
|
|
|
+ FileUrl: v.FileUrl,
|
|
|
CreatedAt: time.Now(),
|
|
|
}
|
|
|
err = db.CreateSecExample(ctx, Example)
|