파일 업로드기능 완료

This commit is contained in:
2025-06-03 19:10:07 +09:00
parent e609a8ce52
commit eb0addf4e3
20 changed files with 4501 additions and 27 deletions
+5 -3
View File
@@ -198,7 +198,7 @@ exports.createClub = async (req, res) => {
if (basicPlan) {
const startDate = new Date();
const endDate = new Date();
endDate.setMonth(endDate.getMonth() + 1); // 1개월 추가
endDate.setFullYear(endDate.getFullYear() + 1); // 1 추가
await require('../models').ClubSubscription.create({
clubId: newClub.id,
@@ -387,7 +387,7 @@ exports.getClubMembers = async (req, res) => {
// 클럽 회원 추가
exports.addClubMember = async (req, res) => {
try {
const { clubId, userId, name, gender, memberType, email, phone } = req.body;
const { clubId, userId, name, gender, memberType, email, phone, handicap, status } = req.body;
if (!clubId || !name || !gender) {
return res.status(400).json({ message: '필수 정보가 누락되었습니다.' });
@@ -406,7 +406,9 @@ exports.addClubMember = async (req, res) => {
gender,
memberType: memberType || '준회원',
email,
phone
phone,
handicap,
status: status || 'active'
});
// 클럽의 회원 수 업데이트