output

package
v0.0.0-...-6e65144 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 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 Category

type Category struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type CategoryList

type CategoryList struct {
	Categories []Category `json:"categories"`
}

func ToCategoryList

func ToCategoryList(categories []*model.Category) (result CategoryList)

type Circle

type Circle struct {
	ID            int           `json:"id"`
	Name          string        `json:"name"`
	About         string        `json:"about"`
	CatchCopy     string        `json:"catchCopy"`
	MembersNumber string        `json:"members_number"`
	WorkTime      string        `json:"workTime"`
	Location      string        `json:"location"`
	Cost          string        `json:"cost"`
	Description   string        `json:"description"`
	EyeCatch      string        `json:"eyecatch"`
	Twitter       string        `json:"twitter"`
	Email         string        `json:"email"`
	URL           string        `json:"url"`
	Images        []CircleImage `json:"images"`
	Types         []CircleType  `json:"types"`
	Category      Category      `json:"category"`
	UpdatedAt     string        `json:"updated_at"`
}

func ToGetCircle

func ToGetCircle(circle *model.GetCircle, categories []*model.Category) (result Circle)

type CircleImage

type CircleImage struct {
	URL string `json:"url"`
}

type CircleList

type CircleList struct {
	Circles []Circle `json:"circles"`
}

func ToListCircle

func ToListCircle(startStr, endStr string, circles usecase.CircleList) (result CircleList)

type CircleType

type CircleType struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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