Commit 0b9ddf4e by BetterXT

modify group dto name

parent f9fb2a60
package io.better.toutiao.api.advertisingdelivery; package io.better.toutiao.api.advertisingdelivery;
import io.better.toutiao.dto.BaseRespDTO; import io.better.toutiao.dto.BaseRespDTO;
import io.better.toutiao.dto.resp.AdvertisingGroupReqDTO; import io.better.toutiao.dto.delivery.group.AdvertisingGroupOutDTO;
import io.better.toutiao.dto.resp.AdvertisingGroupRespDTO; import io.better.toutiao.dto.delivery.group.AdvertisingGroupInDTO;
import io.better.toutiao.dto.status.UpdateStatusDTO; import io.better.toutiao.dto.status.UpdateStatusDTO;
import org.springframework.cloud.netflix.feign.FeignClient; import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -39,7 +39,7 @@ public interface AdvertisingGroupApi { ...@@ -39,7 +39,7 @@ public interface AdvertisingGroupApi {
* @return advertising group * @return advertising group
*/ */
@GetMapping(value = "/get") @GetMapping(value = "/get")
BaseRespDTO<AdvertisingGroupRespDTO> getAdvertisingGroup(@RequestHeader("Access-Token") String accessToken, BaseRespDTO<AdvertisingGroupInDTO> getAdvertisingGroup(@RequestHeader("Access-Token") String accessToken,
@RequestParam("advertiser_id") Long advertiserId, @RequestParam("advertiser_id") Long advertiserId,
@RequestParam(value = "page", defaultValue = "1", required = false) Integer page, @RequestParam(value = "page", defaultValue = "1", required = false) Integer page,
@RequestParam(value = "page_size", defaultValue = "20", required = false) Integer pageSize, @RequestParam(value = "page_size", defaultValue = "20", required = false) Integer pageSize,
...@@ -50,23 +50,23 @@ public interface AdvertisingGroupApi { ...@@ -50,23 +50,23 @@ public interface AdvertisingGroupApi {
* 广告投放-为某广告主创建广告组信息 * 广告投放-为某广告主创建广告组信息
* *
* @param accessToken 访问凭证 * @param accessToken 访问凭证
* @param advertisingGroupReqDTO 创建信息 * @param advertisingGroupOutDTO 创建信息
* @return the list * @return the list
*/ */
@PostMapping(value = "/create") @PostMapping(value = "/create")
BaseRespDTO<Long> createAdvertisingGroup(@RequestHeader("Access-Token") String accessToken, BaseRespDTO<Long> createAdvertisingGroup(@RequestHeader("Access-Token") String accessToken,
@RequestBody AdvertisingGroupReqDTO advertisingGroupReqDTO); @RequestBody AdvertisingGroupOutDTO advertisingGroupOutDTO);
/** /**
* 广告投放-修改某广告主的广告组信息 * 广告投放-修改某广告主的广告组信息
* *
* @param accessToken 访问凭证 * @param accessToken 访问凭证
* @param advertisingGroupReqDTO 更新信息 * @param advertisingGroupOutDTO 更新信息
* @return the list * @return the list
*/ */
@PostMapping(value = "/update") @PostMapping(value = "/update")
BaseRespDTO<Long> updateAdvertisingGroup(@RequestHeader("Access-Token") String accessToken, BaseRespDTO<Long> updateAdvertisingGroup(@RequestHeader("Access-Token") String accessToken,
@RequestBody AdvertisingGroupReqDTO advertisingGroupReqDTO); @RequestBody AdvertisingGroupOutDTO advertisingGroupOutDTO);
/** /**
* 广告投放-修改某广告主的广告组状态信息 * 广告投放-修改某广告主的广告组状态信息
......
package io.better.toutiao.dto.delivery.group;
import lombok.Data;
/**
* @author better create in 2019-04-29 11:15
*/
@Data
public class AdvertisingGroupDTO {
}
package io.better.toutiao.dto.resp; package io.better.toutiao.dto.delivery.group;
import io.better.toutiao.dto.resp.PageRespDTO;
import lombok.Data; import lombok.Data;
/** /**
* @author better create in 2019-04-29 14:21 * @author better create in 2019-04-29 14:21
*/ */
@Data @Data
public class AdvertisingGroupRespDTO { public class AdvertisingGroupInDTO {
/** /**
* 广告组ID * 广告组ID
......
package io.better.toutiao.dto.resp; package io.better.toutiao.dto.delivery.group;
import io.better.toutiao.dto.BaseDTO; import io.better.toutiao.dto.BaseDTO;
import lombok.Data; import lombok.Data;
...@@ -9,7 +9,7 @@ import lombok.EqualsAndHashCode; ...@@ -9,7 +9,7 @@ import lombok.EqualsAndHashCode;
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
public class AdvertisingGroupReqDTO extends BaseDTO { public class AdvertisingGroupOutDTO extends BaseDTO {
/** /**
* 广告组名称 * 广告组名称
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment