types

package
v1.6.10 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 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"`
	Title       string `json:"title"`
	CommunityId string `json:"communityId"`
	Name        string `json:"name"`
	Phone       string `json:"phone"`
	AvatarUrl   string `json:"avatarUrl"`
	Wechat      string `json:"wechat"`
}

type ApplyInfo added in v1.6.4

type ApplyInfo struct {
	UserPreview
	ApplyId string `json:"applyId"`
}

type ApplySignedUrlAsCommunityReq added in v1.3.4

type ApplySignedUrlAsCommunityReq struct {
	CommunityId string `json:"communityId"`
	Prefix      string `json:"prefix,optional"`
	Suffix      string `json:"suffix,optional"`
}

type ApplySignedUrlAsCommunityResp added in v1.3.4

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

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 Community added in v1.3.0

type Community struct {
	Id       string `json:"id"`
	Name     string `json:"name"`
	ParentId string `json:"parentId,omitempty"`
}

type CreateApplyReq added in v1.6.4

type CreateApplyReq struct {
	CommunityId string `json:"communityId"`
}

type CreateApplyResp added in v1.6.4

type CreateApplyResp struct {
	Status
}

type CreateImageElement added in v1.4.2

type CreateImageElement struct {
	CatId string `json:"catId"`
	Url   string `json:"url"`
}

type CreateImageReq added in v1.4.0

type CreateImageReq struct {
	Images []CreateImageElement `json:"images"`
}

type CreateImageResp added in v1.4.0

type CreateImageResp struct {
	Status
	Id []string `json:"id"`
}

type DeleteAdminReq added in v1.3.0

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

type DeleteAdminResp added in v1.3.0

type DeleteAdminResp struct {
	Status
}

type DeleteCatReq

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

type DeleteCatResp

type DeleteCatResp struct {
	Status
}

type DeleteCommentReq added in v1.5.2

type DeleteCommentReq struct {
	CommentId string `json:"commentId"`
}

type DeleteCommentResp added in v1.5.2

type DeleteCommentResp struct {
	Status
}

type DeleteCommunityReq added in v1.3.0

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

type DeleteCommunityResp added in v1.3.0

type DeleteCommunityResp struct {
	Status
}

type DeleteImageReq added in v1.4.0

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

type DeleteImageResp added in v1.4.0

type DeleteImageResp 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 GetImageByCatReq added in v1.4.0

type GetImageByCatReq struct {
	CatId    string `form:"catId"`
	PrevId   string `form:"prevId,optional"`
	Limit    int64  `form:"limit,default=10"`
	Offset   int64  `form:"offset,optional"`
	Backward bool   `form:"backward,optional"`
}

type GetImageByCatResp added in v1.4.0

type GetImageByCatResp struct {
	Status
	Images []Image `json:"images"`
	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 GetLikedUsersReq added in v1.6.0

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

type GetLikedUsersResp added in v1.6.0

type GetLikedUsersResp struct {
	Status
	Users []UserPreview `json:"users"`
}

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,optional"`
	IsParent    bool    `form:"isParent,default=false"`
	OnlyUserId  *string `form:"onlyUserId,optional"`
	Page        int64   `form:"page"`
	Limit       *int64  `form:"limit,optional"`
	LastToken   *string `form:"lastToken,optional"`
	Backward    *bool   `form:"backward,optional"`
}

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 {
	Limit         *int64         `json:"limit,optional"`
	Offset        *int64         `json:"offset,optional"`
	LastToken     *string        `json:"lastToken,optional"`
	Backward      *bool          `json:"backward,optional"`
	OnlyOfficial  *bool          `json:"onlyOfficial,optional"`
	OnlyUserId    *string        `json:"onlyUserId,optional"`
	SearchOptions *SearchOptions `json:"searchOptions,optional"`
}

type GetPostPreviewsResp

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

type GetUserInfoReq added in v1.1.1

type GetUserInfoReq struct {
	UserId *string `form:"userId,optional"`
}

type GetUserInfoResp added in v1.1.1

type GetUserInfoResp struct {
	Status
	User User `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 GetUserLikesReq added in v1.6.0

type GetUserLikesReq struct {
	UserId     string `form:"userId"`
	TargetType int64  `form:"targetType"`
}

type GetUserLikesResp added in v1.6.0

type GetUserLikesResp struct {
	Likes []Like `json:"likes"`
	Status
}

type GetUserRolesReq added in v1.3.5

type GetUserRolesReq struct {
}

type GetUserRolesResp added in v1.3.5

type GetUserRolesResp struct {
	Roles []Role `json:"roles"`
	Status
}

type HandleApplyReq added in v1.6.4

type HandleApplyReq struct {
	ApplyId    string `json:"applyId"`
	IsRejected bool   `json:"isRejected"`
}

type HandleApplyResp added in v1.6.4

type HandleApplyResp struct {
	Status
}

type Image added in v1.4.0

type Image struct {
	Id    string `json:"id"`
	Url   string `json:"url"`
	CatId string `json:"catId"`
}

type Like added in v1.6.0

type Like struct {
	TargetId     string `json:"targetId"`
	AssociatedId string `json:"associatedId"`
}

type ListApplyReq added in v1.6.4

type ListApplyReq struct {
	CommunityId string `json:"communityId"`
}

type ListApplyResp added in v1.6.4

type ListApplyResp struct {
	Status
	ApplyInfo []ApplyInfo `json:"applyInfo"`
}

type ListCommunityReq added in v1.3.0

type ListCommunityReq struct {
	ParentId string `form:"parentId,optional"`
}

type ListCommunityResp added in v1.3.0

type ListCommunityResp struct {
	Communities []Community `json:"communities"`
	Status
}

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 NewAdminReq added in v1.3.0

type NewAdminReq struct {
	Id          string `json:"id,optional"`
	Title       string `json:"title"`
	CommunityId string `json:"communityId"`
	Name        string `json:"name"`
	Phone       string `json:"phone"`
	AvatarUrl   string `json:"avatarUrl"`
	Wechat      string `json:"wechat"`
}

type NewAdminResp added in v1.3.0

type NewAdminResp struct {
	Status
	Id string `json:"id"`
}

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 NewCommunityReq added in v1.3.0

type NewCommunityReq struct {
	Id       string `json:"id,optional"`
	Name     string `json:"name""`
	ParentId string `json:"parentId,optional"`
}

