【问题标题】:How to get user in the other service?如何在其他服务中获取用户?
【发布时间】:2022-11-17 13:48:11
【问题描述】:

我需要在 post.service 中获取用户

    @InjectRepository(PostEntity)
    private readonly postRepository: Repository<PostEntity>,

不工作:

    @InjectRepository(PostEntity, ProfileEntity)
    private readonly postRepository: Repository<PostEntity>,
    private readonly profileRepository: Repository<profileEntity>,

【问题讨论】:

    标签: javascript postgresql


    【解决方案1】:

    答案大概是

    @InjectRepository(PostEntity)
    private readonly postRepository: Repository<PostEntity>,
    @InjectRepository(ProfileEntity)
    private readonly profileRepository: Repository<profileEntity>,
    

    【讨论】:

      猜你喜欢
      • 2016-05-04
      • 2019-11-12
      • 2020-11-15
      • 2019-01-12
      • 1970-01-01
      • 2015-02-01
      • 1970-01-01
      • 2013-12-27
      • 1970-01-01
      相关资源
      最近更新 更多