Versions in this module Expand all Collapse all v0 v0.1.0 Oct 30, 2021 Changes in this version + const TokenScopes + func GetSwagger() (swagger *openapi3.T, err error) + func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) + func RegisterHandlers(router EchoRouter, si ServerInterface) + func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string) + type AddRestaurantRequest struct + RestaurantId Long + type AddRestaurantToCommunityJSONBody AddRestaurantRequest + type AddRestaurantToCommunityJSONRequestBody AddRestaurantToCommunityJSONBody + type AuthInfo struct + Token string + Vendor AuthVendor + type AuthVendor string + const AuthVendorAnonymous + const AuthVendorApple + const AuthVendorGoogle + type Comment struct + Body *string + CommunityId *Long + RestaurantId *Long + UpdatedAt *time.Time + type Community struct + Description string + Id Long + ImageUrls []string + Location Location + Name string + NumRestaurant int + NumUser int + type CreateCommunityRequest struct + Description string + Location Location + Name string + type CreateUserRequest struct + Name string + Vendor AuthVendor + type CreateUserResponse struct + AuthInfo AuthInfo + User User + type EchoRouter interface + CONNECT func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + DELETE func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + GET func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + HEAD func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + OPTIONS func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + PATCH func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + POST func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + PUT func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + TRACE func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + type GetCommunityIdTokenResponse struct + ExpiresIn int + InviteToken string + type GetOtherCommunityResponse struct + Communities []Community + type GetRestaurantIdOtherParams struct + CommunityId Long + type JoinCommunityRequest struct + InviteToken string + type ListCommunityRestaurantsParams struct + After *PageQuery + type ListCommunityRestaurantsResponse struct + Restaurants *[]Restaurant + type ListCommunityUsersResponse struct + Users *[]User + type ListUserBookmarkResponse struct + Communities *[]Community + type ListUserCommunitiesParams struct + After *PageQuery + type ListUserCommunityResponse struct + Communities *[]Community + type ListUsersOfCommunityParams struct + After *PageQuery + type Location struct + Lat float64 + Lng float64 + type Long int64 + type NewCommunityJSONBody CreateCommunityRequest + type NewCommunityJSONRequestBody NewCommunityJSONBody + type NewUserJSONBody CreateUserRequest + type NewUserJSONRequestBody NewUserJSONBody + type PageInfo struct + BeginCursor *int + EndCursor *int + HasNext *bool + HasPrevious *bool + type PageQuery Long + type PostUserIdBookmarkJSONBody struct + CommunityId Long + type PostUserIdBookmarkJSONRequestBody PostUserIdBookmarkJSONBody + type PostUserMeCommunitiesJSONBody JoinCommunityRequest + type PostUserMeCommunitiesJSONRequestBody PostUserMeCommunitiesJSONBody + type PutUserMeJSONBody PutUserMeRequest + type PutUserMeJSONRequestBody PutUserMeJSONBody + type PutUserMeRequest struct + Name *string + type Restaurant struct + Id Long + ImageUrl *string + Location Location + Name string + type SearchCommunitiesParams struct + After *PageQuery + CenterLat *float64 + CenterLng *float64 + Keyword string + type SearchCommunityResponse struct + Communities *[]Community + type SearchRestaurantResponse struct + Restaurants *[]Restaurant + type SearchRestaurantsParams struct + After *PageQuery + CenterLat *float64 + CenterLng *float64 + Keyword string + type ServerInterface interface + AddRestaurantToCommunity func(ctx echo.Context, id int) error + DeleteUserIdBookmarkCommunityId func(ctx echo.Context, id Long, communityId Long) error + DeleteUserIdCommunitiesCommunityId func(ctx echo.Context, id Long, communityId Long) error + GetCommunityById func(ctx echo.Context, id int) error + GetCommunityIdToken func(ctx echo.Context, id int) error + GetMyProfile func(ctx echo.Context) error + GetRestaurantComment func(ctx echo.Context, id int, restaurantId int) error + GetRestaurantId func(ctx echo.Context, id int64) error + GetRestaurantIdOther func(ctx echo.Context, id Long, params GetRestaurantIdOtherParams) error + GetUserIdBookmark func(ctx echo.Context, id Long) error + ListCommunityRestaurants func(ctx echo.Context, id int, params ListCommunityRestaurantsParams) error + ListUserCommunities func(ctx echo.Context, id Long, params ListUserCommunitiesParams) error + ListUsersOfCommunity func(ctx echo.Context, id int, params ListUsersOfCommunityParams) error + NewCommunity func(ctx echo.Context) error + NewUser func(ctx echo.Context) error + PostUserIdBookmark func(ctx echo.Context, id Long) error + PostUserMeCommunities func(ctx echo.Context) error + PutUserMe func(ctx echo.Context) error + RemoveRestaurantFromCommunity func(ctx echo.Context, id int64, restaurantId int64) error + SearchCommunities func(ctx echo.Context, params SearchCommunitiesParams) error + SearchRestaurants func(ctx echo.Context, params SearchRestaurantsParams) error + UpdateCommunity func(ctx echo.Context, id int64) error + UpdateRestaurantComment func(ctx echo.Context, id int, restaurantId int) error + UploadProfileImage func(ctx echo.Context) error + type ServerInterfaceWrapper struct + Handler ServerInterface + func (w *ServerInterfaceWrapper) AddRestaurantToCommunity(ctx echo.Context) error + func (w *ServerInterfaceWrapper) DeleteUserIdBookmarkCommunityId(ctx echo.Context) error + func (w *ServerInterfaceWrapper) DeleteUserIdCommunitiesCommunityId(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetCommunityById(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetCommunityIdToken(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetMyProfile(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetRestaurantComment(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetRestaurantId(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetRestaurantIdOther(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetUserIdBookmark(ctx echo.Context) error + func (w *ServerInterfaceWrapper) ListCommunityRestaurants(ctx echo.Context) error + func (w *ServerInterfaceWrapper) ListUserCommunities(ctx echo.Context) error + func (w *ServerInterfaceWrapper) ListUsersOfCommunity(ctx echo.Context) error + func (w *ServerInterfaceWrapper) NewCommunity(ctx echo.Context) error + func (w *ServerInterfaceWrapper) NewUser(ctx echo.Context) error + func (w *ServerInterfaceWrapper) PostUserIdBookmark(ctx echo.Context) error + func (w *ServerInterfaceWrapper) PostUserMeCommunities(ctx echo.Context) error + func (w *ServerInterfaceWrapper) PutUserMe(ctx echo.Context) error + func (w *ServerInterfaceWrapper) RemoveRestaurantFromCommunity(ctx echo.Context) error + func (w *ServerInterfaceWrapper) SearchCommunities(ctx echo.Context) error + func (w *ServerInterfaceWrapper) SearchRestaurants(ctx echo.Context) error + func (w *ServerInterfaceWrapper) UpdateCommunity(ctx echo.Context) error + func (w *ServerInterfaceWrapper) UpdateRestaurantComment(ctx echo.Context) error + func (w *ServerInterfaceWrapper) UploadProfileImage(ctx echo.Context) error + type UpdateCommentRequest struct + Body *string + type UpdateCommunityJSONBody struct + Description string + Location Location + Name string + type UpdateCommunityJSONRequestBody UpdateCommunityJSONBody + type UpdateRestaurantCommentJSONBody UpdateCommentRequest + type UpdateRestaurantCommentJSONRequestBody UpdateRestaurantCommentJSONBody + type UploadImageProfileResponse struct + ImageUrl string + type User struct + Id Long + Name string + ProfileImageUrl *string + type UserDetail struct + BookmarkCount int + CommunityCount int