- 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>
37 lines
1.1 KiB
Java
37 lines
1.1 KiB
Java
package com.sb.web.board.mapper;
|
|
|
|
import com.sb.web.board.domain.Post;
|
|
import com.sb.web.board.dto.PostSummary;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.List;
|
|
|
|
@Mapper
|
|
public interface PostMapper {
|
|
|
|
List<PostSummary> findPage(@Param("offset") int offset,
|
|
@Param("size") int size,
|
|
@Param("tag") String tag,
|
|
@Param("keyword") String keyword,
|
|
@Param("searchType") String searchType);
|
|
|
|
long countPage(@Param("tag") String tag,
|
|
@Param("keyword") String keyword,
|
|
@Param("searchType") String searchType);
|
|
|
|
Post findById(@Param("id") Long id);
|
|
|
|
int insert(Post post);
|
|
|
|
int update(Post post);
|
|
|
|
int delete(@Param("id") Long id);
|
|
|
|
int increaseViewCount(@Param("id") Long id);
|
|
|
|
int updateBlocked(@Param("id") Long id,
|
|
@Param("blocked") boolean blocked,
|
|
@Param("blockReason") String blockReason);
|
|
}
|