Browse Source

마크다운 수정

master
junh_eee(이준희) 8 months ago
parent
commit
426f875b04
  1. 37
      src/modules/NAMING.md

37
src/modules/NAMING.md

@ -3,12 +3,12 @@
```bash ```bash
📦 module 📦 module
┣ 📂 _sample ┣ 📂 _sample
┃┣ 📂 actions Action 타입, 함수 ┃ ┣ 📂 actions Action 타입, 함수
┃┣ 📂 apis Api ┃ ┣ 📂 apis Api
┃┣ 📂 models interface, Type ┃ ┣ 📂 models interface, Type
┃┣ 📂 reducers Reducer 함수 ┃ ┣ 📂 reducers Reducer 함수
┃┣ 📂 sagas Saga 함수 ┃ ┣ 📂 sagas Saga 함수
┃┣ 📜 index.ts ┣ 📜 index.ts
``` ```
<br> <br>
@ -21,18 +21,21 @@
- 구분자는 소문자로 작성한다. - 구분자는 소문자로 작성한다.
- 동사를 먼저 작성한다. - 동사를 먼저 작성한다.
- 비동기 요청 액션이 아닐 땐 `CLIENT_` 로 시작한다. - 비동기 요청 액션이 아닐 땐 `CLIENT_` 로 시작한다.
> > 기본 규칙
> > > 기본 규칙
> - 목록 조회 `GET_[주체]_LIST` >
> - 상세 조회 `GET_[주체]_DETAIL` > - 목록 조회 `GET_[주체]_LIST`
> - 생성/추가 `CREATE_[주체]` > - 상세 조회 `GET_[주체]_DETAIL`
> - 수정/변경 `UPDATE_[주체]` > - 생성/추가 `CREATE_[주체]`
> - 삭제 `DELETE_[주체]` > - 수정/변경 `UPDATE_[주체]`
> - 삭제 `DELETE_[주체]`
> > 동사 > > 동사
> >
> - SET, FIND, SEND, CHECK, REGISTER ... > - SET, FIND, SEND, CHECK, REGISTER ...
> > 명사 >
> > 명사
>
> - LIST, DETAIL, LOG, APPROVAL ... > - LIST, DETAIL, LOG, APPROVAL ...
```bash ```bash
@ -69,8 +72,8 @@ export const clientMapType = createAction(CLIENT_MAPTYPE)();
```bash ```bash
export const sampleAPI = { export const sampleAPI = {
getDroneList: async () => { getDroneList: async () => {
return await axios.get('api/bas/dron/list....'); return await axios.get('api/bas/dron/list....');
} }
} }
``` ```
@ -145,7 +148,7 @@ export function* sampleSaga() {
<br> <br>
## 📜 index ## 📜 index.ts
```bash ```bash
export * from './actions'; export * from './actions';

Loading…
Cancel
Save