feat: 植物识别百科ai助手迁移
This commit is contained in:
@@ -19,8 +19,12 @@ func NewUpdateWikiClassLogic(ctx context.Context, svcCtx *svc.ServiceContext) *U
|
||||
}
|
||||
|
||||
func (l *UpdateWikiClassLogic) UpdateWikiClass(req *types.UpdateWikiClassReq) error {
|
||||
icon := req.Icon
|
||||
if icon == "" && req.OssId != "" {
|
||||
icon = req.OssId
|
||||
}
|
||||
_, err := l.svcCtx.PlantRpc.UpdateWikiClass(l.ctx, &plantPb.UpdateWikiClassReq{
|
||||
Id: req.Id, Name: req.Name, Icon: req.Icon,
|
||||
Id: req.Id, Name: req.Name, Icon: icon,
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user