feat: 가계부·게시판 백엔드 API 구현

- com.sb.web 패키지로 재구성: account / auth / board / user / admin / common
- 가계부(account): 내역(필터), 계좌·순자산, 예산, 분류, 정기 거래, 투자 포트폴리오
  (종목·매매 이력, 이동평균 평단·실현/평가손익)
- MyBatis + MariaDB + Redis 세션, BCrypt
- 스키마 자동 초기화(db/*.sql, 멱등), 사용자별 데이터 격리(member_id)
- 문서: docs/BACKEND.md, .env.example

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ByungCheol
2026-05-31 15:43:09 +09:00
parent 9243a41385
commit 2a2f81dc32
121 changed files with 5899 additions and 31 deletions
@@ -0,0 +1,44 @@
package com.sb.web.account.dto;
import com.sb.web.account.domain.AccountEntry;
import lombok.Builder;
import lombok.Data;
import java.time.LocalDate;
import java.util.List;
/**
* 가계부 항목 응답 (소유자 ID 제외, 태그 이름 포함).
*/
@Data
@Builder
public class AccountEntryResponse {
private Long id;
private LocalDate entryDate;
private String type;
private String category;
private Long amount;
private String memo;
private Long walletId;
private String walletName;
private Long toWalletId;
private String toWalletName;
private List<String> tags;
public static AccountEntryResponse from(AccountEntry e, List<String> tags) {
return AccountEntryResponse.builder()
.id(e.getId())
.entryDate(e.getEntryDate())
.type(e.getType())
.category(e.getCategory())
.amount(e.getAmount())
.memo(e.getMemo())
.walletId(e.getWalletId())
.walletName(e.getWalletName())
.toWalletId(e.getToWalletId())
.toWalletName(e.getToWalletName())
.tags(tags)
.build();
}
}