type NewCommunityResp added in v1.3.0

type NewCommunityResp struct {
	Id string `json:"id"`
	Status
}

type NewMomentReq

type NewMomentReq struct {
	Id          string   `json:"id,optional"`
	Title       string   `json:"title,optional"`
	CatId       string   `json:"catId,optional"`
	Text        string   `json:"text,optional"`
	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"`
	IsPublic    int64  `json:"isPublic,optional"`
}

type NewNewsResp

type NewNewsResp struct {
	Status
	Id string `json:"id"`
}

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
	Id string `json:"id"`
}

type NewPostReq

type NewPostReq struct {
	Id       string   `json:"id,optional"`
	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"`
	IsPublic    int64  `json:"isPublic"`
}

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"`
	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"`
	IsOfficial bool        `json:"isOfficial"`
}

type RetrieveUserPreviewReq added in v1.6.3

type RetrieveUserPreviewReq struct {
	RoleType    string `form:"roleType"`
	CommunityId string `form:"communityId,optional"`
}

type RetrieveUserPreviewResp added in v1.6.3

type RetrieveUserPreviewResp struct {
	Users []UserPreview `json:"users"`
	Status
}

type Role added in v1.3.5

type Role struct {
	RoleType    string `json:"roleType"`
	CommunityId string `json:"communityId,omitempty"`
}

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,optional"`
	IsParent    bool    `form:"isParent,default=false"`
	OnlyUserId  *string `form:"onlyUserId,optional"`
	Keyword     string  `form:"keyword,optional"`
	Page        int64   `form:"page"`
	Limit       *int64  `form:"limit,optional"`
	LastToken   *string `form:"lastToken,optional"`
	Backward    *bool   `form:"backward,optional"`
}

type SearchMomentResp added in v1.1.5

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

type SearchOptions added in v1.5.0

type SearchOptions struct {
	Key   *string `json:"key,optional"`
	Title *string `json:"title,optional"`
	Text  *string `json:"text,optional"`
	Tag   *string `json:"tag,optional"`
}

type SearchUserForAdminReq added in v1.4.5

type SearchUserForAdminReq struct {
	Keyword   string `form:"keyword"`
	Page      int64  `form:"page"`
	Limit     int64  `form:"limit,optional"`
	LastToken string `form:"lastToken,optional"`
}

type SearchUserForAdminResp added in v1.4.5

type SearchUserForAdminResp struct {
	Status
	Users []UserPreviewWithRole `json:"users"`
	Total int64                 `json:"total"`
	Token string                `json:"token"`
}

type SearchUserReq added in v1.4.5

type SearchUserReq struct {
	Keyword   string `form:"keyword"`
	Page      int64  `form:"page"`
	Limit     int64  `form:"limit,optional"`
	LastToken string `form:"lastToken,optional"`
}

type SearchUserResp added in v1.4.5

type SearchUserResp struct {
	Status
	Users []UserPreview `json:"users"`
	Total int64         `json:"total"`
	Token string        `json:"token"`
}

type SendVerifyCodeReq

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

type SendVerifyCodeResp

type SendVerifyCodeResp struct {
	Status
}

type SetOfficialReq added in v1.5.0

type SetOfficialReq struct {
	PostId   string `json:"postId"`
	IsRemove bool   `json:"isRemove,optional"`
}

type SetOfficialResp added in v1.5.0

type SetOfficialResp 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 UpdateCommunityAdminReq added in v1.3.5

type UpdateCommunityAdminReq struct {
	UserId      string `json:"userId"`
	CommunityId string `json:"communityId"`
	IsRemove    bool   `json:"isRemove,default=false"`
}

type UpdateCommunityAdminResp added in v1.3.5

type UpdateCommunityAdminResp struct {
	Status
}

type UpdateSuperAdminReq added in v1.3.5

type UpdateSuperAdminReq struct {
	UserId   string `json:"userId"`
	IsRemove bool   `json:"isRemove,default=false"`
}

type UpdateSuperAdminResp added in v1.3.5

type UpdateSuperAdminResp struct {
	Status
}

type UpdateUserInfoReq added in v1.1.1

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

type UpdateUserInfoResp added in v1.1.1

type UpdateUserInfoResp struct {
	Status
}

type User

type User struct {
	Id        string `json:"id"`
	Nickname  string `json:"nickname"`
	AvatarUrl string `json:"avatarUrl"`
	Motto     string `json:"motto"`
	Follower  int64  `json:"follower"`
	Following int64  `json:"following"`
	Article   int64  `json:"article"`
	Like      int64  `json:"like"`
}

type UserPreview

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

type UserPreviewWithRole added in v1.5.3

type UserPreviewWithRole struct {
	UserPreview
	Roles []Role `json:"roles"`
}

Jump to

Keyboard shortcuts

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