package incheon.com.userPageStrg.mapper;

import incheon.com.config.annotation.MainDB;
import incheon.com.userPageStrg.vo.UserPageStrgVO;
import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 사용자 페이지 저장 Mapper
 */
@org.egovframe.rte.psl.dataaccess.mapper.Mapper @incheon.com.config.annotation.MainDB
public interface UserPageStrgMapper {

    /**
     * 사용자 페이지 설정 조회
     * @param userId 사용자 ID
     * @param pageCd 페이지 코드
     * @return 사용자 페이지 설정 VO
     */
    UserPageStrgVO selectUserPageStrg(@Param("userId") String userId, @Param("pageCd") String pageCd);

    /**
     * 사용자 페이지 설정 등록
     * @param vo 사용자 페이지 설정 VO
     * @return 등록 건수
     */
    int insertUserPageStrg(UserPageStrgVO vo);

    /**
     * 사용자 페이지 설정 수정
     * @param vo 사용자 페이지 설정 VO
     * @return 수정 건수
     */
    int updateUserPageStrg(UserPageStrgVO vo);

    /**
     * 사용자 페이지 설정 삭제
     * @param userId 사용자 ID
     * @param pageCd 페이지 코드
     * @return 삭제 건수
     */
    int deleteUserPageStrg(@Param("userId") String userId, @Param("pageCd") String pageCd);
}
