|
|
|
|
package archiveapi
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"gin_server_admin/commonus"
|
|
|
|
|
"gin_server_admin/model/archivesmodel"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
//ID
|
|
|
|
|
|
|
|
|
|
// 文档接收列表
|
|
|
|
|
type archiveTypeListStruct struct {
|
|
|
|
|
commonus.PageSetLimt
|
|
|
|
|
ParentId int64 `json:"parentId"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 文档类型输出格式
|
|
|
|
|
type archiveTypeOutPut struct {
|
|
|
|
|
commonus.SetId
|
|
|
|
|
ColumnrName string `json:"columnr_name"` //栏目名称
|
|
|
|
|
Sort int `json:"sort"` // 排序
|
|
|
|
|
State bool `json:"state"` // 状态
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 添加栏目
|
|
|
|
|
type appArchiveType struct {
|
|
|
|
|
UID int64 `json:"uid"` //添加人
|
|
|
|
|
ParentId int64 `json:"parentId"` //父级
|
|
|
|
|
Title string `json:"title"` //标题
|
|
|
|
|
Sort int `json:"sort"` // 排序
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 状态修改
|
|
|
|
|
type archiveState struct {
|
|
|
|
|
commonus.SetId
|
|
|
|
|
State int `json:"state"` // 状态
|
|
|
|
|
IsDel int `json:"isdel"` // 是否强制删除
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 批量
|
|
|
|
|
type batchArchiveState struct {
|
|
|
|
|
commonus.BatchId
|
|
|
|
|
State int `json:"state"` // 状态
|
|
|
|
|
IsDel int `json:"isdel"` // 是否强制删除
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 修改栏目
|
|
|
|
|
type eiteArchiveCont struct {
|
|
|
|
|
commonus.SetId
|
|
|
|
|
appArchiveType
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 文档列表查询
|
|
|
|
|
type fileList struct {
|
|
|
|
|
commonus.PageSetLimt
|
|
|
|
|
ParentId int64 `json:"parentId"` //父级
|
|
|
|
|
ParentIdStr string `json:"parentIdStr"` //父级
|
|
|
|
|
Title string `json:"title"` //标题
|
|
|
|
|
ColumnId int64 `json:"columnId"` //栏目ID
|
|
|
|
|
GroupStruct
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 组织架构相关
|
|
|
|
|
type GroupStruct struct {
|
|
|
|
|
Group int64 `json:"group"` //集团
|
|
|
|
|
Factory int64 `json:"factory"` //分厂
|
|
|
|
|
Position int64 `json:"position"` //工段
|
|
|
|
|
Team int64 `json:"team"` //班组
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 文档列表返回结构
|
|
|
|
|
type callBackFilesList struct {
|
|
|
|
|
commonus.SetId
|
|
|
|
|
Title string `json:"title"` //标题
|
|
|
|
|
ParentColumnId int64 `json:"parentColumnId"` //父级栏目ID
|
|
|
|
|
ParentColumnTitle string `json:"parentColumnTitle"` //父级栏目标题
|
|
|
|
|
ColumnId int64 `json:"columnId"` //栏目ID
|
|
|
|
|
ColumnTitle string `json:"columnTitle"` //栏目标题
|
|
|
|
|
Scope int `json:"scope"` //可见范围
|
|
|
|
|
Reading int64 `json:"reading"` //阅读量
|
|
|
|
|
Comment int64 `json:"comment"` //评论数
|
|
|
|
|
Collect int64 `json:"collect"` //收藏数
|
|
|
|
|
Likes int64 `json:"like"` //点赞数
|
|
|
|
|
Tread int64 `json:"tread"` //踩
|
|
|
|
|
Score int64 `json:"score"` //综合评分
|
|
|
|
|
State bool `json:"state"` //状态
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 文档属性列表
|
|
|
|
|
type archiveFileAttr struct {
|
|
|
|
|
commonus.PageSetLimt
|
|
|
|
|
FileID int64 `json:"fileID"`
|
|
|
|
|
Type int `json:"type"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 文档属性列表输出
|
|
|
|
|
type archiveFileAttrOutPut struct {
|
|
|
|
|
archivesmodel.BookAttribute
|
|
|
|
|
Number string `json:"number"`
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
OutId string `json:"outID"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 文档评论属性列表输出
|
|
|
|
|
type archiveFileDiscussAttrOutPut struct {
|
|
|
|
|
archivesmodel.DiscussMsg
|
|
|
|
|
Number string `json:"number"`
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
UserJsonCont discussJson `json:"userJsonCont"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 评论人员json格式
|
|
|
|
|
type discussJson struct {
|
|
|
|
|
Numbers string `json:"numbers"`
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
Fenchang string `json:"fenchang"`
|
|
|
|
|
Gongduan string `json:"gongduan"`
|
|
|
|
|
Zhiwu string `json:"zhiwu"`
|
|
|
|
|
Banzu string `json:"banzu"`
|
|
|
|
|
Watchekey string `json:"watchekey"`
|
|
|
|
|
Iconurl string `json:"iconurl"`
|
|
|
|
|
Iconsmailurl string `json:"iconsmailurl"`
|
|
|
|
|
}
|