Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

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

wants to merge 3 commits into from

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