command
module
Version:
v0.0.0-...-9fd2f02
Opens a new window with list of versions in this module.
Published: Mar 31, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
starter-auth
租户权限中心服务
领域图
目录结构
- bc --限界上下文
- adapter --适配器(表现层)
- consumer --消息队列监听
- scheduler --定时任务调度
- controller --http请求监听
- grpc --grpc请求监听
- app --应用层(主要实现)
- domain --领域层
- biserrs --业务异常定义
- gateway --下游适配器网关(防腐层接口)
- model --领域模型
- infr --基础设施层
- bcconsts --常量集合
- gatewayimpl --下游网关实现(防腐层实现)
- repo --仓储层
- configs --本地配置
- docs --swagger文件
- main.go --启动程序
- zz_generated.ioc.go --ioc文件
接口文档
http://127.0.0.1:8810/swagger/index.html
核心业务流程
1.创建租户
前置条件
时序图
2.获得租户Token
前置条件
- 超管租户的TenantID+SK 或 普通租户的TenantID+SK
时序图
3.创建用户
前置条件
时序图
4.登录获得授权码
前置条件
时序图
5.授权码获得用户Token
前置条件
时序图
监听消息队列(Topic)
NSQ:TenantInit
配置中心需要预制的配置项(yaml)
- /clover-auth/default
- /clover-auth/v0.0.1
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
|
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag |
Click to show internal directories.
Click to hide internal directories.