|
@@ -13,6 +13,11 @@ type DocumentController struct {
|
|
|
BaseController
|
|
BaseController
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+type NoticeDocument struct {
|
|
|
|
|
+ ColName string `json:"colName"`
|
|
|
|
|
+ RangeType string `json:"RangeType"`
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// @Title 获取文档管理列表 DocumentInfo
|
|
// @Title 获取文档管理列表 DocumentInfo
|
|
|
// @Description get user by token
|
|
// @Description get user by token
|
|
|
// @Success 200 {object} models.Userblood
|
|
// @Success 200 {object} models.Userblood
|
|
@@ -72,10 +77,13 @@ func (this *DocumentController) GetDocumentNameAndTime() {
|
|
|
// @Title 获取文件名和创建时间首页
|
|
// @Title 获取文件名和创建时间首页
|
|
|
// @Description get Name,CreateOn
|
|
// @Description get Name,CreateOn
|
|
|
// @Success 200 {object} models.Userblood
|
|
// @Success 200 {object} models.Userblood
|
|
|
-// @router /getdocumentnameandtimelogin [get]
|
|
|
|
|
|
|
+// @router /getdocumentnameandtimelogin [post]
|
|
|
func (this *DocumentController) GetDocumentNameAndTimeLogin() {
|
|
func (this *DocumentController) GetDocumentNameAndTimeLogin() {
|
|
|
- colName := this.GetString("colName")
|
|
|
|
|
- rangeType := this.GetString("RangeType")
|
|
|
|
|
|
|
+ var noticeDocument NoticeDocument
|
|
|
|
|
+ var jsonBlob = this.Ctx.Input.RequestBody
|
|
|
|
|
+ json.Unmarshal(jsonBlob, ¬iceDocument)
|
|
|
|
|
+ colName := noticeDocument.ColName
|
|
|
|
|
+ rangeType := noticeDocument.RangeType
|
|
|
|
|
|
|
|
svc := documentmanage.GetDocumentmanageService(utils.DBE)
|
|
svc := documentmanage.GetDocumentmanageService(utils.DBE)
|
|
|
var list []documentmanage.DocumentNameTimeInfo
|
|
var list []documentmanage.DocumentNameTimeInfo
|