1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package dto
import (
oModels "go-admin/app/operate/models"
"go-admin/common/dto"
)
type OrgNewsGetPageReq struct {
dto.Pagination `search:"-"`
}
type OrgNewsGetPageReply struct {
OrgAd []oModels.OrgAd `json:"orgAd"`
OrgNews []OrgNews `json:"orgNews"`
}
type OrgNews struct {
Id int `json:"id"`
NewsImg string `json:"newsImg"`
NewsTitle string `json:"newsTitle"`
NewsContent string `json:"newsContent"`
CreatedAt string `json:"createdAt"`
CommentCount string `json:"commentCount"`
}
type OrgNewsComment struct {
Id int `json:"id"`
NewsId string `json:"newsId"`
PlayerId string `json:"playerId"`
PlayerUserId string `json:"playerUserId"`
Comment string `json:"comment"`
Likes string `json:"likes"`
CreatedAt string `json:"createdAt"`
}
func (m *OrgNewsGetPageReq) GetNeedSearch() interface{} {
return *m
}
// OrgNewsGetReq 功能获取请求参数
type OrgNewsGetReq struct {
Id int `uri:"id"`
}
type OrgNewsGetReply struct {
OrgNews OrgNews `json:"orgNews"`
CommentList []OrgNewsComment `json:"commentList"`
}
func (s *OrgNewsGetReq) GetId() interface{} {
return s.Id
}
// OrgNewsDeleteReq 功能删除请求参数
type OrgNewsDeleteReq struct {
Ids []int `json:"ids"`
}
func (s *OrgNewsDeleteReq) GetId() interface{} {
return s.Ids
}