Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
toutiao-api
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
chenmingyang
toutiao-api
Commits
0b9ddf4e
Commit
0b9ddf4e
authored
Apr 30, 2019
by
BetterXT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify group dto name
parent
f9fb2a60
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
26 deletions
+17
-26
AdvertisingGroupApi.java
.../toutiao/api/advertisingdelivery/AdvertisingGroupApi.java
+12
-12
AdvertisingGroupDTO.java
...etter/toutiao/dto/delivery/group/AdvertisingGroupDTO.java
+0
-10
AdvertisingGroupInDTO.java
...ter/toutiao/dto/delivery/group/AdvertisingGroupInDTO.java
+3
-2
AdvertisingGroupOutDTO.java
...er/toutiao/dto/delivery/group/AdvertisingGroupOutDTO.java
+2
-2
No files found.
src/main/java/io/better/toutiao/api/advertisingdelivery/AdvertisingGroupApi.java
View file @
0b9ddf4e
package
io
.
better
.
toutiao
.
api
.
advertisingdelivery
;
import
io.better.toutiao.dto.BaseRespDTO
;
import
io.better.toutiao.dto.
resp.AdvertisingGroupReq
DTO
;
import
io.better.toutiao.dto.
resp.AdvertisingGroupResp
DTO
;
import
io.better.toutiao.dto.
delivery.group.AdvertisingGroupOut
DTO
;
import
io.better.toutiao.dto.
delivery.group.AdvertisingGroupIn
DTO
;
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
<
AdvertisingGroup
Resp
DTO
>
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
<
AdvertisingGroup
In
DTO
>
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 advertisingGroup
Req
DTO 创建信息
* @param advertisingGroup
Out
DTO 创建信息
* @return the list
*/
@PostMapping
(
value
=
"/create"
)
BaseRespDTO
<
Long
>
createAdvertisingGroup
(
@RequestHeader
(
"Access-Token"
)
String
accessToken
,
@RequestBody
AdvertisingGroup
ReqDTO
advertisingGroupReq
DTO
);
@RequestBody
AdvertisingGroup
OutDTO
advertisingGroupOut
DTO
);
/**
* 广告投放-修改某广告主的广告组信息
*
* @param accessToken 访问凭证
* @param advertisingGroup
Req
DTO 更新信息
* @param advertisingGroup
Out
DTO 更新信息
* @return the list
*/
@PostMapping
(
value
=
"/update"
)
BaseRespDTO
<
Long
>
updateAdvertisingGroup
(
@RequestHeader
(
"Access-Token"
)
String
accessToken
,
@RequestBody
AdvertisingGroup
ReqDTO
advertisingGroupReq
DTO
);
@RequestBody
AdvertisingGroup
OutDTO
advertisingGroupOut
DTO
);
/**
* 广告投放-修改某广告主的广告组状态信息
...
...
src/main/java/io/better/toutiao/dto/delivery/group/AdvertisingGroupDTO.java
deleted
100644 → 0
View file @
f9fb2a60
package
io
.
better
.
toutiao
.
dto
.
delivery
.
group
;
import
lombok.Data
;
/**
* @author better create in 2019-04-29 11:15
*/
@Data
public
class
AdvertisingGroupDTO
{
}
src/main/java/io/better/toutiao/dto/
resp/AdvertisingGroupResp
DTO.java
→
src/main/java/io/better/toutiao/dto/
delivery/group/AdvertisingGroupIn
DTO.java
View file @
0b9ddf4e
package
io
.
better
.
toutiao
.
dto
.
res
p
;
package
io
.
better
.
toutiao
.
dto
.
delivery
.
grou
p
;
import
io.better.toutiao.dto.resp.PageRespDTO
;
import
lombok.Data
;
/**
* @author better create in 2019-04-29 14:21
*/
@Data
public
class
AdvertisingGroup
Resp
DTO
{
public
class
AdvertisingGroup
In
DTO
{
/**
* 广告组ID
...
...
src/main/java/io/better/toutiao/dto/
resp/AdvertisingGroupReq
DTO.java
→
src/main/java/io/better/toutiao/dto/
delivery/group/AdvertisingGroupOut
DTO.java
View file @
0b9ddf4e
package
io
.
better
.
toutiao
.
dto
.
res
p
;
package
io
.
better
.
toutiao
.
dto
.
delivery
.
grou
p
;
import
io.better.toutiao.dto.BaseDTO
;
import
lombok.Data
;
...
...
@@ -9,7 +9,7 @@ import lombok.EqualsAndHashCode;
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
public
class
AdvertisingGroup
Req
DTO
extends
BaseDTO
{
public
class
AdvertisingGroup
Out
DTO
extends
BaseDTO
{
/**
* 广告组名称
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment