kumakuma34 / b-side Goto Github PK
View Code? Open in Web Editor NEWB-Side Team 3 Writing Web Service
B-Side Team 3 Writing Web Service
Challenge 조회 API 구현
[기능]
Google OAuth 회원 가입 구현
notification이 저장되어야 하는 경우,
notificationService의 public void save(NotificationSaveDto saveDto) 호출 필요
NotificationSaveDto 필수 값은 해당 class 내의 bulider 참조
(필수 값 누락시, 컴파일 에러를 발생)
우선순위 높은 것들만 처리 할 예정 (세부 validation등 기타 스펙 다 out)
lombok builder를 활용해서
현재 challengeService.java에 있는 challenge Titile, detail validation check 밖으로 빼오기
`public Challenge addNewChallenge(ChallengeDto.AllInfo challengeDto) {
int title_len = ChallengeCode.CHALLENGE_TITLE_LENGTH.getVal();
int detail_len = ChallengeCode.CHALLENGE_DETAIL_LENGTH.getVal();
if(challengeDto.getChallengeTitle() == null || challengeDto.getChallengeTitle().equals("")){
throw new IllegalArgumentException("challenge title must not be null");
}
if(challengeDto.getChallengeTitle().length() > title_len){
throw new IllegalArgumentException("challenge title length must be under 39");
}
if(challengeDto.getChallengeDetail() == null || challengeDto.getChallengeDetail().equals("")){
throw new IllegalArgumentException("challenge detail must not be null");
}
if(challengeDto.getChallengeDetail().length() > detail_len){
throw new IllegalArgumentException("challenge detail length must be under 100");
}
Challenge challenge = challengeDto.toEntity();
return challengeRepository.save(challenge);
}`
// public List<Long> getArticleIdList() {
// return ArticleIdList;
// }
//
// public void setArticleIdList(List<Long> articleIdList) {
// ArticleIdList = articleIdList;
// }``
여기서 List 아티클 리스트 꼭 필요..?
Service에서 차라리 조회 탈 때 Article 디비에서 쭉 긁어와서 메모리에서 가지고있는게 나을것같은데
이렇게 되면 Article 등록할때마다 Member Table도 변경 같이해줘야될것같습니다..
응답 실패시, error code 및 desc 추가 필요
Member DB 설계/ 연동
badge 획득 logic
ex) like를 받은 경우,
BadgeService의 public BadgeDto checkAndGetBadge(BadgeSaveDto saveDto) method 호출해서 사용할 것
text/plain -> application/json 으로 response content-type 변경
유저 알람 사항 구현
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.