refactor: reorganize modules and add Linux build tooling
This commit is contained in:
16
module/base/mgt/etc/bsm-mgt.service
Normal file
16
module/base/mgt/etc/bsm-mgt.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=BlockServiceMesh Mgt Service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
EnvironmentFile=/data/app/etc/bsm.env
|
||||
ExecStart=/data/app/bsm-mgt
|
||||
WorkingDirectory=/data/app/
|
||||
StandardOutput=file:/data/app/logs/bsm-mgt.log
|
||||
StandardError=file:/data/app/logs/bsm-mgt.error.log
|
||||
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
543
module/base/mgt/etc/menu.json
Normal file
543
module/base/mgt/etc/menu.json
Normal file
@@ -0,0 +1,543 @@
|
||||
{
|
||||
"menus": [
|
||||
{
|
||||
"title": "工作台",
|
||||
"title_en": "Workspace",
|
||||
"code": "home",
|
||||
"description": "工作台菜单",
|
||||
"menu_path": "/home/",
|
||||
"type": 1,
|
||||
"sort_key": 1,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "",
|
||||
"children": [
|
||||
{
|
||||
"title": "数据概况",
|
||||
"title_en": "Overview",
|
||||
"code": "homeOverview",
|
||||
"description": "工作台 - 数据概况",
|
||||
"menu_path": "/home/overview",
|
||||
"type": 1,
|
||||
"sort_key": 1,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/home/overview/index",
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "分销商管理",
|
||||
"title_en": "Distributor Management",
|
||||
"code": "stores",
|
||||
"description": "分销商管理菜单",
|
||||
"menu_path": "/stores/",
|
||||
"type": 1,
|
||||
"sort_key": 2,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "",
|
||||
"children": [
|
||||
{
|
||||
"title": "分销商管理",
|
||||
"title_en": "Store Management",
|
||||
"code": "storesMgt",
|
||||
"description": "分销商管理 - 分销商管理",
|
||||
"menu_path": "/stores/store-mgt",
|
||||
"type": 1,
|
||||
"sort_key": 1,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/stores/store-mgt/index",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"title": "分销商公告",
|
||||
"title_en": "Store Notice",
|
||||
"code": "storesNotice",
|
||||
"description": "分销商管理 - 分销商公告",
|
||||
"menu_path": "/stores/notice",
|
||||
"type": 1,
|
||||
"sort_key": 2,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/stores/notice/index",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"title": "分销商广告图",
|
||||
"title_en": "Store Ads",
|
||||
"code": "storesAds",
|
||||
"description": "分销商管理 - 分销商广告图",
|
||||
"menu_path": "/stores/ads",
|
||||
"type": 1,
|
||||
"sort_key": 3,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/stores/ads/index",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"title": "分析报表",
|
||||
"title_en": "Analytics Report",
|
||||
"code": "storesAgencyReport",
|
||||
"description": "分销商管理 - 分析报表",
|
||||
"menu_path": "/stores/agency-report",
|
||||
"type": 1,
|
||||
"sort_key": 4,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/stores/agency-report/index",
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "产品库管理",
|
||||
"title_en": "Products",
|
||||
"code": "product",
|
||||
"description": "产品库管理菜单",
|
||||
"menu_path": "/product/",
|
||||
"type": 1,
|
||||
"sort_key": 3,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "",
|
||||
"children": [
|
||||
{
|
||||
"title": "分类管理",
|
||||
"title_en": "Categories",
|
||||
"code": "productCategory",
|
||||
"description": "产品库管理 - 分类管理",
|
||||
"menu_path": "/product/category",
|
||||
"type": 1,
|
||||
"sort_key": 1,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/product/category/index",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"title": "商品管理",
|
||||
"title_en": "Products",
|
||||
"code": "productMgt",
|
||||
"description": "产品库管理 - 商品管理",
|
||||
"menu_path": "/product/mgt",
|
||||
"type": 1,
|
||||
"sort_key": 2,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/product/mgt/index",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"title": "供应商管理",
|
||||
"title_en": "Suppliers",
|
||||
"code": "productSupplier",
|
||||
"description": "产品库管理 - 供应商管理",
|
||||
"menu_path": "/product/supplier",
|
||||
"type": 1,
|
||||
"sort_key": 3,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/product/supplier/index",
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "订单管理",
|
||||
"title_en": "Orders",
|
||||
"code": "order",
|
||||
"description": "订单管理菜单",
|
||||
"menu_path": "/order/",
|
||||
"type": 1,
|
||||
"sort_key": 4,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "",
|
||||
"children": [
|
||||
{
|
||||
"title": "创建订单",
|
||||
"title_en": "Create Order",
|
||||
"code": "orderQuick",
|
||||
"description": "订单管理 - 创建订单",
|
||||
"menu_path": "/order/quick",
|
||||
"type": 1,
|
||||
"sort_key": 1,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/order/quick/index",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"title": "订单管理",
|
||||
"title_en": "Orders",
|
||||
"code": "orderMgt",
|
||||
"description": "订单管理 - 订单管理",
|
||||
"menu_path": "/order/mgt",
|
||||
"type": 1,
|
||||
"sort_key": 2,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/order/mgt/index",
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "财务管理",
|
||||
"title_en": "Finance",
|
||||
"code": "finance",
|
||||
"description": "财务管理菜单",
|
||||
"menu_path": "/finance/",
|
||||
"type": 1,
|
||||
"sort_key": 5,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "",
|
||||
"children": [
|
||||
{
|
||||
"title": "钱包管理",
|
||||
"title_en": "Wallet",
|
||||
"code": "financeWallet",
|
||||
"description": "财务管理 - 钱包管理",
|
||||
"menu_path": "/finance/wallet",
|
||||
"type": 1,
|
||||
"sort_key": 1,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/finance/wallet/index",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"title": "财务统计",
|
||||
"title_en": "Finance Report",
|
||||
"code": "financeReport",
|
||||
"description": "财务管理 - 财务统计",
|
||||
"menu_path": "/finance/report",
|
||||
"type": 1,
|
||||
"sort_key": 2,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/finance/report/index",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"title": "财务明细",
|
||||
"title_en": "Transactions",
|
||||
"code": "financeInout",
|
||||
"description": "财务管理 - 财务明细",
|
||||
"menu_path": "/finance/inout",
|
||||
"type": 1,
|
||||
"sort_key": 3,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/finance/inout/index",
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "客户管理",
|
||||
"title_en": "Customers",
|
||||
"code": "passport",
|
||||
"description": "客户管理菜单",
|
||||
"menu_path": "/passport/",
|
||||
"type": 1,
|
||||
"sort_key": 6,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "",
|
||||
"children": [
|
||||
{
|
||||
"title": "意向客户管理",
|
||||
"title_en": "Leads",
|
||||
"code": "passportCrm",
|
||||
"description": "客户管理 - 意向客户管理",
|
||||
"menu_path": "/passport/crm",
|
||||
"type": 1,
|
||||
"sort_key": 1,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/passport/crm/index",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"title": "客户管理",
|
||||
"title_en": "Customers",
|
||||
"code": "passportMgt",
|
||||
"description": "客户管理 - 客户管理",
|
||||
"menu_path": "/passport/mgt",
|
||||
"type": 1,
|
||||
"sort_key": 2,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/passport/mgt/index",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"title": "客户分析报表",
|
||||
"title_en": "Customer Report",
|
||||
"code": "passportReport",
|
||||
"description": "客户管理 - 客户分析报表",
|
||||
"menu_path": "/passport/report",
|
||||
"type": 1,
|
||||
"sort_key": 3,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/passport/report/index",
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "营销管理",
|
||||
"title_en": "Marketing",
|
||||
"code": "market",
|
||||
"description": "营销管理菜单",
|
||||
"menu_path": "/market/",
|
||||
"type": 1,
|
||||
"sort_key": 7,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "",
|
||||
"children": [
|
||||
{
|
||||
"title": "优惠券管理",
|
||||
"title_en": "Coupons",
|
||||
"code": "marketCoupon",
|
||||
"description": "营销管理 - 优惠券管理",
|
||||
"menu_path": "/market/coupon",
|
||||
"type": 1,
|
||||
"sort_key": 1,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/market/coupon/index",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"title": "优惠活动管理",
|
||||
"title_en": "Promotions",
|
||||
"code": "marketActivity",
|
||||
"description": "营销管理 - 优惠活动管理",
|
||||
"menu_path": "/market/activity",
|
||||
"type": 1,
|
||||
"sort_key": 2,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/market/activity/index",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"title": "问卷调查管理",
|
||||
"title_en": "Surveys",
|
||||
"code": "marketSurvey",
|
||||
"description": "营销管理 - 问卷调查管理",
|
||||
"menu_path": "/market/survey",
|
||||
"type": 1,
|
||||
"sort_key": 3,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/market/survey/index",
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "内容管理",
|
||||
"title_en": "Content",
|
||||
"code": "content",
|
||||
"description": "内容管理菜单",
|
||||
"menu_path": "/content/",
|
||||
"type": 1,
|
||||
"sort_key": 8,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "",
|
||||
"children": [
|
||||
{
|
||||
"title": "分类管理",
|
||||
"title_en": "Categories",
|
||||
"code": "contentCategory",
|
||||
"description": "内容管理 - 分类管理",
|
||||
"menu_path": "/content/category",
|
||||
"type": 1,
|
||||
"sort_key": 1,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/content/category/index",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"title": "内容管理",
|
||||
"title_en": "Content",
|
||||
"code": "contentMgt",
|
||||
"description": "内容管理 - 内容管理",
|
||||
"menu_path": "/content/mgt",
|
||||
"type": 1,
|
||||
"sort_key": 2,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/content/mgt/index",
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "工作人员管理",
|
||||
"title_en": "Staff",
|
||||
"code": "staff",
|
||||
"description": "工作人员管理菜单",
|
||||
"menu_path": "/staff/",
|
||||
"type": 1,
|
||||
"sort_key": 9,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "",
|
||||
"children": [
|
||||
{
|
||||
"title": "工作人员管理",
|
||||
"title_en": "Staff",
|
||||
"code": "staffMgt",
|
||||
"description": "工作人员管理 - 工作人员管理",
|
||||
"menu_path": "/staff/mgt",
|
||||
"type": 1,
|
||||
"sort_key": 1,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/staff/mgt/index",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"title": "角色管理",
|
||||
"title_en": "Roles",
|
||||
"code": "staffRole",
|
||||
"description": "工作人员管理 - 角色管理",
|
||||
"menu_path": "/staff/role",
|
||||
"type": 1,
|
||||
"sort_key": 2,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/staff/role/index",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"title": "角色权限管理",
|
||||
"title_en": "Permissions",
|
||||
"code": "staffPermission",
|
||||
"description": "工作人员管理 - 角色权限管理",
|
||||
"menu_path": "/staff/permission",
|
||||
"type": 1,
|
||||
"sort_key": 3,
|
||||
"is_web_page": false,
|
||||
"is_new_tab": false,
|
||||
"is_full": false,
|
||||
"hide_menu": false,
|
||||
"web_url": "",
|
||||
"component": "views/staff/permission/index",
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"total_level1": 9,
|
||||
"total_level2": 24
|
||||
}
|
||||
21
module/base/mgt/etc/mgt_dev.yaml
Normal file
21
module/base/mgt/etc/mgt_dev.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
Service: mgt
|
||||
Port: 18001
|
||||
|
||||
Databases:
|
||||
Driver: postgres
|
||||
Source:
|
||||
- host=8.137.107.29 user=postgres password=CHANGE_ME dbname=ec_dev port=19432 sslmode=disable TimeZone=Asia/Shanghai
|
||||
|
||||
# cache DB的选择请在后面直接带参数,不带会自动HASH计算选择DB库。
|
||||
Cache: redis://null:CHANGE_ME@8.137.107.29:19379/0
|
||||
|
||||
# 是否启用微服务模式
|
||||
OnMicroService: false
|
||||
|
||||
# 是否初始化超级管理员用户
|
||||
InitRootUser: true
|
||||
|
||||
# 微服务调用密钥
|
||||
SecretKey: 6ad9529688041483f458f8de11ed16ff
|
||||
|
||||
|
||||
27
module/base/mgt/etc/mgt_prod.yaml
Normal file
27
module/base/mgt/etc/mgt_prod.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
Service: mgt
|
||||
Port: 18001
|
||||
|
||||
Databases:
|
||||
Driver: postgres
|
||||
Source:
|
||||
- host=pgm-wz9bhqbrvu52d180.pg.rds.aliyuncs.com user=ec_dev password=CHANGE_ME dbname=factor_prod port=5432 sslmode=disable TimeZone=Asia/Shanghai
|
||||
|
||||
# cache DB的选择请在后面直接带参数,不带会自动HASH计算选择DB库。
|
||||
Cache: redis://null:CHANGE_ME@47.109.77.183:6379/0
|
||||
|
||||
# 是否启用微服务模式
|
||||
OnMicroService: false
|
||||
|
||||
# 微服务调用密钥
|
||||
SecretKey: 6ad9529688041483f458f8de11ed16ff
|
||||
|
||||
# Rpc:
|
||||
# fts:
|
||||
# Endpoint: https://api-v2.traingo.cn/fts/v2
|
||||
# SecretKey: 4ef05311358cd1c8f787281f08b38b1c
|
||||
|
||||
|
||||
# 链路追踪,性能监控,日志收集
|
||||
# APM:
|
||||
# Platform: elasticAPM
|
||||
# Endpoint: http://127.0.0.1:14268/api/traces
|
||||
27
module/base/mgt/etc/mgt_test.yaml
Normal file
27
module/base/mgt/etc/mgt_test.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
Service: mgt
|
||||
Port: 18001
|
||||
|
||||
Databases:
|
||||
Driver: postgres
|
||||
Source:
|
||||
- host=47.109.77.183 user=postgres password=CHANGE_ME dbname=ec_dev port=5432 sslmode=disable TimeZone=Asia/Shanghai
|
||||
|
||||
# cache DB的选择请在后面直接带参数,不带会自动HASH计算选择DB库。
|
||||
Cache: redis://null:CHANGE_ME@47.109.77.183:6379/0
|
||||
|
||||
# 是否启用微服务模式
|
||||
OnMicroService: false
|
||||
|
||||
# 微服务调用密钥
|
||||
SecretKey: 6ad9529688041483f458f8de11ed16ff
|
||||
|
||||
# Rpc:
|
||||
# fts:
|
||||
# Endpoint: https://api-v2.traingo.cn/fts/v2
|
||||
# SecretKey: 4ef05311358cd1c8f787281f08b38b1c
|
||||
|
||||
|
||||
# 链路追踪,性能监控,日志收集
|
||||
# APM:
|
||||
# Platform: elasticAPM
|
||||
# Endpoint: http://127.0.0.1:14268/api/traces
|
||||
Reference in New Issue
Block a user