kahla

package
v0.0.0-...-f176acd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Code generated by go-rest-client. DO NOT EDIT. source: auth.proto

Code generated by go-rest-client. DO NOT EDIT. source: conversation.proto

Code generated by go-rest-client. DO NOT EDIT. source: devices.proto

Code generated by go-rest-client. DO NOT EDIT. source: files.proto

Code generated by go-rest-client. DO NOT EDIT. source: friendship.proto

Code generated by go-rest-client. DO NOT EDIT. source: groups.proto

Index

Constants

View Source
const (
	Conversation_Discriminator_PrivateConversation int32 = 0
	Conversation_Discriminator_GroupConversation   int32 = 1
)

Variables

View Source
var Conversation_Discriminator_name = map[int32]string{
	0: "PrivateConversation",
	1: "GroupConversation",
}
View Source
var Conversation_Discriminator_value = map[string]int32{
	"PrivateConversation": 0,
	"GroupConversation":   1,
}

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	// contains filtered or unexported fields
}

func NewAuthService

func NewAuthService(client *http.Client, baseUrl string) *AuthService

func (*AuthService) AuthByPassword

func (s *AuthService) AuthByPassword(in *Auth_AuthByPasswordRequest) (out *Auth_AuthByPasswordResponse, resp *http.Response, err error)

func (*AuthService) AuthResult

func (s *AuthService) AuthResult(in *Auth_AuthResultRequest) (resp *http.Response, err error)

func (*AuthService) ChangePassword

func (s *AuthService) ChangePassword(in *Auth_ChangePasswordRequest) (out *Auth_ChangePasswordResponse, resp *http.Response, err error)

func (*AuthService) Index

func (s *AuthService) Index() (out *Auth_IndexResponse, resp *http.Response, err error)

func (*AuthService) InitPusher

func (s *AuthService) InitPusher() (out *Auth_InitPusherResponse, resp *http.Response, err error)

func (*AuthService) LogOff

func (s *AuthService) LogOff(in *Auth_LogOffRequest) (out *Auth_LogOffResponse, resp *http.Response, err error)

func (*AuthService) Me

func (s *AuthService) Me() (out *Auth_MeResponse, resp *http.Response, err error)

func (*AuthService) OAuth

func (s *AuthService) OAuth() (resp *http.Response, err error)

func (*AuthService) RegisterKahla

func (s *AuthService) RegisterKahla(in *Auth_RegisterKahlaRequest) (out *Auth_RegisterKahlaResponse, resp *http.Response, err error)

func (*AuthService) SendEmail

func (s *AuthService) SendEmail(in *Auth_SendEmailRequest) (out *Auth_SendEmailResponse, resp *http.Response, err error)

func (*AuthService) SignInStatus

func (s *AuthService) SignInStatus() (out *Auth_SignInStatusResponse, resp *http.Response, err error)

func (*AuthService) UpdateClientSetting

func (s *AuthService) UpdateClientSetting(in *Auth_UpdateClientSettingRequest) (out *Auth_UpdateClientSettingResponse, resp *http.Response, err error)

func (*AuthService) UpdateInfo

func (s *AuthService) UpdateInfo(in *Auth_UpdateInfoRequest) (out *Auth_UpdateInfoResponse, resp *http.Response, err error)

func (*AuthService) Version

func (s *AuthService) Version() (out *Auth_VersionResponse, resp *http.Response, err error)

type Auth_AuthByPasswordRequest

type Auth_AuthByPasswordRequest struct {
	Email    string `json:"email,omitempty"`
	Password string `json:"password,omitempty"`
}

type Auth_AuthByPasswordResponse

