types

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Code generated by goctl. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	Id          string      `json:"id"`
	CreateAt    int64       `json:"createAt"`
	CommunityId string      `json:"communityId"`
	Name        string      `json:"name"`
	Phone       string      `json:"phone"`
	User        UserPreview `json:"user"`
	Wechat      string      `json:"wechat"`
}

type ApplySignedUrlReq added in v1.1.11

type ApplySignedUrlReq struct {
	Prefix string `json:"prefix,optional"`
	Suffix string `json:"suffix,optional"`
}

type ApplySignedUrlResp added in v1.1.11

type ApplySignedUrlResp struct {
	Status
	Url          string `json:"url"`
	SessionToken string `json:"sessionToken"`
}

type Cat

type Cat struct {
	Id           string   `json:"id"`
	CreateAt     int64    `json:"createAt"`
	Age          string   `json:"age"`
	CommunityId  string   `json:"communityId"`
	Color        string   `json:"color"`
	Details      string   `json:"details"`
	Name         string   `json:"name"`
	Popularity   int64    `json:"popularity"`
	Sex          string   `json:"sex"`
	Status       int32    `json:"status"`
	Area         string   `json:"area"`
	IsSnipped    bool     `json:"isSnipped"`
	IsSterilized bool     `json:"isSterilized"`
	Avatars      []string `json:"avatars"`
}

type CatPreview

type CatPreview struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	Area        string `json:"area"`
	Color       string `json:"color"`
	AvatarUrl   string `json:"avatarUrl"`
	IsCollected bool   `json:"isCollected"`
}

type Comment

type Comment struct {
	Id        string      `json:"id"`
	CreateAt  int64       `json:"createAt"`
	Text      string      `json:"text"`
	User      UserPreview `json:"user"`
	Comments  int64       `json:"comments"`
	ReplyName string      `json:"replyName,optional"`
}

type DeleteCatReq

type DeleteCatReq struct {
	CatId string `json:"catId"`
}

type DeleteCatResp

type DeleteCatResp struct {
	Status
}

type DeleteMomentReq

type DeleteMomentReq struct {
	MomentId string `json:"momentId"`
}

type DeleteMomentResp

type DeleteMomentResp struct {
	Status
}

type DeleteNewsReq

type DeleteNewsReq struct {
	Id string `json:"id"`
}

type DeleteNewsResp

type DeleteNewsResp struct {
	Status
}

type DeleteNoticeReq

type DeleteNoticeReq struct {
	Id string `json:"id"`
}

type DeleteNoticeResp

type DeleteNoticeResp struct {
	Status
}

type DeletePostReq

type DeletePostReq struct {
	Id string `json:"id"`
}

type DeletePostResp

type DeletePostResp struct {
	Status
}

type DoLikeReq

type DoLikeReq struct {
	TargetId   string `json:"targetId"`
	TargetType int64  `json:"targetType"`
}

type DoLikeResp

type DoLikeResp struct {
	Status
}

type GetAdminsReq

type GetAdminsReq struct {
	CommunityId string `form:"communityId"`
}

type GetAdminsResp

type GetAdminsResp struct {
	Status
	Admins []Admin `json:"admins"`
}

type GetCatDetailReq

type GetCatDetailReq struct {
	CatId string `form:"catId"`
}

type GetCatDetailResp

type GetCatDetailResp struct {
	Status
	Cat Cat `json:"cat"`
}

type GetCatPreviewsReq

type GetCatPreviewsReq struct {
	CommunityId string `form:"communityId"`
	Page        int64  `form:"page"`
}

type GetCatPreviewsResp

type GetCatPreviewsResp struct {
	Status
	Cats  []CatPreview `json:"cats"`
	Total int64        `json:"total"`
}

type GetCommentsReq

type GetCommentsReq struct {
	Scope string `form:"scope"`
	Page  int64  `form:"page"`
	Id    string `form:"id"`
}

type GetCommentsResp

type GetCommentsResp struct {
	Status
	Comments []Comment `json:"comments"`
	Total    int64     `json:"total"`
}

type GetLikedCountReq

type GetLikedCountReq struct {
	TargetId   string `form:"targetId"`
	TargetType int64  `form:"targetType"`
}

type GetLikedCountResp

type GetLikedCountResp struct {
	Status
	Count int64 `json:"count"`
}

type GetMomentDetailReq

type GetMomentDetailReq struct {
	MomentId string `form:"momentId"`
}

type GetMomentDetailResp

type GetMomentDetailResp struct {
	Status
	Moment Moment `json:"moment"`
}

type GetMomentPreviewsReq

type GetMomentPreviewsReq struct {
	CommunityId string `form:"communityId"`
	Page        int64  `form:"page"`
}

type GetMomentPreviewsResp

type GetMomentPreviewsResp struct {
	Status
	Moments []Moment `json:"moments"`
	Total   int64    `json:"total"`
}

type GetNewsReq

type GetNewsReq struct {
	CommunityId string `form:"communityId"`
}

type GetNewsResp

type GetNewsResp struct {
	Status
	News []News `json:"news"`
}

type GetNoticesReq

type GetNoticesReq struct {
	CommunityId string `form:"communityId"`
}

type GetNoticesResp

type GetNoticesResp struct {
	Status
	Notices []Notice `json:"notices"`
}

type GetPostDetailReq

type GetPostDetailReq struct {
	PostId string `form:"postId"`
}

type GetPostDetailResp

type GetPostDetailResp struct {
	Post Post `json:"post"`
	Status
}

type GetPostPreviewsReq

type GetPostPreviewsReq struct {
	Page int64 `form:"page"`
}

type GetPostPreviewsResp

type GetPostPreviewsResp struct {
	Status
	Posts []Post `json:"posts"`
	Total int64  `json:"total"`
}

type GetUserInfoReq added in v1.1.1

type GetUserInfoReq struct {
}

type GetUserInfoResp added in v1.1.1

type GetUserInfoResp struct {
	Status
	User UserPreview `json:"user"`
}

type GetUserLikedReq

type GetUserLikedReq struct {
	TargetId   string `form:"targetId"`
	TargetType int64  `form:"targetType"`
}

type GetUserLikedResp

type GetUserLikedResp struct {
	Status
	Liked bool `json:"liked"`
}

type Moment

type Moment struct {
	Id          string      `json:"id"`
	CreateAt    int64       `json:"createAt"`
	CatId       string      `json:"catId,optional"`
	Photos      []string    `json:"photos"`
	Title       string      `json:"title"`
	Text        string      `json:"text"`
	User        UserPreview `json:"user"`
	CommunityId string      `json:"communityId"`
}

type NewCatReq

type NewCatReq struct {
	Id           string   `json:"id,optional"`
	Age          string   `json:"age"`
	CommunityId  string   `json:"communityId"`
	Color        string   `json:"color"`
	Details      string   `json:"details"`
	Name         string   `json:"name"`
	Sex          string   `json:"sex"`
	Area         string   `json:"area"`
	IsSnipped    bool     `json:"isSnipped"`
	IsSterilized bool     `json:"isSterilized"`
	Avatars      []string `json:"avatars"`
}

type NewCatResp

type NewCatResp struct {
	Status
	CatId string `json:"catId"`
}

type NewCommentReq

type NewCommentReq struct {
	Text  string `json:"text"`
	Id    string `json:"id,optional"`
	Scope string `json:"scope"`
}

type NewCommentResp

type NewCommentResp struct {
	Status
}

type NewMomentReq

type NewMomentReq struct {
	Id          string   `json:"id,optional"`
	Title       string   `json:"title"`
	CatId       string   `json:"catId,optional"`
	Text        string   `json:"text"`
	Photos      []string `json:"photos"`
	CommunityId string   `json:"communityId"`
}

type NewMomentResp

type NewMomentResp struct {
	MomentId string `json:"momentId"`
	Status
}

type NewNewsReq

type NewNewsReq struct {
	Id          string `json:"id,optional"`
	CommunityId string `json:"communityId,optional"`
	ImageUrl    string `json:"imageUrl"`
	LinkUrl     string `json:"linkUrl"`
	Type        string `json:"type"`
}

type NewNewsResp

type NewNewsResp struct {
	Status
	NewId string `json:"newId"`
}

type NewNoticeReq

