package com.ruoyi.system.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.UserMargin;

/**
 * usermarginMapper接口
 * 
 * @author ruoyi
 * @date 2023-08-03
 */
public interface UserMarginMapper  extends BaseMapper<UserMargin>
{
    /**
     * 查询usermargin
     * 
     * @param id usermargin主键
     * @return usermargin
     */
    public UserMargin selectUserMarginById(Long id);

    /**
     * 查询usermargin列表
     * 
     * @param userMargin usermargin
     * @return usermargin集合
     */
    public List<UserMargin> selectUserMarginList(UserMargin userMargin);

    /**
     * 新增usermargin
     * 
     * @param userMargin usermargin
     * @return 结果
     */
    public int insertUserMargin(UserMargin userMargin);

    /**
     * 修改usermargin
     * 
     * @param userMargin usermargin
     * @return 结果
     */
    public int updateUserMargin(UserMargin userMargin);

    /**
     * 删除usermargin
     * 
     * @param id usermargin主键
     * @return 结果
     */
    public int deleteUserMarginById(Long id);

    /**
     * 批量删除usermargin
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteUserMarginByIds(Long[] ids);
}
