meta

package
v0.0.0-...-417840b Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const UserMyself = 0

自己的uid 用于不填的默认行为

Variables

This section is empty.

Functions

This section is empty.

Types

type DeletePostOptions

type DeletePostOptions struct {
	Reason DeleteReason
}

func (DeletePostOptions) Apply

func (dpo DeletePostOptions) Apply(r *rest.Request) *rest.Request

type DeleteReason

type DeleteReason uint8
const (
	// 默认  无原因 向后兼容
	NoReason DeleteReason = 0
	// 包含引战/人身攻击/挂人/攻击他人作品行为
	AttackOthers DeleteReason = 1
	// 复制粘贴跟风刷屏行为
	SPAMorFlood DeleteReason = 2
	// 内容涉嫌侵权
	UnauthorizedRepublish DeleteReason = 3
	// 包含交易、账号转送、广告内容
	AccountTrade DeleteReason = 4
	// 包含其他游戏、社区平台、App相关内容及链接等引流行为
	OuterLink DeleteReason = 5
	// 发布与版区对应游戏无关内容
	UnrelatedContent DeleteReason = 6
	// 包含未证实/虚假信息
	FakeNewsOrReveals DeleteReason = 7
	// 包含违反游戏用户协议内容
	GameRuleViolation DeleteReason = 8
	// 违反社区用户服务协议
	ForumRuleViolation DeleteReason = 9
	// 包含违反国家法律法规政策的内容
	LawViolation DeleteReason = 10
	// 包含违反公序良俗的内容
	MoralityViolation DeleteReason = 11
)

func GuessDeleteReason

func GuessDeleteReason(s string) (ret DeleteReason)

type DeleteReplyOptions

type DeleteReplyOptions struct {
	ReplyID int
}

func (DeleteReplyOptions) Apply

func (dro DeleteReplyOptions) Apply(r *rest.Request) *rest.Request

type Forum

type Forum jsoniter.Number

论坛板块

const (
	NoForum    Forum = "0"
	YsTavern   Forum = "26"
	YsGuide    Forum = "43"
	YsDoujin   Forum = "29"
	YsOfficial Forum = "28"
	YsCoser    Forum = "49"
	YsHardcore Forum = "50"
)

func (Forum) Int

func (ft Forum) Int() int

func (Forum) Name

func (ft Forum) Name() string

type ForumSilence

type ForumSilence struct {
	ID       Forum
	Duration time.Duration
}

type GetPostOptions

type GetPostOptions struct {
}

func (GetPostOptions) Apply

func (gpo GetPostOptions) Apply(r *rest.Request) *rest.Request

type ListOrder

type ListOrder uint8
const (
	// default
	None ListOrder = 0
	// 最早
	Asc ListOrder = 1
	// 最新
	Desc ListOrder = 2
)

type ListReplyOptions

type ListReplyOptions struct {
	Size      int
	IsHot     bool
	OrderType ListOrder
}

func (ListReplyOptions) Apply

func (lro ListReplyOptions) Apply(r *rest.Request) *rest.Request

type MovePostOptions

type MovePostOptions struct {
	To         Forum
	WithTopics []Topic
}

func (MovePostOptions) Apply

func (mpo MovePostOptions) Apply(r *rest.Request) *rest.Request

type RemoveTopicOptions

type RemoveTopicOptions struct {
	Remove []Topic
}

func (RemoveTopicOptions) Apply

func (rto RemoveTopicOptions) Apply(r *rest.Request) *rest.Request

type SilenceUserOptions

type SilenceUserOptions struct {
	//  全米游社禁言时间
	Global time.Duration
	// 单版块禁言
	SilenceForum []ForumSilence
}

func (SilenceUserOptions) Apply

func (suo SilenceUserOptions) Apply(r *rest.Request) *rest.Request

type Topic

type Topic uint32

话题

const (
	YsWaterSlime    Topic = 180
	YsFriendRecruit Topic = 289
)

func (Topic) Name

func (tt Topic) Name() string

type UnSilenceUserOptions

type UnSilenceUserOptions struct {
	// 全米游社解禁
	Global bool
	// 单版块解禁  目前这个API不支持多板块同时解禁
	UnSilenceForum Forum
}

func (UnSilenceUserOptions) Apply

func (usuo UnSilenceUserOptions) Apply(r *rest.Request) *rest.Request

type UserInfoGetOptions

type UserInfoGetOptions struct {
}

func (UserInfoGetOptions) Apply

func (uio UserInfoGetOptions) Apply(r *rest.Request) *rest.Request

Jump to

Keyboard shortcuts

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