type NewNoticeReq struct {
	Id          string `json:"id,optional"`
	CommunityId string `json:"communityId,optional"`
	Text        string `json:"text"`
}

type NewNoticeResp

type NewNoticeResp struct {
	Status
	NoticeId string `json:"noticeId"`
}

type NewPostReq

type NewPostReq struct {
	Id          string   `json:"id,optional"`
	IsAnonymous bool     `json:"isAnonymous"`
	Title       string   `json:"title"`
	Text        string   `json:"text"`
	CoverUrl    string   `json:"coverUrl,optional"`
	Tags        []string `json:"tags"`
}

type NewPostResp

type NewPostResp struct {
	PostId string `json:"postId"`
	Status
}

type News

type News struct {
	Id          string `json:"id"`
	CreateAt    int64  `json:"createAt"`
	CommunityId string `json:"communityId"`
	ImageUrl    string `json:"imageUrl"`
	LinkUrl     string `json:"linkUrl"`
	Type        string `json:"type"`
}

type Notice

type Notice struct {
	Id       string `json:"id"`
	Text     string `json:"text"`
	CreateAt int64  `json:"createAt"`
}

type Post

type Post struct {
	Id          string      `json:"id"`
	CreateAt    int64       `json:"createAt"`
	IsAnonymous bool        `json:"isAnonymous"`
	Title       string      `json:"title"`
	Text        string      `json:"text"`
	CoverUrl    string      `json:"coverUrl"`
	Tags        []string    `json:"tags"`
	Likes       int64       `json:"likes"`
	Comments    int64       `json:"comments"`
	User        UserPreview `json:"user"`
}

type SearchCatReq added in v1.1.5

type SearchCatReq struct {
	CommunityId string `form:"communityId"`
	Keyword     string `form:"keyword"`
	Page        int64  `form:"page"`
}

type SearchCatResp added in v1.1.5

type SearchCatResp struct {
	Status
	Cats  []CatPreview `json:"cats"`
	Total int64        `json:"total"`
}

type SearchMomentReq added in v1.1.5

type SearchMomentReq struct {
	CommunityId string `form:"communityId"`
	Keyword     string `form:"keyword"`
	Page        int64  `form:"page"`
}

type SearchMomentResp added in v1.1.5

type SearchMomentResp struct {
	Status
	Moments []Moment `json:"moments"`
	Total   int64    `json:"total"`
}

type SearchPostReq added in v1.1.5

type SearchPostReq struct {
	Keyword string `form:"keyword"`
	Page    int64  `form:"page"`
}

type SearchPostResp added in v1.1.5

type SearchPostResp struct {
	Status
	Posts []Post `json:"posts"`
	Total int64  `json:"total"`
}

type SendVerifyCodeReq

type SendVerifyCodeReq struct {
	AuthType string `json:"authType,options=phone|email"`
	AuthId   string `json:"authId"`
}

type SendVerifyCodeResp

type SendVerifyCodeResp struct {
	Status
}

type SetPasswordReq

type SetPasswordReq struct {
	Password string `json:"password"`
}

type SetPasswordResp

type SetPasswordResp struct {
	Status
}

type SignInReq

type SignInReq struct {
	AuthType string   `json:"authType,options=phone|email|wechat"`
	AuthId   string   `json:"authId"`
	Password string   `json:"password,optional"`
	Params   []string `json:"params,optional"`
}

type SignInResp

type SignInResp struct {
	Status
	UserId       string `json:"userId"`
	AccessToken  string `json:"accessToken"`
	AccessExpire int64  `json:"accessExpire"`
}

type Status

type Status struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

type UpdateUserInfoReq added in v1.1.1

type UpdateUserInfoReq struct {
	AvatarUrl string `json:"avatarUrl,optional"`
	Nickname  string `json:"nickname,optional"`
}

type UpdateUserInfoResp added in v1.1.1

type UpdateUserInfoResp struct {
	Status
}

type User

type User struct {
	Id        string `json:"id"`
	Name      string `json:"name"`
	AvatarUrl string `json:"avatarUrl"`
}

type UserPreview

type UserPreview struct {
	Id        string `json:"id"`
	Nickname  string `json:"nickname"`
	AvatarUrl string `json:"avatarUrl"`
}

Jump to

Keyboard shortcuts

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