bilibiliforward

package
v0.0.0-...-e2c35cc Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Overview

Package bilibiliforward Bilibili站内私信转发服务

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginOfTheDay

func BeginOfTheDay() int64

func ExtractJctToken

func ExtractJctToken(cookie string) string

func ExtractUID

func ExtractUID(cookie string) string

func GetCookieOf

func GetCookieOf(uid int64) (cookie string)

GetCookieOf 获取某人cookie

func GetUIDMsgs

func GetUIDMsgs(cookie string, uid string, amount string) []byte

func GetUserName

func GetUserName(cookie string, uid string) string

func GetUserPhoto

func GetUserPhoto(cookie string, uid string) string

func InsertCookieOf

func InsertCookieOf(uid int64, cookie string) error

InsertCookieOf 更新cookie(uid QQ号, cookie 用户提供的cookie)

func ReceiveList

func ReceiveList(cookie string, begintime int64) []byte

func SendPic2U

func SendPic2U(cookie string, uid string, piclink string) string

func SendText2U

func SendText2U(cookie string, uid string, content string) string

func SizeParse

func SizeParse(piclink string) (int, int)

Types

type AllTogether

type AllTogether struct {
	Code    int    `json:"code"`
	Msg     string `json:"msg"`
	Message string `json:"message"`
	TTL     int    `json:"ttl"`
	Data    Data   `json:"data"`
}

type Card

type Card struct {
	UID     string `json:"mid"`
	Name    string `json:"name"`
	ProfPic string `json:"face"`
}

type Data

type Data struct {
	Sessions []SessionList `json:"session_list"`
	HasMore  int           `json:"has_more"`
}

type InfoBasic

type InfoBasic struct {
	Code int  `json:"code"`
	Card Card `json:"card"`
}

type LastMsg

type LastMsg struct {
	SenderUID int64  `json:"sender_uid"`
	MsgType   int    `json:"msg_type"`
	Content   string `json:"content"`
	TimeStamp int64  `json:"timestamp"`
}

type MessageCon

type MessageCon struct {
	Content    string `json:"content"`
	Author     string `json:"author"`
	Title      string `json:"title"`
	CoverLink  string `json:"cover"`
	SCoverLink string `json:"thumb"`
	Describe   string `json:"desc"`
	BVID       string `json:"bvid"`
	ImageType  string `json:"imageType"`
	URL        string `json:"url"`
	Text       string `json:"text"`
	Views      int64  `json:"view"`
	Danmks     int64  `json:"danmaku"`
	PubDate    int64  `json:"pub_date"`
}

type MessageConSingle

type MessageConSingle struct {
	Content    string `json:"content"`
	Author     string `json:"author"`
	Title      string `json:"title"`
	CoverLink  string `json:"cover"`
	SCoverLink string `json:"thumb"`
	Describe   string `json:"desc"`
	BVID       string `json:"bvid"`
	ImageType  string `json:"imageType"`
	URL        string `json:"url"`
	Text       string `json:"text"`
	Views      int64  `json:"view"`
	Danmks     int64  `json:"danmaku"`
	PubDate    int64  `json:"pub_date"`
	JumpText   string `json:"jump_text"`
}

type MessageLST

type MessageLST struct {
	SenderUID int64  `json:"sender_uid"`
	Content   string `json:"content"`
	MsgSeqno  int64  `json:"msg_seqno"`
	MsgType   int    `json:"msg_type"`
	TimeStamp int64  `json:"timestamp"`
}

type Record

type Record struct {
	UID    int64
	Cookie string
}

Record 记录

type SendStat

type SendStat struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	TTL     int    `json:"ttl"`
}

type SessionList

type SessionList struct {
	TalkerID    int64   `json:"talker_id"`
	UnreadCount int     `json:"unread_count"`
	LastMsg     LastMsg `json:"last_msg"`
	GrpName     string  `json:"group_name"`
	MaxSeqno    int64   `json:"max_seqno"`
}

type Storage

type Storage struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Storage cookie库系统

type UIDAll

type UIDAll struct {
	Code    int     `json:"code"`
	Msg     string  `json:"msg"`
	Message string  `json:"message"`
	TTL     int     `json:"ttl"`
	Data    UIDData `json:"data"`
}

type UIDData

type UIDData struct {
	Messages []MessageLST `json:"messages"` // 修改这里的标签
	HasMore  int          `json:"has_more"`
}

Jump to

Keyboard shortcuts

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