Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    12dollar
    @12dollar
    Hi, nice to meet you. English is okay?
    @snowlyg
    snowlyg
    @snowlyg
    Nice to meet you too. Yes, my english is bad.
    12dollar
    @12dollar

    Your English doesn't seem that bad. Could you tell me what the intention with your project is? Why do you distinguish between tenants and general users? I can see your project is a copy of https://github.com/flipped-aurora/gin-vue-admin

    Chinese translation:
    你的英语好像没那么差。你能告诉我你的项目的意图是什么吗?为什么要区分租户和普通用户?我可以看到你的项目是 https://github.com/flipped-aurora/gin-vue-admin 的副本

    I'm also building a multi-tenant solution based on https://github.com/flipped-aurora/gin-vue-admin so I'm wondering if contributing to your project would be better than doing double the work. But I'm building a multi-tenant SaaS solution (backend only) which has users and team members with team invitation, e-mail invites, and so on. If your project is going into a different direction I would stick with mine.

    Chinese translation:
    我也在构建一个基于 https://github.com/flipped-aurora/gin-vue-admin 的多租户解决方案,所以我想知道为你的项目做贡献是否比做两倍的工作更好。但我正在构建一个多租户 SaaS 解决方案(仅限后端),其中包含具有团队邀请、电子邮件邀请等功能的用户和团队成员。如果你的项目走向不同的方向,我会坚持我的。

    @snowlyg
    snowlyg
    @snowlyg
    Yes, it's a copy of https://github.com/flipped-aurora/gin-vue-admin . my project has three roles, for superadmin ,tenants and general users.
    12dollar
    @12dollar
    why do you need general user? If it's multi-tenant, each tenant should be your user, or?
    and what kind of frontend are you trying to connect to or which use-case do you want to create?
    It looks to me it's a plattform for merchants and buyers?
    snowlyg
    @snowlyg
    i will build a online shop for hospitals base this project.
    general user is the shoppers
    12dollar
    @12dollar
    ah okay, interesting. So the merchant is a tenant, and the buyer is the user
    understood
    snowlyg
    @snowlyg
    frontend is use vue
    12dollar
    @12dollar
    ok, I know vue-element-admin too
    it's a good base
    snowlyg
    @snowlyg
    In my design, the role is not fixed.
    i just set three role type in auth middleware.
    12dollar
    @12dollar
    yes, I have seen that, but do you really need it?
    With Permissioncodes (AuthorityID) and (AuthorityName) you could achieve the same thing, or?
    snowlyg
    @snowlyg
    your can add or sub this role type if you want.
    one role type mybe has more role
    role type look live the role's group
    12dollar
    @12dollar
    I understand. I did it like this:
    type SysUser struct {
        global.GVA_MODEL
        UUID                uuid.UUID            
        TenantId        uuid.UUID            
        Username        string               
        Password        string               
        HeaderImg      string               
        Authority           []SysAuthority     
    
    }
    and SysAuthority is holding all the role information, even multiple
    snowlyg
    @snowlyg
    my project not suport multiple role for user.
    12dollar
    @12dollar
    yes, that's true. That's why I think it's better to keep it separated projects, otherwise I would have helped you in developing yours
    But nice job you are doing anyway
    snowlyg
    @snowlyg
    yes,it's not in the version in my plans.