settings

package
v0.0.0-...-c52fe67 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	SettingsService service.SettingsService
	View            View
}

func NewHandler

func NewHandler(p Params) Handler

func (*Handler) Get

func (h *Handler) Get(c echo.Context) error

swagger:route GET /settings settings Settings

Getting a system settings

This endpoint returns system settings

Responses:
  default: HTTPError
  200: Settings
  400: HTTPError
  404: HTTPError
  500: HTTPError

type Item

type Item struct {
	// example: https://qilin.super.com
	StoreRootURL string `json:"store_root_url"`
}

type Params

type Params struct {
	fx.In

	SettingsService service.SettingsService
	View            View
}

type View

type View struct{}

func NewView

func NewView() View

func (View) View

func (v View) View(i *entity.Settings) Item

Jump to

Keyboard shortcuts

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