You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/pkg/base_info/work_moments_struct.go

139 lines
3.6 KiB

3 years ago
package base_info
import "Open_IM/pkg/proto/office"
type CreateOneWorkMomentReq struct {
office.CreateOneWorkMomentReq
}
type CreateOneWorkMomentResp struct {
CommResp
3 years ago
Data struct{} `json:"data"`
3 years ago
}
type DeleteOneWorkMomentReq struct {
2 years ago
WorkMomentID string `json:"workMomentID" binding:"required"`
OperationID string `json:"operationID" binding:"required"`
3 years ago
}
type DeleteOneWorkMomentResp struct {
CommResp
3 years ago
Data struct{} `json:"data"`
3 years ago
}
type LikeOneWorkMomentReq struct {
2 years ago
WorkMomentID string `json:"workMomentID" binding:"required"`
OperationID string `json:"operationID" binding:"required"`
3 years ago
}
type LikeOneWorkMomentResp struct {
CommResp
3 years ago
Data struct{} `json:"data"`
3 years ago
}
type CommentOneWorkMomentReq struct {
2 years ago
WorkMomentID string `json:"workMomentID" binding:"required"`
ReplyUserID string `json:"replyUserID" binding:"required"`
Content string `json:"content" binding:"required"`
OperationID string `json:"operationID" binding:"required"`
3 years ago
}
type CommentOneWorkMomentResp struct {
CommResp
3 years ago
Data struct{} `json:"data"`
3 years ago
}
3 years ago
type DeleteCommentReq struct {
2 years ago
WorkMomentID string `json:"workMomentID" binding:"required"`
ContentID string `json:"contentID" binding:"required"`
OperationID string `json:"operationID" binding:"required"`
3 years ago
}
type DeleteCommentResp struct {
CommResp
3 years ago
Data struct{} `json:"data"`
3 years ago
}
3 years ago
type WorkMomentsUserCommonReq struct {
PageNumber int32 `json:"pageNumber" binding:"required"`
ShowNumber int32 `json:"showNumber" binding:"required"`
OperationID string `json:"operationID" binding:"required"`
}
3 years ago
type GetWorkMomentByIDReq struct {
2 years ago
WorkMomentID string `json:"workMomentID" binding:"required"`
OperationID string `json:"operationID" binding:"required"`
3 years ago
}
3 years ago
type WorkMoment struct {
3 years ago
WorkMomentID string `json:"workMomentID"`
UserID string `json:"userID"`
Content string `json:"content"`
LikeUserList []*WorkMomentUser `json:"likeUsers"`
Comments []*Comment `json:"comments"`
FaceURL string `json:"faceURL"`
UserName string `json:"userName"`
AtUserList []*WorkMomentUser `json:"atUsers"`
PermissionUserList []*WorkMomentUser `json:"permissionUsers"`
CreateTime int32 `json:"createTime"`
Permission int32 `json:"permission"`
3 years ago
}
3 years ago
type WorkMomentUser struct {
3 years ago
UserID string `json:"userID"`
UserName string `json:"userName"`
}
type Comment struct {
UserID string `json:"userID"`
UserName string `json:"userName"`
ReplyUserID string `json:"replyUserID"`
ReplyUserName string `json:"replyUserName"`
ContentID string `json:"contentID"`
Content string `json:"content"`
CreateTime int32 `json:"createTime"`
}
3 years ago
type GetWorkMomentByIDResp struct {
CommResp
Data struct {
3 years ago
WorkMoment *WorkMoment `json:"workMoment"`
3 years ago
} `json:"data"`
}
3 years ago
type GetUserWorkMomentsReq struct {
WorkMomentsUserCommonReq
3 years ago
UserID string `json:"userID"`
3 years ago
}
type GetUserWorkMomentsResp struct {
CommResp
Data struct {
3 years ago
WorkMoments []*WorkMoment `json:"workMoments"`
CurrentPage int32 `json:"currentPage"`
ShowNumber int32 `json:"showNumber"`
3 years ago
} `json:"data"`
}
type GetUserFriendWorkMomentsReq struct {
WorkMomentsUserCommonReq
}
type GetUserFriendWorkMomentsResp struct {
CommResp
Data struct {
3 years ago
WorkMoments []*WorkMoment `json:"workMoments"`
CurrentPage int32 `json:"currentPage"`
ShowNumber int32 `json:"showNumber"`
3 years ago
} `json:"data"`
}
type SetUserWorkMomentsLevelReq struct {
office.SetUserWorkMomentsLevelReq
}
type SetUserWorkMomentsLevelResp struct {
CommResp
3 years ago
Data struct{} `json:"data"`
3 years ago
}