Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Business Model #4

Open
6 of 8 tasks
hhstore opened this issue Feb 8, 2021 · 4 comments
Open
6 of 8 tasks

Business Model #4

hhstore opened this issue Feb 8, 2021 · 4 comments

Comments

@hhstore
Copy link
Collaborator

hhstore commented Feb 8, 2021

related:

B2B2C 电商系统

  • 开发原则:
    • sql 表不变
    • api 对齐: 参数/返回值不变.

1. 业务模型:

  • 角色划分:
    • 平台侧: B1
      • 物流
      • CRM 客户管理
      • 清结算平台
    • 客户侧:
      • 商家: B2
      • 代理商/渠道/推广: B2
      • 买家: C
  • 根据用户角色, 对需求进行归类.
  • 进而拆分微服务. 目标是复用 数据库表 + API. 并不是完全照抄.
  • 要按照 go 微服务进行更好的拆分+迭代.

平台侧:

  • 第一层 B 端.

商家侧:

  • 商户/店铺
  • 代理商/渠道/推广

C端用户:

  • 普通买家

2. 需求切分/建模:

  • 对一个需求, 要特别区分是属于 B 端, 还是 C 端. 分开设计+开发.
  • 不要混杂一起. 会导致业务混乱+不清晰.
  • 典型场景: 订单系统. 涉及 平台对账/商家月账单/买家个人订单记录.
    • 要分3个维度, 单独分析+建模+开发.
    • API 分开隔离, DB 表有领域划分.
@hhstore
Copy link
Collaborator Author

hhstore commented Sep 27, 2021

@gleke
Copy link

gleke commented Apr 26, 2023

实现了那些?

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Achieved those?

@hhstore
Copy link
Collaborator Author

hhstore commented Apr 26, 2023

实现了那些?

  • 我写了一些业务, 已经移植了一部分.
  • 可以参考 app/unit/license
  • 这个服务, 是目录规范.
  • 服务列表都定义了. 感兴趣, 可以提交代码来实现.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants