txim/api/param/request.go
2022-01-11 10:14:11 +08:00

57 lines
1.5 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package param
// AccountImportReq 单个账号导入
type AccountImportReq struct {
Identifier string `json:"Identifier"` // 用户名长度不超过32字节
Nick string `json:"Nick"` // 用户昵称
FaceUrl string `json:"FaceUrl"` // 用户头像 URL
}
// ========================================================
// AccountCheckReq 账号查询
type AccountCheckReq struct {
CheckItem []*AccountCheckReqItem `json:"CheckItem"`
}
// AccountCheckReqItem 账号查询条件
type AccountCheckReqItem struct {
UserID string `json:"UserID"`
}
// ========================================================
// AccountDeleteReq 账号删除
type AccountDeleteReq struct {
DeleteItem []*AccountDeleteReqItem `json:"DeleteItem"`
}
// AccountDeleteReqItem 账号删除条件
type AccountDeleteReqItem struct {
UserID string `json:"UserID"`
}
// ========================================================
// GroupCreateReq 建群
type GroupCreateReq struct {
OwnerAccount string `json:"Owner_Account"`
Type string `json:"Type"`
Name string `json:"Name"`
ApplyJoinOption string `json:"ApplyJoinOption"`
}
// ========================================================
// ProfileSetReq 资料设置
type ProfileSetReq struct {
FromAccount string `json:"From_Account"`
ProfileItem []*ProfileSetReqItem `json:"ProfileItem"`
}
// ProfileSetReqItem 资料设置条件
type ProfileSetReqItem struct {
Tag string `json:"Tag"`
Value interface{} `json:"Value"`
}