Compare commits
No commits in common. "b59f4e9395d7e680f92eb679a80d958bc61f500a" and "cc295e64b5231614288f6e3d539ca30776589ce0" have entirely different histories.
b59f4e9395
...
cc295e64b5
@ -122,10 +122,6 @@ type GetSecFilingsData struct {
|
||||
IsSelect bool `json:"isSelect"`
|
||||
}
|
||||
type GetSecFilingsResp struct {
|
||||
Total int `json:"total"`
|
||||
Data []*GetSecFilingsResult `json:"data"`
|
||||
}
|
||||
type GetSecFilingsResult struct {
|
||||
//Symbol string `json:"symbol"`
|
||||
//Cik string `json:"cik"`
|
||||
FilingDate string `json:"filingDate"`
|
||||
@ -183,10 +179,7 @@ func GetSecFilings(c *gin.Context) {
|
||||
service.Error(c, err)
|
||||
return
|
||||
}
|
||||
var data = GetSecFilingsResp{
|
||||
Total: 0,
|
||||
Data: make([]*GetSecFilingsResult, 0),
|
||||
}
|
||||
var data []*GetSecFilingsResp
|
||||
for _, v := range result {
|
||||
res, err := service.SecFilingProvider.IsSecFilingExist(c, &secFilings.IsSecFilingExistReq{
|
||||
FilingDate: req.FilingDate,
|
||||
@ -197,13 +190,12 @@ func GetSecFilings(c *gin.Context) {
|
||||
service.Error(c, err)
|
||||
return
|
||||
}
|
||||
data.Data = append(data.Data, &GetSecFilingsResult{
|
||||
data = append(data, &GetSecFilingsResp{
|
||||
FilingDate: req.FilingDate,
|
||||
Form: v.FormType,
|
||||
FileLink: v.FinalLink,
|
||||
IsSelect: res.Exist,
|
||||
})
|
||||
data.Total++
|
||||
}
|
||||
service.Success(c, data)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user