package com.fuint.common.service; import com.fuint.common.param.LookWorkPage; import com.fuint.framework.exception.BusinessCheckException; import com.fuint.framework.pagination.PaginationResponse; import com.fuint.repository.model.MtLookWork; import java.util.List; import java.util.Map; /** * 看看功能业务接口 * * Created by Codex */ public interface LookService { PaginationResponse> queryWorkListForAdmin(LookWorkPage page) throws BusinessCheckException; PaginationResponse> queryWorkListForClient(Integer merchantId, Integer storeId, Integer userId, Integer page, Integer pageSize, boolean onlyMine) throws BusinessCheckException; Map getWorkDetail(Integer workId, Integer userId) throws BusinessCheckException; Map getWorkDetailForAdmin(Integer workId) throws BusinessCheckException; MtLookWork saveWork(Integer merchantId, Integer storeId, Integer userId, String title, String description, List images, String operator) throws BusinessCheckException; void removeWork(Integer workId, Integer userId, String operator) throws BusinessCheckException; PaginationResponse> queryCommentList(Integer workId, Integer page, Integer pageSize, Integer userId) throws BusinessCheckException; Map saveComment(Integer workId, Integer userId, String content, List images, String operator) throws BusinessCheckException; Map toggleWorkLike(Integer workId, Integer userId, Integer merchantId, Integer storeId) throws BusinessCheckException; Map toggleCommentLike(Integer commentId, Integer userId, Integer merchantId, Integer storeId) throws BusinessCheckException; void updateWorkStatus(Integer workId, String status, String operator, Integer merchantId) throws BusinessCheckException; }