Skip to content

TeamGaGaGaGa/GaGaGaGaServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

서비스 소개

서비스 이름 : 갸가갸가

서비스 한 줄 소개 : 솝트다운 질문으로 만드는 첫인상 기록 서비스

image Android - 70 Android - 76

Models.

  • /models/Friends.ts
import { IFriends } from "../interfaces/IFriends";

const FriendsSchema = new mongoose.Schema({
    friendsList : [
        {
            name: {
                type: String,
                required: true,
            },
            part: {
                type: String,
                required: true,
            },
            ybob: {
                type: String,
                required: true,
            },
            mbti: {
                type: String,
                required: true,
            },
            image: {
                type: String,
                required: true,
            },
            place: {
                type: String,
                required: true,
            },
            face: {
                type: String,
                required: true,
            },
            banmo: {
                type: Boolean,
                required: true,
            },
            answer1: {
                type: String,
                required: true,
            },
            answer2: {
                type: String,
                required: true,
            },
            tmi: {
              type: String
            }
        }
    ]
});

export default mongoose.model<IFriends & mongoose.Document>("Friends", FriendsSchema);
  • /interfaces/IFriends.ts
import { IFriendsList } from "./IFriendsList";

export interface IFriends {
    friendsList : [IFriendsList];
}

export interface IFriendsInputDTO {
    friendsList : IFriendsList;
}
  • /interfaces/IFriendslist.ts
export interface IFriendsList {
    name : string;
    part : string;
    ypob : string;
    mbti : string;
    image : string;
    place : string;
    face : string;
    banmo: Boolean;
    answer1: string;
    answer2: string;
    tmi? : string;
}

API 명세서 초안

API 명세서 최종

About

우리는 가가가가의 서버를 책임진다.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published