type Auth_AuthByPasswordResponse struct {
	Code    int32  `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

type Auth_AuthResultRequest

type Auth_AuthResultRequest struct {
	State string `json:"state,omitempty"`
	Code  uint32 `json:"code,omitempty"`
}

type Auth_ChangePasswordRequest

type Auth_ChangePasswordRequest struct {
	OldPassword    string `json:"OldPassword,omitempty"`
	NewPassword    string `json:"NewPassword,omitempty"`
	RepeatPassword string `json:"RepeatPassword,omitempty"`
}

type Auth_ChangePasswordResponse

type Auth_ChangePasswordResponse struct {
	Code    int32  `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

type Auth_IndexResponse

type Auth_IndexResponse struct {
	Code       int32  `json:"code,omitempty"`
	Message    string `json:"message,omitempty"`
	WikiPath   string `json:"wikiPath,omitempty"`
	ServerTime string `json:"serverTime,omitempty"`
	UtcTime    string `json:"utcTime,omitempty"`
}

type Auth_InitPusherResponse

type Auth_InitPusherResponse struct {
	Code       int32  `json:"code,omitempty"`
	Message    string `json:"message,omitempty"`
	ServerPath string `json:"serverPath,omitempty"`
	ChannelId  uint32 `json:"channelId,omitempty"`
	ConnectKey string `json:"connectKey,omitempty"`
}

type Auth_LogOffRequest

type Auth_LogOffRequest struct {
	DeviceId int32 `json:"DeviceId,omitempty"`
}

type Auth_LogOffResponse

type Auth_LogOffResponse struct {
	Code    int32  `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

type Auth_MeResponse

type Auth_MeResponse struct {
	Code    int32                 `json:"code,omitempty"`
	Message string                `json:"message,omitempty"`
	Value   Auth_MeResponse_Value `json:"value,omitempty"`
}

type Auth_MeResponse_Value

type Auth_MeResponse_Value struct {
	AccountCreateTime       string `json:"accountCreateTime,omitempty"`
	Bio                     string `json:"bio,omitempty"`
	Email                   string `json:"email,omitempty"`
	EmailConfirmed          bool   `json:"emailConfirmed,omitempty"`
	EnableEmailNotification bool   `json:"enableEmailNotification,omitempty"`
	HeadImgFileKey          uint32 `json:"headImgFileKey,omitempty"`
	Id                      string `json:"id,omitempty"`
	MakeEmailPublic         bool   `json:"makeEmailPublic,omitempty"`
	NickName                string `json:"nickName,omitempty"`
	PreferedLanguage        string `json:"preferedLanguage,omitempty"`
	Sex                     string `json:"sex,omitempty"`
	ThemeId                 uint32 `json:"themeId,omitempty"`
}

type Auth_RegisterKahlaRequest

type Auth_RegisterKahlaRequest struct {
	Email           string `json:"Email,omitempty"`
	Password        string `json:"Password,omitempty"`
	ConfirmPassword string `json:"ConfirmPassword,omitempty"`
}

type Auth_RegisterKahlaResponse

type Auth_RegisterKahlaResponse struct {
	Code    int32  `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

type Auth_SendEmailRequest

type Auth_SendEmailRequest struct {
	Email string `json:"email,omitempty"`
}

type Auth_SendEmailResponse

type Auth_SendEmailResponse struct {
	Code    int32  `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

type Auth_SignInStatusResponse

type Auth_SignInStatusResponse struct {
	Code    int32  `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
	Value   bool   `json:"value,omitempty"`
}

type Auth_UpdateClientSettingRequest

type Auth_UpdateClientSettingRequest struct {
	ThemeId                 *uint32 `json:"ThemeId,omitempty"`
	EnableEmailNotification *bool   `json:"EnableEmailNotification,omitempty"`
}

type Auth_UpdateClientSettingResponse

type Auth_UpdateClientSettingResponse struct {
	Code    int32  `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

type Auth_UpdateInfoRequest

type Auth_UpdateInfoRequest struct {
	NickName    *string `json:"NickName,omitempty"`
	Bio         *string `json:"Bio,omitempty"`
	HeadImgKey  *uint32 `json:"HeadImgKey,omitempty"`
	HideMyEmail *bool   `json:"HideMyEmail,omitempty"`
}

type Auth_UpdateInfoResponse

type Auth_UpdateInfoResponse struct {
	Code    int32  `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

type Auth_VersionResponse

type Auth_VersionResponse struct {
	Code             int32  `json:"code,omitempty"`
	Message          string `json:"message,omitempty"`
	LatestVersion    string `json:"latestVersion,omitempty"`
	LatestCLIVersion string `json:"latestCLIVersion,omitempty"`
	DownloadAddress  string `json:"downloadAddress,omitempty"`
}

type Client

type Client struct {
	Auth         *AuthService
	Conversation *ConversationService
	Devices      *DevicesService
	Files        *FilesService
	Friendship   *FriendshipService
	Groups       *GroupsService
	Oss          *OssService
	// contains filtered or unexported fields
}

func NewClient

func NewClient(baseUrl string, ossUrl string) *Client

type ConversationService

type ConversationService struct {
	// contains filtered or unexported fields
}

func NewConversationService

func NewConversationService(client *http.Client, baseUrl string) *ConversationService

func (*ConversationService) All

func (*ConversationService) ConversationDetail

func (*ConversationService) GetMessage

func (*ConversationService) SendMessage

type Conversation_AllRequest

type Conversation_AllRequest struct {
	Take uint32 `json:"Take,omitempty"`
	Skip uint32 `json:"Skip,omitempty"`
}

type Conversation_AllResponse

type Conversation_AllResponse struct {
	Code    int32                           `json:"code,omitempty"`
	Message string                          `json:"message,omitempty"`
	Items   []Conversation_AllResponse_Item `json:"items,omitempty"`
}

type Conversation_AllResponse_Item

type Conversation_AllResponse_Item struct {
	DisplayName       string `json:"displayName,omitempty"`
	DisplayImageKey   uint32 `json:"displayImageKey,omitempty"`
	LatestMessage     string `json:"latestMessage,omitempty"`
	LatestMessageTime string `json:"latestMessageTime,omitempty"`
	UnReadAmount      uint32 `json:"unReadAmount,omitempty"`
	ConversationId    uint32 `json:"conversationId,omitempty"`
	Discriminator     string `json:"discriminator,omitempty"`
	UserId            string `json:"userId,omitempty"`
	AesKey            string `json:"aesKey,omitempty"`
	Muted             bool   `json:"muted,omitempty"`
	SomeoneAtMe       bool   `json:"someoneAtMe,omitempty"`
}

type Conversation_ConversationDetailRequest

type Conversation_ConversationDetailRequest struct {
	Id uint32 `json:"id,omitempty"`
}

type Conversation_ConversationDetailResponse

type Conversation_ConversationDetailResponse struct {
	Code    int32                                         `json:"code,omitempty"`
	Message string                                        `json:"message,omitempty"`
	Value   Conversation_ConversationDetailResponse_Value `json:"value,omitempty"`
}

type Conversation_ConversationDetailResponse_Value

type Conversation_ConversationDetailResponse_Value struct {
	Users                  []Conversation_ConversationDetailResponse_Value_User      `json:"users,omitempty"`
	GroupImageKey          uint32                                                    `json:"groupImageKey,omitempty"`
	GroupName              string                                                    `json:"groupName,omitempty"`
	HasPassword            bool                                                      `json:"hasPassword,omitempty"`
	OwnerId                string                                                    `json:"ownerId,omitempty"`
	RequesterId            string                                                    `json:"requesterId,omitempty"`
	RequestUser            Conversation_ConversationDetailResponse_Value_RequestUser `json:"requestUser,omitempty"`
	TargetId               string                                                    `json:"targetId,omitempty"`
	TargetUser             Conversation_ConversationDetailResponse_Value_TargetUser  `json:"targetUser,omitempty"`
	AnotherUserId          string                                                    `json:"anotherUserId,omitempty"`
	Id                     uint32                                                    `json:"id,omitempty"`
	Discriminator          string                                                    `json:"discriminator,omitempty"`
	AesKey                 string                                                    `json:"aesKey,omitempty"`
	MaxLiveSeconds         uint32                                                    `json:"maxLiveSeconds,omitempty"`
	ConversationCreateTime string                                                    `json:"conversationCreateTime,omitempty"`
	DisplayName            string                                                    `json:"displayName,omitempty"`
	DisplayImage           uint32                                                    `json:"displayImage,omitempty"`
}

type Conversation_ConversationDetailResponse_Value_RequestUser

type Conversation_ConversationDetailResponse_Value_RequestUser struct {
	MakeEmailPublic   bool   `json:"makeEmailPublic,omitempty"`
	Email             string `json:"email,omitempty"`
	Id                string `json:"id,omitempty"`
	Bio               string `json:"bio,omitempty"`
	NickName          string `json:"nickName,omitempty"`
	Sex               string `json:"sex,omitempty"`
	HeadImgFileKey    uint32 `json:"headImgFileKey,omitempty"`
	PreferedLanguage  string `json:"preferedLanguage,omitempty"`
	AccountCreateTime string `json:"accountCreateTime,omitempty"`
	EmailConfirmed    bool   `json:"emailConfirmed,omitempty"`
}

type Conversation_ConversationDetailResponse_Value_TargetUser

type Conversation_ConversationDetailResponse_Value_TargetUser struct {
	MakeEmailPublic   bool   `json:"makeEmailPublic,omitempty"`
	Email             string `json:"email,omitempty"`
	Id                string `json:"id,omitempty"`
	Bio               string `json:"bio,omitempty"`
	NickName          string `json:"nickName,omitempty"`
	Sex               string `json:"sex,omitempty"`
	HeadImgFileKey    uint32 `json:"headImgFileKey,omitempty"`
	PreferedLanguage  string `json:"preferedLanguage,omitempty"`
	AccountCreateTime string `json:"accountCreateTime,omitempty"`
	EmailConfirmed    bool   `json:"emailConfirmed,omitempty"`
}

type Conversation_ConversationDetailResponse_Value_User

type Conversation_ConversationDetailResponse_Value_User struct {
	Id            uint32                                                  `json:"id,omitempty"`
	JoinTime      string                                                  `json:"joinTime,omitempty"`
	Muted         bool                                                    `json:"muted,omitempty"`
	User          Conversation_ConversationDetailResponse_Value_User_User `json:"user,omitempty"`
	GroupId       uint32                                                  `json:"groupId,omitempty"`
	ReadTimeStamp string                                                  `json:"readTimeStamp,omitempty"`
}

type Conversation_ConversationDetailResponse_Value_User_User

type Conversation_ConversationDetailResponse_Value_User_User struct {
	MakeEmailPublic   bool   `json:"makeEmailPublic,omitempty"`
	Email             string `json:"email,omitempty"`
	Id                string `json:"id,omitempty"`
	Bio               string `json:"bio,omitempty"`
	NickName          string `json:"nickName,omitempty"`
	Sex               string `json:"sex,omitempty"`
	HeadImgFileKey    uint32 `json:"headImgFileKey,omitempty"`
	PreferedLanguage  string `json:"preferedLanguage,omitempty"`
	AccountCreateTime string `json:"accountCreateTime,omitempty"`
	EmailConfirmed    bool   `json:"emailConfirmed,omitempty"`
}

type Conversation_Discriminator

type Conversation_Discriminator int32

type Conversation_GetMessageRequest

type Conversation_GetMessageRequest struct {
	Id       uint32 `json:"id,omitempty"`
	SkipTill int32  `json:"skipTill,omitempty"`
	Take     uint32 `json:"take,omitempty"`
}

type Conversation_GetMessageResponse

type Conversation_GetMessageResponse struct {
	Code    int32                                  `json:"code,omitempty"`
	Message string                                 `json:"message,omitempty"`
	Items   []Conversation_GetMessageResponse_Item `json:"items,omitempty"`
}

type Conversation_GetMessageResponse_Item

type Conversation_GetMessageResponse_Item struct {
	Id             uint32                                      `json:"id,omitempty"`
	ConversationId uint32                                      `json:"conversationId,omitempty"`
	Ats            []Conversation_GetMessageResponse_Item_At   `json:"ats,omitempty"`
	SenderId       string                                      `json:"senderId,omitempty"`
	Sender         Conversation_GetMessageResponse_Item_Sender `json:"sender,omitempty"`
	SendTime       string                                      `json:"sendTime,omitempty"`
	Content        string                                      `json:"content,omitempty"`
	Read           bool                                        `json:"read,omitempty"`
}

type Conversation_GetMessageResponse_Item_At

type Conversation_GetMessageResponse_Item_At struct {
	TargetUserId string `json:"targetUserId,omitempty"`
}

type Conversation_GetMessageResponse_Item_Sender

type Conversation_GetMessageResponse_Item_Sender struct {
	MakeEmailPublic   bool   `json:"makeEmailPublic,omitempty"`
	Email             string `json:"email,omitempty"`
	Id                string `json:"id,omitempty"`
	Bio               string `json:"bio,omitempty"`
	NickName          string `json:"nickName,omitempty"`
	Sex               string `json:"sex,omitempty"`
	HeadImgFileKey    uint32 `json:"headImgFileKey,omitempty"`
	PreferedLanguage  string `json:"preferedLanguage,omitempty"`
	AccountCreateTime string `json:"accountCreateTime,omitempty"`
	EmailConfirmed    bool   `json:"emailConfirmed,omitempty"`
}

type Conversation_SendMessageRequest

type Conversation_SendMessageRequest struct {
	Id      uint32   `json:"Id,omitempty"`
	Content string   `json:"Content,omitempty"`
	At      []string `json:"At,omitempty"`
}

type Conversation_SendMessageResponse

type Conversation_SendMessageResponse struct {
	Code    int32  `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

type Conversation_UpdateMessageLifeTimeRequest

type Conversation_UpdateMessageLifeTimeRequest struct {
	Id          uint32 `json:"Id,omitempty"`
	NewLifeTime uint32 `json:"NewLifeTime,omitempty"`
}

type Conversation_UpdateMessageLifeTimeResponse

type Conversation_UpdateMessageLifeTimeResponse struct {
	Code    int32  `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

type DevicesService

type DevicesService struct {
	// contains filtered or unexported fields
}

func NewDevicesService

func NewDevicesService(client *http.Client, baseUrl string) *DevicesService

func (*DevicesService) AddDevice

func (*DevicesService) MyDevices

func (s *DevicesService) MyDevices() (out *Devices_MyDevicesResponse, resp *http.Response, err error)

func (*DevicesService) PushTestMessage

func (s *DevicesService) PushTestMessage() (out *Devices_PushTestMessageResponse, resp *http.Response, err error)

func (*DevicesService) UpdateDevice

type Devices_AddDeviceRequest

type Devices_AddDeviceRequest struct {
	Name         string `json:"Name,omitempty"`
	PushEndpoint string `json:"PushEndpoint,omitempty"`
	PushP256DH   string `json:"PushP256DH,omitempty"`
	PushAuth     string `json:"PushAuth,omitempty"`
}

type Devices_AddDeviceResponse

type Devices_AddDeviceResponse struct {
	Code    int32  `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

type Devices_MyDevicesResponse

type Devices_MyDevicesResponse struct {
	Code    int32                            `json:"code,omitempty"`
	Message string                           `json:"message,omitempty"`
	Items   []Devices_MyDevicesResponse_Item `json:"items,omitempty"`
}

type Devices_MyDevicesResponse_Item

type Devices_MyDevicesResponse_Item struct {
	Id        uint32 `json:"id,omitempty"`
	Name      string `json:"name,omitempty"`
	IpAddress string `json:"ipAddress,omitempty"`
	UserId    string `json:"userId,omitempty"`
	AddTime   string `json:"addTime,omitempty"`
}

type Devices_PushTestMessageResponse

type Devices_PushTestMessageResponse struct {
	Code    int32  `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

type Devices_UpdateDeviceRequest

type Devices_UpdateDeviceRequest struct {
	DeviceId     uint32 `json:"DeviceId,omitempty"`
	Name         string `json:"Name,omitempty"`
	PushEndpoint string `json:"PushEndpoint,omitempty"`
	PushP256DH   string `json:"PushP256DH,omitempty"`
	PushAuth     string `json:"PushAuth,omitempty"`
}

type Devices_UpdateDeviceResponse

type Devices_UpdateDeviceResponse struct {
	Code    int32  `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

type FilesService

type FilesService struct {
	// contains filtered or unexported fields
}

func NewFilesService

func NewFilesService(client *http.Client, baseUrl string) *FilesService

func (*FilesService) FileDownloadAddress

func (*FilesService) UploadFile

func (s *FilesService) UploadFile(in *Files_UploadFileRequest) (out *Files_UploadFileResponse, resp *http.Response, err error)

func (*FilesService) UploadIcon

func (s *FilesService) UploadIcon(in *Files_UploadIconRequest) (out *Files_UploadIconResponse, resp *http.Response, err error)

func (*FilesService) UploadMedia

func (s *FilesService) UploadMedia(in *Files_UploadMediaRequest) (out *Files_UploadMediaResponse, resp *http.Response, err error)

type Files_FileDownloadAddressRequest

type Files_FileDownloadAddressRequest struct {
	FileKey uint32 `json:"FileKey,omitempty"`
}

type Files_FileDownloadAddressResponse

type Files_FileDownloadAddressResponse struct {
	Code         int32  `json:"code,omitempty"`
	Message      string `json:"message,omitempty"`
	FileName     string `json:"fileName,omitempty"`
	DownloadPath string `json:"downloadPath,omitempty"`
}

type Files_UploadFileRequest

type Files_UploadFileRequest struct {
	ConversationId uint32         `json:"ConversationId,omitempty"`
	File           multipart.File `json:"File,omitempty"`
	Name           string         `json:"Name,omitempty"`
}

type Files_UploadFileResponse

type Files_UploadFileResponse struct {
	Code          int32  `json:"code,omitempty"`
	Message       string `json:"message,omitempty"`
	SavedFileName string `json:"savedFileName,omitempty"`
	FileKey       uint32 `json:"fileKey,omitempty"`
	FileSize      uint64 `json:"fileSize,omitempty"`
}

type Files_UploadIconRequest

type Files_UploadIconRequest struct {
	File multipart.File `json:"File,omitempty"`
	Name string         `json:"Name,omitempty"`
}

type Files_UploadIconResponse

type Files_UploadIconResponse struct {
	Code         int32  `json:"code,omitempty"`
	Message      string `json:"message,omitempty"`
	FileKey      uint32 `json:"fileKey,omitempty"`
	DownloadPath string `json:"downloadPath,omitempty"`
}

type Files_UploadMediaRequest

type Files_UploadMediaRequest struct {
	File multipart.File `json:"File,omitempty"`
	Name string         `json:"Name,omitempty"`
}

type Files_UploadMediaResponse

type Files_UploadMediaResponse struct {
	Code         int32  `json:"code,omitempty"`
	Message      string `json:"message,omitempty"`
	FileKey      string `json:"FileKey,omitempty"`
	DownloadPath string `json:"downloadPath,omitempty"`
}

type FriendshipService

type FriendshipService struct {
	// contains filtered or unexported fields
}

func NewFriendshipService

func NewFriendshipService(client *http.Client, baseUrl string) *FriendshipService

func (*FriendshipService) CompleteRequest

func (*FriendshipService) CreateRequest

func (*FriendshipService) DeleteFriend

func (*FriendshipService) DiscoverFriends

func (*FriendshipService) Mine

func (s *FriendshipService) Mine() (out *Friendship_MineResponse, resp *http.Response, err error)

func (*FriendshipService) MyRequests

func (s *FriendshipService) MyRequests() (out *Friendship_MyRequestsResponse, resp *http.Response, err error)

func (*FriendshipService) ReportHim

func (*FriendshipService) SearchEverything

func (*FriendshipService) UserDetail

type Friendship_CompleteRequestRequest

type Friendship_CompleteRequestRequest struct {
	Id     string `json:"Id,omitempty"`
	Accept bool   `json:"Accept,omitempty"`
}

type Friendship_CompleteRequestResponse

type Friendship_CompleteRequestResponse struct {
	Code    int32  `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

type Friendship_CreateRequestRequest

type Friendship_CreateRequestRequest struct {
	Id string `json:"id,omitempty"`
}

type Friendship_CreateRequestResponse

type Friendship_CreateRequestResponse struct {
	Code    int32  `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
	Value   uint32 `json:"value,omitempty"`
}

type Friendship_DeleteFriendRequest

type Friendship_DeleteFriendRequest struct {
	Id string `json:"id,omitempty"`
}

type Friendship_DeleteFriendResponse

type Friendship_DeleteFriendResponse struct {
	Code    int32  `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

type Friendship_DiscoverFriendsRequest

type Friendship_DiscoverFriendsRequest struct {
	Take uint32 `json:"take,omitempty"`
}

type Friendship_DiscoverFriendsResponse

type Friendship_DiscoverFriendsResponse struct {
	Code    int32                                     `json:"code,omitempty"`
	Message string                                    `json:"message,omitempty"`
	Items   []Friendship_DiscoverFriendsResponse_Item `json:"items,omitempty"`
}

type Friendship_DiscoverFriendsResponse_Item

type Friendship_DiscoverFriendsResponse_Item struct {
	CommonFriends uint32                                             `json:"commonFriends,omitempty"`
	CommonGroups  uint32                                             `json:"commonGroups,omitempty"`
	SentRequest   bool                                               `json:"sentRequest,omitempty"`
	TargetUser    Friendship_DiscoverFriendsResponse_Item_TargetUser `json:"targetUser,omitempty"`
}

type Friendship_DiscoverFriendsResponse_Item_TargetUser

type Friendship_DiscoverFriendsResponse_Item_TargetUser struct {
	MakeEmailPublic   bool   `json:"makeEmailPublic,omitempty"`
	Email             string `json:"email,omitempty"`
	Id                string `json:"id,omitempty"`
	Bio               string `json:"bio,omitempty"`
	NickName          string `json:"nickName,omitempty"`
	Sex               string `json:"sex,omitempty"`
	HeadImgFileKey    uint32 `json:"headImgFileKey,omitempty"`
	PreferedLanguage  string `json:"preferedLanguage,omitempty"`
	AccountCreateTime string `json:"accountCreateTime,omitempty"`
	EmailConfirmed    bool   `json:"emailConfirmed,omitempty"`
}

type Friendship_MineResponse

type Friendship_MineResponse struct {
	Code    int32                           `json:"code,omitempty"`
	Message string                          `json:"message,omitempty"`
	Users   []Friendship_MineResponse_User  `json:"users,omitempty"`
	Groups  []Friendship_MineResponse_Group `json:"groups,omitempty"`
}

type Friendship_MineResponse_Group

type Friendship_MineResponse_Group struct {
	ImageKey               uint32 `json:"imageKey,omitempty"`
	Name                   string `json:"name,omitempty"`
	HasPassword            bool   `json:"hasPassword,omitempty"`
	OwnerId                string `json:"ownerId,omitempty"`
	Id                     uint32 `json:"id,omitempty"`
	HasTimer               bool   `json:"hasTimer,omitempty"`
	ConversationCreateTime string `json:"conversationCreateTime,omitempty"`
}

type Friendship_MineResponse_User

type Friendship_MineResponse_User struct {
	MakeEmailPublic   bool   `json:"makeEmailPublic,omitempty"`
	Email             string `json:"email,omitempty"`
	Id                string `json:"id,omitempty"`
	Bio               string `json:"bio,omitempty"`
	NickName          string `json:"nickName,omitempty"`
	Sex               string `json:"sex,omitempty"`
	HeadImgFileKey    uint32 `json:"headImgFileKey,omitempty"`
	PreferedLanguage  string `json:"preferedLanguage,omitempty"`
	AccountCreateTime string `json:"accountCreateTime,omitempty"`
	EmailConfirmed    bool   `json:"emailConfirmed,omitempty"`
}

type Friendship_MyRequestsResponse

type Friendship_MyRequestsResponse struct {
	Code    int32                                `json:"code,omitempty"`
	Message string                               `json:"message,omitempty"`
	Items   []Friendship_MyRequestsResponse_Item `json:"items,omitempty"`
}

type Friendship_MyRequestsResponse_Item

type Friendship_MyRequestsResponse_Item struct {
	Id         uint32                                     `json:"id,omitempty"`
	CreatorId  string                                     `json:"creatorId,omitempty"`
	Creator    Friendship_MyRequestsResponse_Item_Creator `json:"creator,omitempty"`
	TargetId   string                                     `json:"targetId,omitempty"`
	CreateTime string                                     `json:"createTime,omitempty"`
	Completed  bool                                       `json:"completed,omitempty"`
}

type Friendship_MyRequestsResponse_Item_Creator

type Friendship_MyRequestsResponse_Item_Creator struct {
	MakeEmailPublic   bool   `json:"makeEmailPublic,omitempty"`
	Email             string `json:"email,omitempty"`
	Id                string `json:"id,omitempty"`
	Bio               string `json:"bio,omitempty"`
	NickName          string `json:"nickName,omitempty"`
	Sex               string `json:"sex,omitempty"`
	HeadImgFileKey    uint32 `json:"headImgFileKey,omitempty"`
	PreferedLanguage  string `json:"preferedLanguage,omitempty"`
	AccountCreateTime string `json:"accountCreateTime,omitempty"`
	EmailConfirmed    bool   `json:"emailConfirmed,omitempty"`
}

type Friendship_ReportHimRequest

type Friendship_ReportHimRequest struct {
	TargetUserId string `json:"TargetUserId,omitempty"`
	Reason       string `json:"Reason,omitempty"`
}

type Friendship_ReportHimResponse

type Friendship_ReportHimResponse struct {
	Code    int32  `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

type Friendship_SearchEverythingRequest

type Friendship_SearchEverythingRequest struct {
	SearchInput string `json:"SearchInput,omitempty"`
	Take        uint32 `json:"Take,omitempty"`
}

type Friendship_SearchEverythingResponse

type Friendship_SearchEverythingResponse struct {
	Code        int32                                       `json:"code,omitempty"`
	Message     string                                      `json:"message,omitempty"`
	UsersCount  uint32                                      `json:"usersCount,omitempty"`
	GroupsCount uint32                                      `json:"groupsCount,omitempty"`
	Users       []Friendship_SearchEverythingResponse_User  `json:"users,omitempty"`
	Groups      []Friendship_SearchEverythingResponse_Group `json:"groups,omitempty"`
}

type Friendship_SearchEverythingResponse_Group

type Friendship_SearchEverythingResponse_Group struct {
	ImageKey               uint32 `json:"imageKey,omitempty"`
	Name                   string `json:"name,omitempty"`
	HasPassword            bool   `json:"hasPassword,omitempty"`
	OwnerId                string `json:"ownerId,omitempty"`
	Id                     uint32 `json:"id,omitempty"`
	HasTimer               bool   `json:"hasTimer,omitempty"`
	ConversationCreateTime string `json:"conversationCreateTime,omitempty"`
}

type Friendship_SearchEverythingResponse_User

type Friendship_SearchEverythingResponse_User struct {
	MakeEmailPublic   bool   `json:"makeEmailPublic,omitempty"`
	Email             string `json:"email,omitempty"`
	Id                string `json:"id,omitempty"`
	Bio               string `json:"bio,omitempty"`
	NickName          string `json:"nickName,omitempty"`
	Sex               string `json:"sex,omitempty"`
	HeadImgFileKey    uint32 `json:"headImgFileKey,omitempty"`
	PreferedLanguage  string `json:"preferedLanguage,omitempty"`
	AccountCreateTime string `json:"accountCreateTime,omitempty"`
	EmailConfirmed    bool   `json:"emailConfirmed,omitempty"`
}

type Friendship_UserDetailRequest

type Friendship_UserDetailRequest struct {
	Id string `json:"id,omitempty"`
}

type Friendship_UserDetailResponse

type Friendship_UserDetailResponse struct {
	Code           int32                                        `json:"code,omitempty"`
	Message        string                                       `json:"message,omitempty"`
	User           Friendship_UserDetailResponse_User           `json:"user,omitempty"`
	AreFriends     bool                                         `json:"areFriends,omitempty"`
	SentRequest    bool                                         `json:"sentRequest,omitempty"`
	PendingRequest Friendship_UserDetailResponse_PendingRequest `json:"pendingRequest,omitempty"`
	ConversationId uint32                                       `json:"conversationId,omitempty"`
}

type Friendship_UserDetailResponse_PendingRequest

type Friendship_UserDetailResponse_PendingRequest struct {
	Id         uint32                                               `json:"id,omitempty"`
	CreatorId  string                                               `json:"creatorId,omitempty"`
	Creator    Friendship_UserDetailResponse_PendingRequest_Creator `json:"creator,omitempty"`
	TargetId   string                                               `json:"targetId,omitempty"`
	CreateTime string                                               `json:"createTime,omitempty"`
	Completed  bool                                                 `json:"completed,omitempty"`
}

type Friendship_UserDetailResponse_PendingRequest_Creator

type Friendship_UserDetailResponse_PendingRequest_Creator struct {
	MakeEmailPublic   bool   `json:"makeEmailPublic,omitempty"`
	Email             string `json:"email,omitempty"`
	Id                string `json:"id,omitempty"`
	Bio               string `json:"bio,omitempty"`
	NickName          string `json:"nickName,omitempty"`
	Sex               string `json:"sex,omitempty"`
	HeadImgFileKey    uint32 `json:"headImgFileKey,omitempty"`
	PreferedLanguage  string `json:"preferedLanguage,omitempty"`
	AccountCreateTime string `json:"accountCreateTime,omitempty"`
	EmailConfirmed    bool   `json:"emailConfirmed,omitempty"`
}

type Friendship_UserDetailResponse_User

type Friendship_UserDetailResponse_User struct {
	MakeEmailPublic   bool   `json:"makeEmailPublic,omitempty"`
	Email             string `json:"email,omitempty"`
	Id                string `json:"id,omitempty"`
	Bio               string `json:"bio,omitempty"`
	NickName          string `json:"nickName,omitempty"`
	Sex               string `json:"sex,omitempty"`
	HeadImgFileKey    uint32 `json:"headImgFileKey,omitempty"`
	PreferedLanguage  string `json:"preferedLanguage,omitempty"`
	AccountCreateTime string `json:"accountCreateTime,omitempty"`
	EmailConfirmed    bool   `json:"emailConfirmed,omitempty"`
}

type GroupsService

type GroupsService struct {
	// contains filtered or unexported fields
}

func NewGroupsService

func NewGroupsService(client *http.Client, baseUrl string) *GroupsService

func (*GroupsService) CreateGroupConversation

func (*GroupsService) JoinGroup

func (*GroupsService) KickMember

func (*GroupsService) LeaveGroup

func (*GroupsService) SetGroupMuted

func (*GroupsService) TransferGroupOwner

func (*GroupsService) UpdateGroupInfo

func (*GroupsService) UpdateGroupPassword

type Groups_CreateGroupConversationRequest

type Groups_CreateGroupConversationRequest struct {
	GroupName    string `json:"GroupName,omitempty"`
	JoinPassword string `json:"JoinPassword,omitempty"`
}

type Groups_CreateGroupConversationResponse

type Groups_CreateGroupConversationResponse struct {
}

type Groups_JoinGroupRequest

type Groups_JoinGroupRequest struct {
	GroupName    string `json:"groupName,omitempty"`
	JoinPassword string `json:"joinPassword,omitempty"`
}

type Groups_JoinGroupResponse

type Groups_JoinGroupResponse struct {
}

type Groups_KickMemberRequest

type Groups_KickMemberRequest struct {
	GroupName    string `json:"groupName,omitempty"`
	TargetUserId string `json:"targetUserId,omitempty"`
}

type Groups_KickMemberResponse

type Groups_KickMemberResponse struct {
}

type Groups_LeaveGroupRequest

type Groups_LeaveGroupRequest struct {
	GroupName string `json:"groupName,omitempty"`
}

type Groups_LeaveGroupResponse

type Groups_LeaveGroupResponse struct {
}

type Groups_SetGroupMutedRequest

type Groups_SetGroupMutedRequest struct {
	GroupName string `json:"groupName,omitempty"`
	SetMuted  bool   `json:"setMuted,omitempty"`
}

type Groups_SetGroupMutedResponse

type Groups_SetGroupMutedResponse struct {
}

type Groups_TransferGroupOwnerRequest

type Groups_TransferGroupOwnerRequest struct {
	GroupName    string `json:"groupName,omitempty"`
	TargetUserId string `json:"targetUserId,omitempty"`
}

type Groups_TransferGroupOwnerResponse

type Groups_TransferGroupOwnerResponse struct {
}

type Groups_UpdateGroupInfoRequest

type Groups_UpdateGroupInfoRequest struct {
	GroupName string `json:"GroupName,omitempty"`
	NewName   string `json:"NewName,omitempty"`
	AvatarKey uint32 `json:"AvatarKey,omitempty"`
}

type Groups_UpdateGroupInfoResponse

type Groups_UpdateGroupInfoResponse struct {
}

type Groups_UpdateGroupPasswordRequest

type Groups_UpdateGroupPasswordRequest struct {
	GroupName       string `json:"GroupName,omitempty"`
	NewJoinPassword string `json:"NewJoinPassword,omitempty"`
}

type Groups_UpdateGroupPasswordResponse

type Groups_UpdateGroupPasswordResponse struct {
}

type OssService

type OssService struct {
	// contains filtered or unexported fields
}

func NewOssService

func NewOssService(client *http.Client, baseUrl string) *OssService

func (*OssService) HeadImgFile

func (s *OssService) HeadImgFile(in *Oss_Download_FromKeyRequest) ([]byte, *http.Response, error)

type Oss_Download_FromKeyRequest

type Oss_Download_FromKeyRequest struct {
	HeadImgFileKey uint32  `json:"headImgFileKey,omitempty"`
	W              *uint32 `json:"w,omitempty"`
	H              *uint32 `json:"h,omitempty"`
}

type RequestFile

type RequestFile interface {
	io.Reader
	Name() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL