responses

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReviewResponse

type ReviewResponse struct {
	Id        int    `json:"id"`
	Text      string `json:"text"`
	Rating    int    `json:"rating"`
	BookId    int    `json:"book_id"`
	Book      bookRes.BookResponse
	UserId    int `json:"user_id"`
	User      userRes.UserInfoResponse
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

func FromDomain

func FromDomain(domain reviews.Domain) ReviewResponse

func ToResponseList

func ToResponseList(domains []reviews.Domain) []ReviewResponse

Jump to

Keyboard shortcuts

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