azev
V2EX  ›  问与答

用户中心里获取用户帖子这个方法应该是用户实体的还是帖子实体的?

  •  
  •   azev · Feb 20, 2023 · 1004 views
    This topic created in 1242 days ago, the information mentioned may be changed or developed.
    Supplement 1  ·  Feb 20, 2023
    User.getTopicList vs Topic.getListByUser ?
    3 replies    2023-02-20 09:39:07 +08:00
    GeekSuPro
        1
    GeekSuPro  
       Feb 20, 2023
    getPostPageListByUserId 应该写在帖子
    dqzcwxb
        2
    dqzcwxb  
       Feb 20, 2023   ❤️ 2
    根据用户 id 查帖子,应该在用户
    如果根据帖子 id 查用户,那么应该在帖子
    LxExExl
        3
    LxExExl  
       Feb 20, 2023
    二楼正解。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3466 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 11:00 · PVG 19:00 · LAX 04:00 · JFK 07:00
    ♥ Do have faith in what you're doing.