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

89 lines
2.1 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" binding:"required"`
3 years ago
}
type GetUserTagsResp struct {
CommResp
Data struct {
Tags []*pbOffice.Tag `json:"tags"`
} `json:"data"`
}
type CreateTagReq struct {
2 years ago
TagName string `json:"tagName" binding:"required"` // tag名称
UserIDList []string `json:"userIDList" binding:"required"` // 用户ID列表
3 years ago
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"`
3 years ago
NewName string `json:"newName"`
IncreaseUserIDList []string `json:"increaseUserIDList"`
ReduceUserIDList []string `json:"reduceUserIDList"`
3 years ago
OperationID string `json:"operationID" binding:"required"`
3 years ago
}
type SetTagResp struct {
CommResp
}
type SendMsg2TagReq struct {
3 years ago
TagList []string `json:"tagList"`
UserList []string `json:"userList"`
GroupList []string `json:"groupList"`
3 years ago
SenderPlatformID int32 `json:"senderPlatformID" binding:"required"`
Content string `json:"content" 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"`
}
type GetUserTagByIDReq struct {
TagID string `json:"tagID" binding:"required"`
OperationID string `json:"operationID" binding:"required"`
}
type GetUserTagByIDResp struct {
CommResp
Data struct {
Tag *pbOffice.Tag `json:"tag"`
} `json:"data"`
}