|
@@ -1,9 +1,10 @@
|
|
|
package models
|
|
|
|
|
|
import (
|
|
|
+ "time"
|
|
|
+
|
|
|
"github.com/beego/beego/v2/client/orm"
|
|
|
"github.com/rdlucklib/rdluck_tools/paging"
|
|
|
- "time"
|
|
|
)
|
|
|
|
|
|
type EnglishReport struct {
|
|
@@ -31,6 +32,7 @@ type EnglishReport struct {
|
|
|
ReportCode string `description:"报告唯一编码"`
|
|
|
Pv int `description:"Pv"`
|
|
|
PvEmail int `description:"邮箱PV"`
|
|
|
+ UvEmail uint `description:"邮箱UV"` //分享邮箱的UV
|
|
|
EmailState int `description:"群发邮件状态: 0-未发送; 1-已发送"`
|
|
|
Overview string `description:"英文概述部分"`
|
|
|
KeyTakeaways string `description:"关键点"`
|
|
@@ -77,12 +79,12 @@ type EditEnglishReportReq struct {
|
|
|
}
|
|
|
|
|
|
type EditEnglishReportFromPolicyReq struct {
|
|
|
- ReportId int64 `description:"报告id"`
|
|
|
- Title string `description:"标题"`
|
|
|
- Abstract string `description:"摘要"`
|
|
|
- Author string `description:"作者"`
|
|
|
- Frequency string `description:"频度"`
|
|
|
- CreateTime string `description:"创建时间"`
|
|
|
+ ReportId int64 `description:"报告id"`
|
|
|
+ Title string `description:"标题"`
|
|
|
+ Abstract string `description:"摘要"`
|
|
|
+ Author string `description:"作者"`
|
|
|
+ Frequency string `description:"频度"`
|
|
|
+ CreateTime string `description:"创建时间"`
|
|
|
//Overview string `description:"英文概述部分"`
|
|
|
}
|
|
|
type EditEnglishReportResp struct {
|
|
@@ -112,7 +114,6 @@ type ElasticEnglishReportDetail struct {
|
|
|
Overview string `description:"英文概述部分"`
|
|
|
}
|
|
|
|
|
|
-
|
|
|
type EnglishReportDetail struct {
|
|
|
Id int `orm:"column(id)" description:"报告Id"`
|
|
|
AddType int `description:"新增方式:1:新增报告,2:继承报告"`
|
|
@@ -182,7 +183,7 @@ type EnglishReportListResp struct {
|
|
|
Paging *paging.PagingItem `description:"分页数据"`
|
|
|
}
|
|
|
|
|
|
-//删除报告
|
|
|
+// 删除报告
|
|
|
func DeleteEnglishReport(reportIds int) (err error) {
|
|
|
o := orm.NewOrmUsingDB("rddp")
|
|
|
sql := ` DELETE FROM english_report WHERE id =? `
|
|
@@ -190,7 +191,6 @@ func DeleteEnglishReport(reportIds int) (err error) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-
|
|
|
type EnglishClassifyList struct {
|
|
|
Id int `orm:"column(id);pk"`
|
|
|
ClassifyName string `description:"分类名称"`
|
|
@@ -210,7 +210,6 @@ type EnglishClassifyListResp struct {
|
|
|
Paging *paging.PagingItem `description:"分页数据"`
|
|
|
}
|
|
|
|
|
|
-
|
|
|
// Update 更新
|
|
|
func (item *EnglishReport) Update(cols []string) (err error) {
|
|
|
o := orm.NewOrmUsingDB("rddp")
|