types

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 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 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 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 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 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"`
	IsParent    bool   `form:"isParent,default=false"`
	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 GetOwnMomentPreviewsReq added in v1.3.3

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

type GetOwnMomentPreviewsResp added in v1.3.3

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

type GetOwnPostPreviewsReq added in v1.3.3

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

type GetOwnPostPreviewsResp added in v1.3.3

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

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 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 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"`
	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
	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"`
}

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"`
}

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"`
	IsParent    bool   `form:"isParent,optional"`
	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 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"`
}

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