|
...
|
...
|
@@ -607,6 +607,7 @@ type UserNewsItem struct { |
|
|
|
ReadFlag bool `json:"readFlag"` // 已读标识 true:已读 false:未读
|
|
|
|
Images []string `json:"images"` // 图片列表
|
|
|
|
Author UserItem `json:"author"` // 作者
|
|
|
|
Cover string `json:"cover"` //封面
|
|
|
|
}
|
|
|
|
|
|
|
|
type MiniUserFollowedSearchRequest struct {
|
|
...
|
...
|
@@ -959,13 +960,14 @@ type Operator struct { |
|
|
|
|
|
|
|
type MiniArticleCreateRequest struct {
|
|
|
|
Title string `json:"title"` //标题
|
|
|
|
Section []string `json:"section"` //文章的文本内容
|
|
|
|
Section []string `json:"section,optional"` //文章的文本内容
|
|
|
|
AuthorId int64 `json:"authorId,optional"` //发布人id
|
|
|
|
Images []string `json:"images,optional"` //图片
|
|
|
|
WhoRead []int64 `json:"whoRead,optional"` //谁可查看
|
|
|
|
WhoReview []int64 `json:"whoReview,optional"` //谁可评论
|
|
|
|
Location Location `json:"location,optional"` //定位坐标
|
|
|
|
MatchUrl map[string]string `json:"matchUrl"` // 匹配文章内容中的url文本
|
|
|
|
Paragraphs []Paragraph `json:"paragraphs,optional"` // 段落
|
|
|
|
}
|
|
|
|
|
|
|
|
type MiniArticleCreateResponse struct {
|
|
...
|
...
|
@@ -999,13 +1001,17 @@ type MiniArticleGetResponse struct { |
|
|
|
MeFollowFlag int `json:"meFollowFlag"` // 当前人员对作者的关注标识 (0 没有关注 1有关注)
|
|
|
|
Tags []string `json:"tags"` // 文章的标签
|
|
|
|
MatchUrl map[string]string `json:"matchUrl"` // 匹配文章内容中的url文本
|
|
|
|
Cover string `json:"cover"` //封面
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleSection struct {
|
|
|
|
Id int64 `json:"id"` //段落id
|
|
|
|
Content string `json:"content"` // 文本内容
|
|
|
|
Content string `json:"content,optional"` // 文本内容
|
|
|
|
SortBy int `json:"sortBy"` // 排序
|
|
|
|
TotalComment int `json:"totalComment"` // 评论的数量
|
|
|
|
Images []string `json:"images,optional"` // 照片列表
|
|
|
|
ParagraphType int `json:"paragraphType"` // 段落类型 0:无样式 1:模板文本 2:模板图片
|
|
|
|
ParagraphTemplate Paragraph `json:"paragraphTemplate"` // 段落模板
|
|
|
|
}
|
|
|
|
|
|
|
|
type MiniArticleSearchMeRequest struct {
|
|
...
|
...
|
@@ -1033,6 +1039,7 @@ type ArticleSearchMe struct { |
|
|
|
WhoRead []int64 `json:"whoRead"` //谁可查看
|
|
|
|
IsDel int `json:"isDel"` //是否删除 1-删除 0-否
|
|
|
|
DeletedType int `json:"deletedType"` //类型 1-运营删除 2-用户删除
|
|
|
|
Cover string `json:"cover"` //封面
|
|
|
|
}
|
|
|
|
|
|
|
|
type SystemArticleSearchMeRequest struct {
|
|
...
|
...
|
@@ -1125,6 +1132,7 @@ type MiniArticleBackupItem struct { |
|
|
|
Location Location `json:"location"`
|
|
|
|
Action string `json:"action"`
|
|
|
|
Show int `json:"show"`
|
|
|
|
Cover string `json:"cover"` //封面
|
|
|
|
}
|
|
|
|
|
|
|
|
type MiniGetArticleBackupRequest struct {
|
|
...
|
...
|
@@ -1143,6 +1151,7 @@ type MiniGetArticleBackupResponse struct { |
|
|
|
Location Location `json:"location"`
|
|
|
|
Action string `json:"action"`
|
|
|
|
Show int `json:"show"`
|
|
|
|
Cover string `json:"cover"` //封面
|
|
|
|
}
|
|
|
|
|
|
|
|
type MiniArticleMarkUserReadRequest struct {
|
|
...
|
...
|
@@ -1158,14 +1167,15 @@ type MiniArticleMarkUserReadResponse struct { |
|
|
|
type MiniArticleDraftCreateRequest struct {
|
|
|
|
CompanyId int64 `json:",optional"`
|
|
|
|
AuthorId int64 `json:",optional"` // 发布人
|
|
|
|
Template int `json:"template"` // 使用哪个模板进行编辑 0、无 1、演绎式 2、归纳式
|
|
|
|
Section []string `json:"section"` // 填写的内容
|
|
|
|
Template int `json:"template"` // 使用哪个模板进行编辑 0、无 5、演绎式 3、归纳式 10、其他业务类型模板
|
|
|
|
Section []string `json:"section,optional"` // 填写的内容
|
|
|
|
Title string `json:"title"` // 标题
|
|
|
|
Images []string `json:"images"` // 图片
|
|
|
|
WhoRead []int64 `json:"whoRead"` // 谁可以看
|
|
|
|
WhoReview []int64 `json:"whoReview"` // 评论人
|
|
|
|
Location Location `json:"location"` // 坐标
|
|
|
|
MatchUrl map[string]string `json:"matchUrl"` // 匹配文章内容中的url文本
|
|
|
|
Paragraphs []Paragraph `json:"paragraphs,optional"` // 段落
|
|
|
|
}
|
|
|
|
|
|
|
|
type MiniArticleDraftCreateResponse struct {
|
|
...
|
...
|
@@ -1177,13 +1187,14 @@ type MiniArticleDraftUpdateRequest struct { |
|
|
|
CompanyId int64 `json:",optional"`
|
|
|
|
AuthorId int64 `json:",optional"` // 发布人
|
|
|
|
Template int `json:"template"` // 使用哪个模板进行编辑 0、无 1、演绎式 2、归纳式
|
|
|
|
Section []string `json:"section"` // 填写的内容
|
|
|
|
Section []string `json:"section,optional"` // 填写的内容
|
|
|
|
Title string `json:"title"` // 标题
|
|
|
|
Images []string `json:"images"` // 图片
|
|
|
|
WhoRead []int64 `json:"whoRead"` // 谁可以看
|
|
|
|
WhoReview []int64 `json:"whoReview"` // 评论人
|
|
|
|
Location Location `json:"location"` // 坐标
|
|
|
|
MatchUrl map[string]string `json:"matchUrl"` // 匹配文章内容中的url文本
|
|
|
|
Paragraphs []Paragraph `json:"paragraphs,optional"` // 段落
|
|
|
|
}
|
|
|
|
|
|
|
|
type MiniArticleDraftUpdateResponse struct {
|
|
...
|
...
|
@@ -1205,11 +1216,13 @@ type MiniArticleDraftSearchMeResponse struct { |
|
|
|
type MiniArticleDraftItem struct {
|
|
|
|
Id int64 `json:"id"`
|
|
|
|
Template int `json:"template"` // 使用哪个模板进行编辑 0、无 1、演绎式 2、归纳式
|
|
|
|
Section []string `json:"section"` // 填写的内容
|
|
|
|
Section []string `json:"section,optional"` // 填写的内容
|
|
|
|
Title string `json:"title"` // 标题
|
|
|
|
Images []string `json:"images"` // 图片
|
|
|
|
CreatedAt int64 `json:"createdAt"` //
|
|
|
|
MatchUrl map[string]string `json:"matchUrl"` //匹配内容中的url文本
|
|
|
|
Paragraphs []Paragraph `json:"paragraphs,optional"` // 段落
|
|
|
|
Cover string `json:"cover"` //封面
|
|
|
|
}
|
|
|
|
|
|
|
|
type MiniArticleDraftGetMeRequest struct {
|
|
...
|
...
|
@@ -1228,6 +1241,8 @@ type MiniArticleDraftGetMeResponse struct { |
|
|
|
WhoReview []int64 `json:"whoReview"` // 评论人
|
|
|
|
Location Location `json:"location"` // 坐标
|
|
|
|
MatchUrl map[string]string `json:"matchUrl"` //
|
|
|
|
Paragraphs []Paragraph `json:"paragraphs,optional"` // 段落
|
|
|
|
Cover string `json:"cover"` //封面
|
|
|
|
}
|
|
|
|
|
|
|
|
type MiniArticleDraftDeleteMeRequest struct {
|
|
...
|
...
|
@@ -1323,6 +1338,7 @@ type SystemArticleGetResponse struct { |
|
|
|
Show int `json:"show"` // 评论的展示状态(0显示、1不显示)
|
|
|
|
Tags []ArticleTagItem `json:"tags"` //标签
|
|
|
|
TargetUser int `json:"targetUser"` //分发方式 [0分发给所有人、1分发给指定的人]
|
|
|
|
Cover string `json:"cover"` //封面
|
|
|
|
}
|
|
|
|
|
|
|
|
type SystemArticleSearchRequest struct {
|
|
...
|
...
|
@@ -1347,6 +1363,7 @@ type SystemArticleSearch struct { |
|
|
|
Title string `json:"title"` //标题
|
|
|
|
AuthorId int64 `json:"authorId"` //发布人ID
|
|
|
|
Author string `json:"author"` //发布人
|
|
|
|
Cover string `json:"cover"` //封面
|
|
|
|
Images []string `json:"images"` //图片
|
|
|
|
CreatedAt int64 `json:"createdAt"` //文章的创建日期
|
|
|
|
UpdatedAt int64 `json:"updatedAt"` //文章的编辑日期
|
|
...
|
...
|
@@ -1363,9 +1380,9 @@ type SystemArticleUpdateRequest struct { |
|
|
|
Id int64 `json:"id"`
|
|
|
|
CompanyId int64 `json:"companyId,optional"`
|
|
|
|
Template int `json:"template,optional"` // 使用哪个模板进行编辑 0、无 1、演绎式 2、归纳式
|
|
|
|
Section []ArticleSection `json:"section"` // 填写的内容
|
|
|
|
Section []ArticleSection `json:"section,optional"` // 填写的内容
|
|
|
|
Title string `json:"title"` // 标题
|
|
|
|
Images []string `json:"images"` // 图片
|
|
|
|
Images []string `json:"images,optional"` // 图片
|
|
|
|
Videos []Video `json:"video"` // 视频
|
|
|
|
WhoRead []int64 `json:"whoRead"` // 谁可以看
|
|
|
|
WhoReview []int64 `json:"whoReview"` // 评论人
|
|
...
|
...
|
@@ -1400,6 +1417,7 @@ type SystemArticleCreateRequest struct { |
|
|
|
MatchUrl map[string]string `json:"matchUrl,optional"` // 匹配文章内容中的url文本
|
|
|
|
ArticleDraftId int64 `json:"articleDraftId"` // 草稿ID
|
|
|
|
AccessToken string `header:"x-mmm-accesstoken"` // 授权token
|
|
|
|
Paragraphs []Paragraph `json:"paragraphs,optional"` // 段落
|
|
|
|
}
|
|
|
|
|
|
|
|
type SystemArticleCreateResponse struct {
|
|
...
|
...
|
@@ -1467,6 +1485,7 @@ type SystemArticleGetHistoryResponse struct { |
|
|
|
Location Location `json:"location"` // 定位坐标
|
|
|
|
TargetUser int `json:"targetUser"` // 分发方式 [0分发给所有人、1分发给指定的人]
|
|
|
|
Tags []int64 `json:"tags"` // 标签
|
|
|
|
Cover string `json:"cover"` //封面
|
|
|
|
}
|
|
|
|
|
|
|
|
type SystemArticleRestoreRequest struct {
|
|
...
|
...
|
@@ -1526,6 +1545,7 @@ type MiniSearchArticleItem struct { |
|
|
|
Images []string `json:"images"`
|
|
|
|
CreatedAt int64 `json:"createdAt"`
|
|
|
|
MeReadFlag int `json:"meReadFlag"` //已读标识 [0:未读] [1:已读]
|
|
|
|
Cover string `json:"cover"` //封面
|
|
|
|
}
|
|
|
|
|
|
|
|
type SystemArticleDraftCreateRequest struct {
|
|
...
|
...
|
@@ -1540,6 +1560,7 @@ type SystemArticleDraftCreateRequest struct { |
|
|
|
MatchUrl map[string]string `json:"matchUrl,optional"` // 匹配文章内容中的url文本
|
|
|
|
Tags []int64 `json:"tags"` // 标签
|
|
|
|
AccessToken string `header:"x-mmm-accesstoken"` // 授权token
|
|
|
|
Paragraphs []Paragraph `json:"paragraphs,optional"` // 段落
|
|
|
|
}
|
|
|
|
|
|
|
|
type SystemArticleDraftCreateResponse struct {
|
|
...
|
...
|
@@ -1569,6 +1590,7 @@ type SystemArticleDraftUpdateRequest struct { |
|
|
|
MatchUrl map[string]string `json:"matchUrl,optional"` // 匹配文章内容中的url文本
|
|
|
|
Tags []int64 `json:"tags"` // 标签
|
|
|
|
AccessToken string `header:"x-mmm-accesstoken"` // 授权token
|
|
|
|
Paragraphs []Paragraph `json:"paragraphs,optional"` // 段落
|
|
|
|
}
|
|
|
|
|
|
|
|
type SystemArticleDraftUpdateResponse struct {
|
|
...
|
...
|
@@ -1608,6 +1630,7 @@ type SystemArticleDraftSearch struct { |
|
|
|
AuthorId int64 `json:"authorId"` //发布人id
|
|
|
|
Author string `json:"author"` //发布人
|
|
|
|
UpdatedAt int64 `json:"updatedAt"` //编辑时间
|
|
|
|
Cover string `json:"cover"` //封面
|
|
|
|
}
|
|
|
|
|
|
|
|
type SystemArticleDraftDeleteRequest struct {
|
|
...
|
...
|
@@ -1647,6 +1670,8 @@ type SystemArticleDraftGetResponse struct { |
|
|
|
WhoReviewInfo []UserShowName `json:"whoReviewInfo"` // 谁可评论
|
|
|
|
MatchUrl map[string]string `json:"matchUrl,optional"` // 匹配文章内容中的url文本
|
|
|
|
Tags []int64 `json:"tags"` // 标签
|
|
|
|
Paragraphs []Paragraph `json:"paragraphs,optional"` // 段落
|
|
|
|
Cover string `json:"cover"` //封面
|
|
|
|
}
|
|
|
|
|
|
|
|
type SystemArticleSearchDeletedRequest struct {
|
|
...
|
...
|
@@ -1849,3 +1874,166 @@ type CategoryOptionValue struct { |
|
|
|
Label string `json:"label"` // 名称
|
|
|
|
Value int64 `json:"value"` // 分类ID
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleSecurityGetRequest struct {
|
|
|
|
Id int64 `path:"id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleSecurityGetResponse struct {
|
|
|
|
ArticleSecurity ArticleSecurityItem `json:"item"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleSecurityAuditRequest struct {
|
|
|
|
Id int64 `json:"id"` //id
|
|
|
|
Status int `json:"status"` // 1:成功 0:失败
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleSecurityAuditResponse struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleSecuritySearchRequest struct {
|
|
|
|
Page int `json:"page,optional"`
|
|
|
|
Size int `json:"size,optional"`
|
|
|
|
ReviewStatus int `json:"reviewStatus,optional"` // 审核结果 1:待审核 2:通过 3:拒绝
|
|
|
|
Suggest string `json:"suggest"` // 建议 通过、风险、人工审核
|
|
|
|
ContentType int `json:"contentType"` // 内容类型 (1:文章 2:评论)
|
|
|
|
AuthorName string `json:"authorName"` // 作者名称
|
|
|
|
BeginTime int64 `json:"beginTime"` // 开始时间
|
|
|
|
EndTime int64 `json:"endTime"` // 结束时间
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleSecuritySearchResponse struct {
|
|
|
|
List []ArticleSecurityItem `json:"list"`
|
|
|
|
Total int64 `json:"total"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleSecurityItem struct {
|
|
|
|
Id int64 `json:"id"` // 唯一标识
|
|
|
|
ContentKeyWords string `json:"contentKeyWords"` // 内容关键字
|
|
|
|
Content ContentDetailItem `json:"content"` // 内容详情
|
|
|
|
Label string `json:"label"` // 风控标签
|
|
|
|
Prob int `json:"prob"` // 分值
|
|
|
|
Suggest string `json:"suggest"` // 建议 通过、风险、人工审核
|
|
|
|
Author string `json:"author"` // 发布人
|
|
|
|
ReleaseAt int64 `json:"releaseAt"` // 发布时间
|
|
|
|
ReviewStatus int `json:"reviewStatus"` // 审核结果 1:待审核 2:通过 3:拒绝
|
|
|
|
Reviewer string `json:"reviewer"` // 审核人
|
|
|
|
ReviewAt int64 `json:"reviewAt"` // 审核时间(人工处置时间)
|
|
|
|
CheckList []CheckDetailItem `json:"checkList"` // 检查列表
|
|
|
|
}
|
|
|
|
|
|
|
|
type CheckDetailItem struct {
|
|
|
|
Label string `json:"label"` // 命中标签
|
|
|
|
Prob uint `json:"prob"` // 置信度。0-100,越高代表越有可能属于当前返回的标签(label)
|
|
|
|
Suggest string `json:"suggest"` // 建议
|
|
|
|
}
|
|
|
|
|
|
|
|
type ContentDetailItem struct {
|
|
|
|
Id int64 `json:"id"` // 内容ID
|
|
|
|
Type int `json:"type"` // 内容类型 (1:文章 2:评论)
|
|
|
|
Text string `json:"text"` // 内容文本
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleTemplateGetRequest struct {
|
|
|
|
Id int64 `path:"id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleTemplateGetResponse struct {
|
|
|
|
ArticleTemplate ArticleTemplateItem `json:"item"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleTemplateSaveRequest struct {
|
|
|
|
AccessToken string `header:"x-mmm-accesstoken"` // 授权token
|
|
|
|
ArticleTemplate ArticleTemplateItem `json:"item"`
|
|
|
|
BelongTo int `json:"belongTo,optional,default=2"` // 模板属于: 1:企业 、2:个人
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleTemplateSaveResponse struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleTemplateDeleteRequest struct {
|
|
|
|
Id int64 `path:"id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleTemplateDeleteResponse struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleTemplateBatchDeleteRequest struct {
|
|
|
|
Ids []int64 `json:"ids"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleTemplateBatchResponse struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleTemplateUpdateRequest struct {
|
|
|
|
Id int64 `path:"id"`
|
|
|
|
ArticleTemplate ArticleTemplateItem `json:"item"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleTemplateUpdateResponse struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleTemplateSearchRequest struct {
|
|
|
|
Page int `json:"page,optional"`
|
|
|
|
Size int `json:"size,optional"`
|
|
|
|
Name string `json:"name,optional"` // 模板名称
|
|
|
|
TemplateClass string `json:"templateClass,optional"` // 模板分类
|
|
|
|
Target *int `json:"target,optional"` // 目标 0 全员 1 指定人
|
|
|
|
TargetUser string `json:"targetUser,optional"` // 目标用户
|
|
|
|
CompanyId int64 `json:",optional"` // 属于企业时有值
|
|
|
|
UserId int64 `json:",optional"` // 属于个人时有值
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleTemplateSearchResponse struct {
|
|
|
|
List []ArticleTemplateItem `json:"list"`
|
|
|
|
Total int64 `json:"total"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleTemplateClassSearchRequest struct {
|
|
|
|
Page int `json:"page,optional"`
|
|
|
|
Size int `json:"size,optional"`
|
|
|
|
Name string `json:"name,optional"` // 模板名称
|
|
|
|
CompanyId int64 `json:",optional"` // 属于企业时有值
|
|
|
|
UserId int64 `json:",optional"` // 属于个人时有值
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleTemplateClassSearchResponse struct {
|
|
|
|
List []ArticleTemplateClassItem `json:"list"`
|
|
|
|
Total int64 `json:"total"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleTemplateClassItem struct {
|
|
|
|
Name string `json:"name"` // 名称
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleTemplateItem struct {
|
|
|
|
Id int64 `json:"id,optional"` // 唯一标识
|
|
|
|
Name string `json:"name"` // 模板名称
|
|
|
|
Description string `json:"description,optional"` // 描述
|
|
|
|
TemplateClass string `json:"templateClass"` // 模板分类
|
|
|
|
Paragraphs []Paragraph `json:"paragraphs,optional"` // 段落列表
|
|
|
|
Icon string `json:"icon,optional"` // 图标地址
|
|
|
|
TargetWhoRead int `json:"targetWhoRead,optional"` // 分发方式 0 分发给所有人 1 分发给指定的人
|
|
|
|
TargetWhoReview int `json:"targetWhoReview,optional"` // 分发方式 0 分发给所有人 1 分发给指定的人
|
|
|
|
WhoRead []int64 `json:"whoRead,optional"` // 谁可以看
|
|
|
|
WhoReview []int64 `json:"whoReview,optional"` // 查看、评论人
|
|
|
|
WhoReadInfo []TargetUser `json:"whoReadInfo,optional"` // 谁可查看
|
|
|
|
WhoReviewInfo []TargetUser `json:"whoReviewInfo,optional"` // 谁可评论
|
|
|
|
Operator string `json:"operator,omitempty,optional"` // 操作人
|
|
|
|
UpdatedAt int64 `json:"updatedAt,omitempty,optional"` // 更新时间戳
|
|
|
|
}
|
|
|
|
|
|
|
|
type Paragraph struct {
|
|
|
|
ID string `json:"id,optional"` // 唯一标识
|
|
|
|
Title string `json:"title,optional"` // 标题
|
|
|
|
Prompt string `json:"prompt,optional"` // 文本提示
|
|
|
|
Required bool `json:"required,optional"` // 必填
|
|
|
|
Type int `json:"type,optional"` // 段落类型 1:文本 2:图片
|
|
|
|
Text string `json:"text,optional,omitempty"` // 文本内容
|
|
|
|
Images []string `json:"images,optional,omitempty"` // 图片地址列表
|
|
|
|
}
|
|
|
|
|
|
|
|
type TargetUser struct {
|
|
|
|
Id int64 `json:"id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
} |
...
|
...
|
|