mock

package
v0.36.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArticleListResult = &ArticleListResult_t{
	List: []*apitypes.ArticleSummary{
		{
			FBoardID:   apitypes.FBoardID("WhoAmI"),
			ArticleID:  apitypes.FArticleID("M.1234567890.A.123"),
			IsDeleted:  false,
			CreateTime: types.Time8(1234567890),
			MTime:      types.Time8(1234567888),
			Recommend:  8,
			Owner:      "okcool",
			Title:      "[問題]然後呢?~",
			Class:      "問題",
			Money:      5,
			Filemode:   0,
			URL:        "http://localhost/bbs/test/M.1234567890.A.123",
		},
		{
			FBoardID:   apitypes.FBoardID("WhoAmI"),
			ArticleID:  apitypes.FArticleID("M.1234567900.A.125"),
			IsDeleted:  true,
			CreateTime: types.Time8(1234567900),
			MTime:      types.Time8(1234567898),
			Recommend:  -20,
			Owner:      "somebody",
			Title:      "再來呢?~",
			Money:      123,
			Filemode:   0,
			URL:        "http://localhost/bbs/test/M.1234567900.A.125",
		},
		{
			FBoardID:   apitypes.FBoardID("WhoAmI"),
			ArticleID:  apitypes.FArticleID("M.1234568900.A.125"),
			IsDeleted:  false,
			CreateTime: types.Time8(1234568900),
			MTime:      types.Time8(1234568898),
			Recommend:  -20,
			Owner:      "somebody2",
			Title:      "還有呢?~",
			Money:      123,
			Filemode:   0,
			URL:        "http://localhost/bbs/test/M.1234568900.A.125",
		},
	},
	NextIdx: "5",
}
View Source
var BoardListResult = &BoardListResult_t{
	List: []*apitypes.BoardSummary{
		{
			FBoardID:  apitypes.FBoardID("WhoAmI"),
			Brdname:   "WhoAmI",
			Title:     "我~是~誰?~",
			BrdAttr:   0,
			BoardType: "◎",
			Category:  "嘰哩",
			NUser:     39,
			BMs:       []bbs.UUserID{"okcool", "teemo"},
			Reason:    "",
			Read:      true,
			Total:     134,
		},
		{
			FBoardID:  apitypes.FBoardID("ALLPOST"),
			Brdname:   "ALLPOST",
			Title:     "所有文章都底家",
			BrdAttr:   ptttype.BRD_POSTMASK,
			BoardType: "◎",
			Category:  "嘰哩",
			NUser:     234,
			BMs:       []bbs.UUserID{"test1"},
			Reason:    "",
			Read:      false,
			Total:     123124,
		},
	},
	NextIdx: "3",
}
View Source
var CommentListResult = &CommentListResult_t{
	List: []*apitypes.Comment{
		{
			FBoardID:   apitypes.FBoardID("WhoAmI"),
			FArticleID: apitypes.FArticleID("M.1234567890.A.123"),
			CommentID:  "alasdjfksj",
			TheType:    0,
			RefID:      "bbasdkfjs",
			IsDeleted:  false,
			CreateTime: types.Time8(1345678901),
			Owner:      "ckoool",
			Content: [][]*types.Rune{
				{
					{Utf8: "怎麼了嗎?~"},
				},
			},
			IP:   "localhost",
			Host: "我家",
		},
		{
			FBoardID:   apitypes.FBoardID("WhoAmI"),
			FArticleID: apitypes.FArticleID("M.1234567890.A.123"),
			CommentID:  "bcdasdjfksj",
			TheType:    0,
			RefID:      "bdfsdkfjs",
			IsDeleted:  false,
			CreateTime: types.Time8(1345678902),
			Owner:      "teamore",
			Content: [][]*types.Rune{
				{
					{Utf8: "真的嗎?~"},
				},
			},
			IP:   "localhost",
			Host: "全家",
		},
		{
			FBoardID:   apitypes.FBoardID("WhoAmI"),
			FArticleID: apitypes.FArticleID("M.1234567890.A.123"),
			CommentID:  "bcdDFsdjfksj",
			TheType:    0,
			RefID:      "bdfsdkfjs",
			IsDeleted:  true,
			CreateTime: types.Time8(1345688902),
			Owner:      "tealess",
			Content: [][]*types.Rune{
				{
					{Utf8: "真的假的?~"},
				},
			},
			IP:   "localhost",
			Host: "妳家",
		},
		{
			FBoardID:   apitypes.FBoardID("WhoAmI"),
			FArticleID: apitypes.FArticleID("M.1234567890.A.123"),
			CommentID:  "bcdDsadFsdjfksj",
			TheType:    0,
			RefID:      "bdfsdkfjs",
			IsDeleted:  true,
			CreateTime: types.Time8(1345700902),
			Owner:      "ok2",
			Content: [][]*types.Rune{
				{
					{Utf8: "然後呢?~"},
				},
			},
			IP:   "localhost",
			Host: "大家",
		},
	},
	NextIdx: "10",
}

Functions

This section is empty.

Types

type ArticleListResult_t

type ArticleListResult_t struct {
	List    []*apitypes.ArticleSummary `json:"list"`
	NextIdx string                     `json:"next_idx"`

	TokenUser bbs.UUserID `json:"tokenuser,omitempty"`
}

type BoardListResult_t

type BoardListResult_t struct {
	List    []*apitypes.BoardSummary `json:"list"`
	NextIdx string                   `json:"next_idx"`
}

type CommentListResult_t

type CommentListResult_t struct {
	List    []*apitypes.Comment `json:"list"`
	NextIdx string              `json:"next_idx"`
}

Jump to

Keyboard shortcuts

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