post.db.ts 624 Bytes
Newer Older
Kim, MinGyu's avatar
Kim, MinGyu committed
1
2
3
4
5
import { PostType, Post } from "../models";

export const createPost = async (post: PostType) => {
    const newPost = await Post.create(post);
    return newPost;
6
7
8
};


Lee Soobeom's avatar
Lee Soobeom committed
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
export const checkTitleNull = async (
    title : string,

) => {

}

export const checkBodyNull = async (
    body : string,

) => {

}

export const getSubmitDate = async (
    date : string,

) => {

}

export const selectTheme = async (
    theme : string,
)  => {
    let user;
    if( theme != "테마" ) {
        
    }
}

export const selectCity = async (
    city : string,
) => {
    let user;
    if ( city != "도시" ) {
        
    }
}
47