50 lines
1.4 KiB
Java
50 lines
1.4 KiB
Java
|
|
package com.newyetai.usercenter.annex.service;
|
||
|
|
|
||
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||
|
|
import com.newyetai.usercenter.annex.dto.UserAnnexCreateDTO;
|
||
|
|
import com.newyetai.usercenter.annex.dto.UserAnnexDTO;
|
||
|
|
import com.newyetai.usercenter.annex.dto.UserAnnexOperateDTO;
|
||
|
|
import com.newyetai.usercenter.annex.dto.UserAnnexPageQueryDTO;
|
||
|
|
import com.newyetai.usercenter.annex.entity.UserAnnex;
|
||
|
|
import org.springframework.validation.annotation.Validated;
|
||
|
|
|
||
|
|
import javax.validation.Valid;
|
||
|
|
import javax.validation.groups.Default;
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* <p>
|
||
|
|
* 用户附件表 服务类
|
||
|
|
* </p>
|
||
|
|
*
|
||
|
|
* @author Carlye
|
||
|
|
* @since 2021-01-12
|
||
|
|
*/
|
||
|
|
@Validated(Default.class)
|
||
|
|
public interface IUserAnnexService extends IService<UserAnnex> {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 创建用户附件
|
||
|
|
*
|
||
|
|
* @param userAnnexCreateDTO 用户附件创建dto
|
||
|
|
* @return {@link UserAnnexDTO}
|
||
|
|
* @throws RuntimeException 运行时异常
|
||
|
|
*/
|
||
|
|
UserAnnexDTO create(@Valid UserAnnexCreateDTO userAnnexCreateDTO) throws RuntimeException;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 用户附件分页查询
|
||
|
|
*
|
||
|
|
* @param userAnnexPageQueryDTO 用户附件页面查询dto
|
||
|
|
* @return {@link List<UserAnnexDTO>}
|
||
|
|
*/
|
||
|
|
List<UserAnnexDTO> page(UserAnnexPageQueryDTO userAnnexPageQueryDTO);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 修改用户福建
|
||
|
|
* @param userAnnexCreateDTO 用户附件操作dto
|
||
|
|
* @return 是否成功
|
||
|
|
*/
|
||
|
|
Boolean modify(UserAnnexOperateDTO userAnnexCreateDTO);
|
||
|
|
}
|