Skip to content

[BMOL-28] POST v1/oneliner 구현#22

Open
SeongEon-Kim wants to merge 3 commits intomainfrom
BMOL-28
Open

[BMOL-28] POST v1/oneliner 구현#22
SeongEon-Kim wants to merge 3 commits intomainfrom
BMOL-28

Conversation

@SeongEon-Kim
Copy link
Collaborator

@SeongEon-Kim SeongEon-Kim commented May 28, 2023

return this._serviceName
}

async postOneliner(userId, book_id, title, authors, oneliner, color, top, left, font, font_size, bg_image_url){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parameter 의 validation 체크가 없네요

Comment on lines +22 to +31
const result = await onelinerService.postOneliner(userId, book_id,
title,
authors,
oneliner,
color,
top,
left,
font,
font_size,
bg_image_url);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이렇게 함수 parameter가 많은경우 object로 묶어서 전달하는게 좋아요

const result = await onelinerService.postOneliner({userId, book_id, title, authors, oneliner, color, top, left, font, font_size, bg_image_url});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants