Giter Club home page Giter Club logo

Comments (2)

weishirongzhen avatar weishirongzhen commented on June 23, 2024 1

thanks for explaination, I can use queryGroupProfilePicture to achieve what I need.

why I hava this issue is influence by userService.updateProfile api :
image
has a param to save profilePicture value

from turms.

JamesChenX avatar JamesChenX commented on June 23, 2024

If you want to manage group profile pictures (or other storage resources) by Turms, the API design is fine because:

  • groupService is mainly used to manage data in the group domain, and storageService is mainly used to manage data for groups, users, and messages in the storage resources domain.
  • If you upload resources by storageService, it's meanless for you to update the profile picture URL of a group to a custom URL because you can either interfere with the profile picture URLs provided by Turms if you decide to use regular profile picture URLs, or you need to call queryGroupProfilePicture to get the URL if you decide to use inregular profile picture URLs for anti-crawler reasons.

But if you want the storage resources by other services (not Turms), it's reasonable to update the profile picture via updateGroup, and I can update the API to add a param like profilePicture for you if you want.

from turms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.