LaoMenDian_ShouZhiMei/README.md

430 lines
21 KiB
Markdown
Raw Permalink Normal View History

2025-07-16 17:27:54 +08:00
### 门店管理系统
- 使用EFCORE+Furion+NET7
- 依赖redis
### 数据库
- mysql
- 数据库地址123.249.79.37
- 数据库端口号3306
### 服务器
- IP:123.249.79.37
-宝塔地址:<https://123.249.79.37:28351/8698ed07>
### 数据结构更新
1. 更改 CodeFirst 结构 [更改模型文档](https://learn.microsoft.com/zh-cn/ef/core/modeling/)
2. 在程序包管理器控制台默认项目中选择“src\JT.Shop.Database.Migrations”
```
//添加迁移架构代码
Add-Migration 新版本号 -Context DefaultDbContext
//以下应用适合生产环境的迁移方法
//方法一:生成一个从指定 from 迁移到指定 to 迁移的 SQL 脚本。警告:潜在的数据丢失方案。
Script-Migration 上个版本号 新版本号
//方法二:幂等 SQL 脚本。此类脚本将在内部检查已经应用哪些迁移(通过迁移历史记录表),并且只应用缺少的迁移。
Script-Migration -Idempotent
```
### 目录结构
├── admin 总部管理后台
│   ├── config 插件配置文件
│   ├── dist 发布目录
│   │   ├── css
│   │   ├── img
│   │   ├── js
│   │   └── loading
│   │   └── option2
│   ├── docker docker配置参考文件
│   │   └── nginx
│   │   └── vhost
│   ├── public 静态资源
│   │   └── loading
│   │   └── option2
│   ├── src 源码
│   │   ├── api api接口
│   │   │   └── modular
│   │   │   ├── main 业务接口
│   │   │   └── system 系统接口
│   │   ├── assets 静态资源
│   │   │   ├── icons
│   │   │   └── template
│   │   ├── components 自定义组件
│   │   │   ├── ArticleListContent
│   │   │   ├── AvatarList
│   │   │   ├── Charts
│   │   │   ├── CountDown
│   │   │   ├── DepartmentSelect
│   │   │   ├── DescriptionList
│   │   │   ├── Editor
│   │   │   ├── Ellipsis
│   │   │   ├── Exception
│   │   │   ├── FooterToolbar
│   │   │   ├── GlobalFooter
│   │   │   ├── GlobalHeader
│   │   │   ├── IconSelector
│   │   │   ├── Menu
│   │   │   ├── MultiTab
│   │   │   ├── NProgress
│   │   │   ├── NoticeIcon
│   │   │   ├── NumberInfo
│   │   │   ├── PageHeader
│   │   │   ├── PageLoading
│   │   │   ├── Result
│   │   │   ├── Search
│   │   │   ├── SettingDrawer
│   │   │   ├── StandardFormRow
│   │   │   ├── Table
│   │   │   ├── TagSelect
│   │   │   ├── TextArea
│   │   │   ├── Tree
│   │   │   ├── Trend
│   │   │   ├── UserSelect
│   │   │   ├── _util
│   │   │   ├── tools
│   │   │   ├── verifition
│   │   │   │   ├── Verify
│   │   │   │   └── utils
│   │   │   └── xnComponents
│   │   ├── config 默认样式和路由配置
│   │   ├── core 插件
│   │   │   ├── directives
│   │   │   └── lazy_lib
│   │   ├── layouts 布局配置
│   │   ├── mock 模拟数据
│   │   │   └── services
│   │   ├── router 路由配置
│   │   ├── store 状态管理
│   │   │   └── modules
│   │   ├── utils 工具类
│   │   │   └── helper
│   │   └── views 页面
│   │   ├── components 组件
│   │   ├── main 业务模块
│   │   │   ├── business 门店和总部选择模块
│   │   │   ├── device 设备管理
│   │   │   │   ├── product 出货管理
│   │   │   │   └── type 设备类型管理
│   │   │   ├── measureresult 测量结果
│   │   │   ├── order 订单管理
│   │   │   ├── reguser 用户管理
│   │   │   ├── sbody 部位管理
│   │   │   │   └── type 部位类型管理
│   │   │   ├── shop 门店管理
│   │   │   │   ├── org 门店组织结构管理
│   │   │   │   ├── pos 门店职位管理
│   │   │   │   └── role 门店角色管理
│   │   │   └── wx 公众号管理
│   │   ├── mch 门店管理
│   │   │   ├── account 门店账号管理
│   │   │   │   └── pos 门店职位管理
│   │   │   ├── body 门店部位管理
│   │   │   ├── member 门店会员管理
│   │   │   ├── product 门店产品管理
│   │   │   │   ├── pay 购买记录
│   │   │   │   └── result 使用记录
│   │   │   └── serve 门店服务管理
│   │   │   └── result 服务记录
│   │   ├── system 系统模块
│   │   │   ├── account 账户管理
│   │   │   │   ├── center 个人中心
│   │   │   │   │   └── page
│   │   │   │   └── settings 个人配置
│   │   │   │   └── securityItem
│   │   │   ├── app 应用管理
│   │   │   ├── config 配置管理
│   │   │   ├── dashboard 仪表盘
│   │   │   ├── dict 字典管理
│   │   │   │   └── dictdata 字典数据
│   │   │   ├── email 邮件管理
│   │   │   ├── exception 异常页
│   │   │   ├── file 文件管理
│   │   │   ├── index 首页
│   │   │   ├── log 日志管理
│   │   │   │   ├── exlog 异常日志
│   │   │   │   ├── oplog 操作日志
│   │   │   │   ├── thirdlog 第三方日志
│   │   │   │   └── vislog 访问日志
│   │   │   ├── machine 机器管理
│   │   │   ├── menu 菜单管理
│   │   │   ├── notice 通知管理
│   │   │   ├── noticeReceived 通知接收管理
│   │   │   ├── org 组织管理
│   │   │   ├── pos 职位管理
│   │   │   ├── role 角色管理
│   │   │   └── user 用户管理
│   │   └── userLoginReg 用户注册登录
│   └── tests 测试单元
│   └── unit
├── doc 文档
├── mch 门店端管理平台
│   ├── config 默认样式和路由配置
│   ├── dist 发布目录
│   │   ├── css
│   │   ├── img
│   │   ├── js
│   │   └── loading
│   │   └── option2
│   ├── docker docker配置参考文件
│   │   └── nginx
│   │   └── vhost
│   ├── public 静态资源
│   │   └── loading
│   │   └── option2
│   ├── src 源码
│   │   ├── api 接口
│   │   │   └── modular
│   │   │   ├── main 业务接口
│   │   │   └── system 系统接口
│   │   ├── assets 静态资源
│   │   │   ├── icons
│   │   │   └── template
│   │   ├── components 自定义组件
│   │   │   ├── ArticleListContent
│   │   │   ├── AvatarList
│   │   │   ├── Charts
│   │   │   ├── CountDown
│   │   │   ├── DepartmentSelect
│   │   │   ├── DescriptionList
│   │   │   ├── Editor
│   │   │   ├── Ellipsis
│   │   │   ├── Exception
│   │   │   ├── FooterToolbar
│   │   │   ├── GlobalFooter
│   │   │   ├── GlobalHeader
│   │   │   ├── IconSelector
│   │   │   ├── Menu
│   │   │   ├── MultiTab
│   │   │   ├── NProgress
│   │   │   ├── NoticeIcon
│   │   │   ├── NumberInfo
│   │   │   ├── PageHeader
│   │   │   ├── PageLoading
│   │   │   ├── Result
│   │   │   ├── Search
│   │   │   ├── SettingDrawer
│   │   │   ├── StandardFormRow
│   │   │   ├── Table
│   │   │   ├── TagSelect
│   │   │   ├── TextArea
│   │   │   ├── Tree
│   │   │   ├── Trend
│   │   │   ├── UserSelect
│   │   │   ├── _util
│   │   │   ├── tools
│   │   │   ├── verifition
│   │   │   │   ├── Verify
│   │   │   │   └── utils
│   │   │   └── xnComponents
│   │   ├── config 默认样式和路由配置
│   │   ├── core 插件
│   │   │   ├── directives
│   │   │   └── lazy_lib
│   │   ├── layouts 布局配置
│   │   ├── mock 模拟数据
│   │   │   └── services
│   │   ├── router 路由配置
│   │   ├── store 状态管理
│   │   │   └── modules
│   │   ├── utils 工具类
│   │   │   └── helper
│   │   └── views 页面
│   │   ├── components 组件
│   │   ├── main 业务模块
│   │   │   ├── business 门店和总部选择模块
│   │   │   ├── device 设备管理
│   │   │   │   ├── product 出货管理
│   │   │   │   └── type 设备类型管理
│   │   │   ├── measureresult 测量结果管理
│   │   │   ├── order 订单管理
│   │   │   ├── reguser 用户管理
│   │   │   ├── shop 门店管理
│   │   │   │   ├── org 门店组织结构管理
│   │   │   │   ├── pos 门店职位管理
│   │   │   │   └── role 门店角色管理
│   │   │   └── wx 公众号管理
│   │   ├── mch 门店管理
│   │   │   ├── account 门店账号管理
│   │   │   │   └── pos 门店职位管理
│   │   │   ├── body 门店部位管理
│   │   │   ├── member 门店会员管理
│   │   │   ├── product 门店产品管理
│   │   │   │   ├── pay 购买记录
│   │   │   │   └── result 使用记录
│   │   │   ├── serve 门店服务管理
│   │   │   │   └── result 服务记录
│   │   │   └── set 门店设置
│   │   ├── system 系统管理
│   │   │   ├── account 用户管理
│   │   │   │   ├── center 个人中心
│   │   │   │   │   └── page
│   │   │   │   └── settings 个人配置
│   │   │   │   └── securityItem
│   │   │   ├── app 应用管理
│   │   │   ├── config 配置管理
│   │   │   ├── dashboard 仪表盘
│   │   │   ├── dict 字典管理
│   │   │   │   └── dictdata 字典数据
│   │   │   ├── email 邮件管理
│   │   │   ├── exception 异常页
│   │   │   ├── file 文件管理
│   │   │   ├── index 首页
│   │   │   ├── log 日志管理
│   │   │   │   ├── exlog 异常日志
│   │   │   │   ├── oplog 操作日志
│   │   │   │   ├── thirdlog 第三方日志
│   │   │   │   └── vislog 访问日志
│   │   │   ├── machine 机器管理
│   │   │   ├── menu 菜单管理
│   │   │   ├── notice 通知管理
│   │   │   ├── noticeReceived 通知接收管理
│   │   │   ├── org 组织管理
│   │   │   ├── pos 职位管理
│   │   │   ├── role 角色管理
│   │   │   └── user 用户管理
│   │   └── userLoginReg 用户注册登录
│   └── tests 测试单元
│   └── unit
└── netcore .NET7项目
└── src 源代码
├── JT.Shop.Application 业务模块
│   ├── JobService 定时任务
│   ├── Mapper DTO映射
│   └── Service 服务接口
│   ├── BaseCommon 基础服务
│   │   ├── Http http请求封装接口
│   │   ├── QrCode 二维码封装接口
│   │   ├── SMS 短信封装接口
│   │   └── Upload 文件上传接口
│   ├── Business 总部业务服务
│   │   ├── BodyType 身体部份管理
│   │   ├── Clerk 店员管理
│   │   ├── Device 设备管理
│   │   │   └── Type 设备类型管理
│   │   ├── Member 会员管理
│   │   ├── Org 组织管理
│   │   ├── OutProduct 出货管理
│   │   ├── Pos 职位管理
│   │   ├── Product 产品管理
│   │   ├── Retailer 分销管理,未使用
│   │   ├── Role 角色管理
│   │   ├── Serve 服务管理
│   │   ├── Shop 门店管理
│   │   └── WX 公众号管理
│   ├── Mch 门店业务服务
│   │   ├── Account 门店账号管理
│   │   ├── Body 门店部位管理
│   │   ├── Clerk 门店店员管理
│   │   ├── Conf 门店配置管理
│   │   ├── Device 门店设备管理
│   │   ├── Member 门店会员管理
│   │   ├── Product 门店产品管理
│   │   └── Serve 门店服务管理
│   ├── ShopApi 门店H5接口
│   │   ├── Device 门店设备管理
│   │   ├── MP 门店公众号管理
│   │   ├── Member 门店会员管理
│   │   ├── Notice 门店通知管理
│   │   ├── Report 门店报表管理
│   │   ├── Shop 门店管理
│   │   └── User 门店用户管理
│   ├── System 系统接口服务
│   │   ├── App 应用管理
│   │   ├── Auth 登录相关管理
│   │   ├── Base 通用方法
│   │   ├── Cache 缓存管理
│   │   ├── Captcha 验证码管理
│   │   │   ├── ClickWord
│   │   │   └── General
│   │   ├── Config 配置管理
│   │   ├── Dict 字典管理
│   │   ├── Emp 员工管理
│   │   ├── Enum 枚举管理
│   │   ├── File 文件管理
│   │   ├── Forms 表单管理
│   │   ├── Hubs 聊天管理
│   │   ├── Logger 日志管理
│   │   ├── Menu 菜单管理
│   │   ├── Message 消息管理
│   │   ├── Monitor 监控管理
│   │   ├── Notice 通知管理
│   │   ├── OnlineUser 在线用户管理
│   │   ├── Org 组织管理
│   │   ├── Pos 职位管理
│   │   ├── Role 角色管理
│   │   ├── StepBody 步骤管理
│   │   ├── System 系统管理
│   │   ├── Timer 定时任务管理
│   │   └── User 用户管理
│   ├── Test 测试单元
│   └── UserApi 门店用户H5接口
│   ├── Level 标准等级管理
│   ├── Result 测量结果管理
│   └── User 账户管理
├── JT.Shop.Core 框架核心,引用Nuget包
│   ├── Filter 拦截器
│   └── Util 辅助类
├── JT.Shop.Database.Migrations 数据库迁移
│   ├── Migrations 迁移文件
│   └── sql sql脚本
├── JT.Shop.Domain 领域模型
│   ├── Entity 数据库实体
│   │   ├── Business 业务层实体
│   │   ├── Client 用户层实体
│   │   ├── SeedData 种子数据
│   │   ├── Shop 门店层实体
│   │   └── System 系统层实体
│   │   └── WorkflowEntity
│   ├── ErrCode 错误码
│   ├── Options 选项配置
│   └── Properties 配置文件
├── JT.Shop.Domain.Shared 常用枚举和常量定义
│   ├── Const 常量定义
│   ├── Enum 枚举定义
│   └── Properties 配置文件
├── JT.Shop.EntityFramework.Core EntityFrameworkCore管理
│   ├── DbContexts 数据库配置
│   ├── Extensions 数据库扩展
│   └── Repository 仓储
├── JT.Shop.EventBus 事件总线
│   └── Service 订阅者
│   ├── Logger 日志订阅
│   └── Report 统计订阅
├── JT.Shop.HealthCheck 健康检查,未使用
│   └── Extensions
├── JT.Shop.Web.Entry web层
│   ├── App_Data 缓存文件
│   │   └── SenparcTraceLog
│   ├── Controllers 控制器
│   ├── Handlers 中间件
│   ├── Properties 发布配置
│   │   └── PublishProfiles
│   ├── Views 视图
│   │   ├── Auth 公众号授权相关
│   │   ├── Home 首页
│   │   ├── Qr 二维码入口相关
│   │   └── Shared 共享页面
│   └── wwwroot 静态资源
│   ├── css
│   ├── image
│   ├── js
│   ├── tpl
│   ├── uploadfile
│   │   └── images
│   │   ├── 20240309
│   │   ├── 20240417
│   │   └── share
│   │   └── 202404
│   └── vant
└── JT.Shop.WeiXin 微信公众号
└── Service 微信公众号服务
└── MP 微信公众号服务