开发起步

# 开发起步

# 项目结构

  • framework
    • IGeekFan.Localization.FreeSql:使用FreeSql存储本地化数据
  • identityserver4
    • LinCms.IdentityServer4:使用id4授权登录
  • src
    • LinCms.Web:接口API(ASP.NET Core)、中间件,权限验证
    • LinCms.Application:应用服务
    • LinCms.Application.Contracts:DTO,数据传输对象,应用服务接口
    • LinCms.Infrastructure:基础设施,数据库持久性的操作,仓储接口的实现
    • LinCms.Core:该应用的核心,实体类,通用操作类,AOP扩展,分页对象,基础依赖对象接口,时间扩展方法,当前用户信息,异常类,值对象,仓储接口
    • LinCms.Plugins 使用单项目实现某个业务的扩展,不需要主要项目结构,可暂时忽略。
  • test
    • LinCms.Test:对仓储,应用服务或工具类进行测试
├─framework
│  └─src
│      └─IGeekFan.Localization.FreeSql
├─identityserver4
│  └─LinCms.IdentityServer4
│      ├─Controllers
│      ├─IdentityServer4
├─src
│  ├─LinCms.Application
│  │  ├─Cms
│  │  │  ├─Admin
│  │  │  ├─Files
│  │  │  ├─Groups
│  │  │  ├─Logs
│  │  │  ├─Permissions
│  │  │  ├─Settings
│  │  │  └─Users
│  ├─LinCms.Application.Contracts
│  │  ├─Cms
│  │  │  ├─Account
│  │  │  ├─Admins
│  │  │  │  └─Dtos
│  │  │  ├─Files
│  │  │  │  └─Dtos
│  │  │  ├─Groups
│  │  │  │  └─Dtos
│  │  │  ├─Logs
│  │  │  │  └─Dtos
│  │  │  ├─Permissions
│  │  │  │  └─Dtos
│  │  │  ├─Settings
│  │  │  │  └─Dtos
│  │  │  └─Users
│  │  │      └─Dtos
│  ├─LinCms.Core
│  │  ├─Aop
│  │  ├─Common
│  │  ├─Data
│  │  │  └─Enums
│  │  ├─Dependency
│  │  ├─Entities
│  │  │  └─Settings
│  │  ├─Exceptions
│  │  ├─Extensions
│  │  ├─IRepositories
│  │  ├─LinCms
│  │  │  └─Core
│  │  ├─Middleware
│  │  └─Security
│  ├─LinCms.Infrastructure
│  │  └─Repositories
│  ├─LinCms.Plugins
│  │  └─Poem
│  │      ├─AutoMapper
│  │      ├─Controllers
│  │      └─Models
│  └─LinCms.Web
│      ├─Configs
│      ├─Controllers
│      │  ├─Cms
│      ├─Data
│      │  └─Authorization
│      ├─Properties
│      ├─SnakeCaseQuery
│      ├─Uow
│      ├─Utils
│      └─wwwroot
└─test
    └─LinCms.Test
        ├─Controller
        │  ├─Cms
        ├─Properties
        ├─Service
        │  └─Cms
        └─Utils
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75

# 相关技术

# FreeSql

# IdentityServer4