Commit 0b9ddf4e by BetterXT

modify group dto name

parent f9fb2a60
package io.better.toutiao.api.advertisingdelivery;
import io.better.toutiao.dto.BaseRespDTO;
import io.better.toutiao.dto.resp.AdvertisingGroupReqDTO;
import io.better.toutiao.dto.resp.AdvertisingGroupRespDTO;
import io.better.toutiao.dto.delivery.group.AdvertisingGroupOutDTO;
import io.better.toutiao.dto.delivery.group.AdvertisingGroupInDTO;
import io.better.toutiao.dto.status.UpdateStatusDTO;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;
......@@ -39,34 +39,34 @@ public interface AdvertisingGroupApi {
* @return advertising group
*/
@GetMapping(value = "/get")
BaseRespDTO<AdvertisingGroupRespDTO> getAdvertisingGroup(@RequestHeader("Access-Token") String accessToken,
@RequestParam("advertiser_id") Long advertiserId,
@RequestParam(value = "page", defaultValue = "1", required = false) Integer page,
@RequestParam(value = "page_size", defaultValue = "20", required = false) Integer pageSize,
@RequestParam(value = "filtering", required = false) Map<String, Object> filtering,
@RequestParam(value = "fields", required = false) String[] fields);
BaseRespDTO<AdvertisingGroupInDTO> getAdvertisingGroup(@RequestHeader("Access-Token") String accessToken,
@RequestParam("advertiser_id") Long advertiserId,
@RequestParam(value = "page", defaultValue = "1", required = false) Integer page,
@RequestParam(value = "page_size", defaultValue = "20", required = false) Integer pageSize,
@RequestParam(value = "filtering", required = false) Map<String, Object> filtering,
@RequestParam(value = "fields", required = false) String[] fields);
/**
* 广告投放-为某广告主创建广告组信息
*
* @param accessToken 访问凭证
* @param advertisingGroupReqDTO 创建信息
* @param advertisingGroupOutDTO 创建信息
* @return the list
*/
@PostMapping(value = "/create")
BaseRespDTO<Long> createAdvertisingGroup(@RequestHeader("Access-Token") String accessToken,
@RequestBody AdvertisingGroupReqDTO advertisingGroupReqDTO);
@RequestBody AdvertisingGroupOutDTO advertisingGroupOutDTO);
/**
* 广告投放-修改某广告主的广告组信息
*
* @param accessToken 访问凭证
* @param advertisingGroupReqDTO 更新信息
* @param advertisingGroupOutDTO 更新信息
* @return the list
*/
@PostMapping(value = "/update")
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;
/**
* @author better create in 2019-04-29 14:21
*/
@Data
public class AdvertisingGroupRespDTO {
public class AdvertisingGroupInDTO {
/**
* 广告组ID
......
package io.better.toutiao.dto.resp;
package io.better.toutiao.dto.delivery.group;
import io.better.toutiao.dto.BaseDTO;
import lombok.Data;
......@@ -9,7 +9,7 @@ import lombok.EqualsAndHashCode;
*/
@Data
@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