refactor(advertisement): 将广告相关ID类型由Integer改为Long
- 修改实体类Advertisement中id、type和position字段类型为Long - 同步更新AdvertisementController中删除接口参数类型为List<Long> - 调整AdvertisementListVO中id、type和position字段类型为Long - 更新AdvertisementSaveRequest中id、type和position字段类型为Long
This commit is contained in:
parent
bc44a74dcc
commit
6cd27fd045
|
|
@ -82,7 +82,7 @@ public class AdvertisementController extends BaseController{
|
|||
* @return 无
|
||||
*/
|
||||
@PostMapping("delete")
|
||||
public ApiResult<Void> deleteAdvertisement(@Valid @RequestBody @NotEmpty List<Integer> ids){
|
||||
public ApiResult<Void> deleteAdvertisement(@Valid @RequestBody @NotEmpty List<Long> ids){
|
||||
advertisementService.removeByIds(ids);
|
||||
return ApiResult.success();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,19 +14,19 @@ public class AdvertisementSaveRequest {
|
|||
/**
|
||||
* 广告id,新增时为空
|
||||
*/
|
||||
private Integer id;
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 广告类型
|
||||
*/
|
||||
@NotNull
|
||||
private Integer type;
|
||||
private Long type;
|
||||
|
||||
/**
|
||||
* 广告位置
|
||||
*/
|
||||
@NotNull
|
||||
private Integer position;
|
||||
private Long position;
|
||||
|
||||
/**
|
||||
* 轮播间隔
|
||||
|
|
|
|||
|
|
@ -14,12 +14,12 @@ public class AdvertisementListVO {
|
|||
/**
|
||||
* 广告id
|
||||
*/
|
||||
private Integer id;
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 广告类型
|
||||
*/
|
||||
private Integer type;
|
||||
private Long type;
|
||||
|
||||
/**
|
||||
* 广告类型名称
|
||||
|
|
@ -29,7 +29,7 @@ public class AdvertisementListVO {
|
|||
/**
|
||||
* 广告位置
|
||||
*/
|
||||
private Integer position;
|
||||
private Long position;
|
||||
|
||||
/**
|
||||
* 广告位置名称
|
||||
|
|
|
|||
|
|
@ -26,17 +26,17 @@ public class Advertisement implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 类别,字典值id
|
||||
*/
|
||||
private Integer type;
|
||||
private Long type;
|
||||
|
||||
/**
|
||||
* 位置,字典值id
|
||||
*/
|
||||
private Integer position;
|
||||
private Long position;
|
||||
|
||||
/**
|
||||
* 间隔,单位秒
|
||||
|
|
|
|||
Loading…
Reference in New Issue