package com.cool.store.service;


import com.cool.store.context.LoginUserInfo;
import com.cool.store.dao.MatterConfigDAO;
import com.cool.store.entity.MatterConfigDO;
import com.cool.store.request.notice.MatterConfigAddRequest;
import com.cool.store.request.notice.MatterConfigQueryRequest;
import com.cool.store.userholder.CurrentUser;
import com.cool.store.vo.notice.MatterAndMatterDetailVO;
import com.github.pagehelper.PageInfo;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author suzhuhong
 * @Date 2025/7/24 15:21
 * @Version 1.0
 */
public interface MatterConfigService {


    /**
     * 新增配置
     * @param request
     * @param currentUser
     * @return
     */
    int addMatterConfig(MatterConfigAddRequest request, LoginUserInfo currentUser);

    /**
     * 编辑
     * @param request
     * @param currentUser
     * @return
     */
    int editMatterConfig(MatterConfigAddRequest request, LoginUserInfo currentUser);

    /**
     * 删除配置
     * @param ids
     * @param currentUser
     * @return
     */
    Boolean deleteMatterConfig(List<Long> ids, LoginUserInfo currentUser);


    /**
     * 查询配置
     * @param request
     * @return
     */
    PageInfo<MatterAndMatterDetailVO> listByCondition(MatterConfigQueryRequest request);


}
