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/office_struct.go

75 lines
1.9 KiB

3 years ago
package base_info
3 years ago
import (
pbOffice "Open_IM/pkg/proto/office"
)
3 years ago
type GetUserTagsReq struct {
3 years ago
OperationID string `json:"operationID"`
3 years ago
}
type GetUserTagsResp struct {
CommResp
Data struct {
Tags []*pbOffice.Tag `json:"tags"`
} `json:"data"`
}
type CreateTagReq struct {
3 years ago
TagName string `json:"tagName" binding:"required"`
UserIDList []string `json:"userIDList" binding:"required"`
OperationID string `json:"operationID" binding:"required"`
3 years ago
}
type CreateTagResp struct {
CommResp
}
type DeleteTagReq struct {
3 years ago
TagID string `json:"tagID" binding:"required"`
OperationID string `json:"operationID" binding:"required"`
3 years ago
}
type DeleteTagResp struct {
CommResp
}
type SetTagReq struct {
3 years ago
TagID string `json:"tagID" binding:"required"`
NewName string `json:"newName" binding:"required"`
IncreaseUserIDList []string `json:"increaseUserIDList" binding:"required"`
ReduceUserIDList []string `json:"reduceUserIDList" binding:"required"`
OperationID string `json:"operationID" binding:"required"`
3 years ago
}
type SetTagResp struct {
CommResp
}
type SendMsg2TagReq struct {
3 years ago
TagID string `json:"tagID" binding:"required"`
SenderPlatformID int32 `json:"senderPlatformID" binding:"required"`
Content string `json:"content" binding:"required"`
ContentType int32 `json:"contentType" binding:"required"`
OperationID string `json:"operationID" binding:"required"`
3 years ago
}
type SendMsg2TagResp struct {
CommResp
}
3 years ago
type GetTagSendLogsReq struct {
3 years ago
PageNumber int32 `json:"pageNumber" binding:"required"`
ShowNumber int32 `json:"showNumber" binding:"required"`
OperationID string `json:"operationID" binding:"required"`
3 years ago
}
type GetTagSendLogsResp struct {
CommResp
Data struct {
Logs []*pbOffice.TagSendLog `json:"logs"`
CurrentPage int32 `json:"currentPage"`
ShowNumber int32 `json:"showNumber"`
} `json:"data"`
}