Skip to content

Commit c6a3cef

Browse files
committed
style(post): add title and cover img
1 parent 0f548cc commit c6a3cef

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/_posts/api接口的一些设计原则和最佳实践.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
---
2+
title: api接口的一些设计原则和最佳实践
3+
date: 2024-07-21 08:30:59
4+
categories: '技术'
5+
tags: '接口'
6+
cover: https://ilikestudy.cn/oss/2024%2F07%2F21%2F-71ca5085b8f4317e07b01da0aeaa7da2--aaee8f.webp
7+
---
8+
9+
110
### 1. **单一职责原则(Single Responsibility Principle, SRP)**
211

312
- 每个模块或函数应该只负责一件事情。新增接口的职责就是接收新数据并插入数据库,而不是处理自动生成的字段。

0 commit comments

Comments
 (0)