24 changed files with 200 additions and 164 deletions
@ -0,0 +1,19 @@ |
|||||
|
package com.bnyer.common.core.dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Getter; |
||||
|
import lombok.Setter; |
||||
|
|
||||
|
|
||||
|
@Getter |
||||
|
@Setter |
||||
|
@ApiModel("公共素材库图片分页接收类") |
||||
|
public class CommonImgsPageDto extends BasePageDto { |
||||
|
|
||||
|
@ApiModelProperty(value="图片类型(0->头像;1->壁纸;2->插画)") |
||||
|
private String type; |
||||
|
|
||||
|
@ApiModelProperty(value="是否显示 (0->隐藏;1->显示)") |
||||
|
private String isShow; |
||||
|
} |
||||
@ -1,38 +1,39 @@ |
|||||
package com.bnyer.system.service; |
package com.bnyer.system.service; |
||||
|
|
||||
import com.bnyer.common.core.domain.CommonImgs; |
import com.bnyer.common.core.domain.CommonImgs; |
||||
|
import com.bnyer.common.core.dto.CommonImgsPageDto; |
||||
|
|
||||
import java.util.List; |
import java.util.List; |
||||
|
|
||||
public interface ICommonImgsService { |
public interface ICommonImgsService { |
||||
|
|
||||
/** |
/** |
||||
* 批量删除commonImgs |
* 批量删除公共素材库图片 |
||||
* @param ids ids |
* @param ids ids |
||||
* @return - |
* @return - |
||||
*/ |
*/ |
||||
int delete(List<Long> ids); |
int delete(List<Long> ids); |
||||
|
|
||||
/** |
/** |
||||
* 查询commonImgs分页 |
* 查询公共素材库图片分页 |
||||
* @param dto 分页对象 |
* @param dto 分页对象 |
||||
* @return - |
* @return - |
||||
*/ |
*/ |
||||
List<CommonImgs> queryPage(); |
List<CommonImgs> queryPage(CommonImgsPageDto dto); |
||||
|
|
||||
/** |
/** |
||||
* 查询commonImgs详情 |
* 批量变更显示状态 |
||||
* @param id 主键id |
* @param ids 主键ids |
||||
|
* @param status 状态 |
||||
* @return - |
* @return - |
||||
*/ |
*/ |
||||
CommonImgs queryDetails(Long id); |
int changeStatus(List<Long> ids, String status); |
||||
|
|
||||
/** |
/** |
||||
* 变更显示状态 |
* 新增公共素材库图片 |
||||
* @param id 主键id |
* @param imgUrls 公共素材库图片 |
||||
* @param status 状态 |
* @param type 类型 |
||||
* @return - |
|
||||
*/ |
*/ |
||||
int changeStatus(Long id, String status); |
void insert(List<String> imgUrls,String type); |
||||
|
|
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue