Updata:调整接口
This commit is contained in:
parent
8954360414
commit
36905994f9
@ -114,7 +114,7 @@ func Edit(ctx *gin.Context) {
|
|||||||
|
|
||||||
func Get(ctx *gin.Context) {
|
func Get(ctx *gin.Context) {
|
||||||
var req pressreleases.GetReq
|
var req pressreleases.GetReq
|
||||||
if err := ctx.ShouldBindJSON(&req); err != nil {
|
if err := ctx.ShouldBindQuery(&req); err != nil {
|
||||||
service.Error(ctx, err)
|
service.Error(ctx, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user