Line

package
v0.0.0-...-3e87f45 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

* @Author: NyanCatda * @Date: 2022-04-03 16:39:38 * @LastEditTime: 2022-04-03 22:23:02 * @LastEditors: NyanCatda * @Description: 群组类请求封装 * @FilePath: \Momizi\Internal\MessageSend\ChatSoftwareAPI\Line\Group.go

* @Author: McPlus * @Date: 2022-03-23 20:22:16 * @LastEditTime: 2022-03-28 15:16:09 * @LastEditors: NyanCatda * @Description: Message * @FilePath: \Momizi\Internal\MessageSend\ChatSoftwareAPI\Line\Message.go

* @Author: NyanCatda * @Date: 2022-04-03 16:27:55 * @LastEditTime: 2022-04-03 22:22:50 * @LastEditors: NyanCatda * @Description: 个人资料获取 * @FilePath: \Momizi\Internal\MessageSend\ChatSoftwareAPI\Line\Profile.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContent

func GetContent(MessageID string) (string, int64, error)

*

  • @description: 获取文件内容
  • @param {string} MessageID 消息ID
  • @return {string} 文件路径
  • @return {int64} 文件大小
  • @return {error} 错误信息

Types

type GroupChatSummary

type GroupChatSummary struct {
	GroupID    string `json:"groupId"`    // 群组ID
	GroupName  string `json:"groupName"`  // 群组名称
	PictureURL string `json:"pictureUrl"` // 群组头像链接
}

func GetGroupChatSummary

func GetGroupChatSummary(GroupID string) (GroupChatSummary, error)

*

  • @description: 获取群组信息
  • @param {string} GroupID 群组ID
  • @return {GroupChatSummary} 群组信息
  • @return {error} 错误信息

type UserProfile

type UserProfile struct {
	DisplayName   string `json:"displayName"`   // 用户名
	UserID        string `json:"userId"`        // 用户ID
	Language      string `json:"language"`      // 语言
	PictureURL    string `json:"pictureUrl"`    // 头像链接
	StatusMessage string `json:"statusMessage"` // 状态信息
}

func GetProfile

func GetProfile(UserID string) (UserProfile, error)

*

  • @description: 获取个人资料
  • @param {string} UserID 用户ID
  • @return {UserProfile} 个人资料
  • @return {error} 错误信息

Jump to

Keyboard shortcuts

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