dto

package
v1.27.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIDTO

type APIDTO struct {
	ID        string
	AppID     string
	Targeturl string
}

func APIFromModel

func APIFromModel(appID string, in model.API) *APIDTO

func (*APIDTO) ToModel

func (a *APIDTO) ToModel() model.API

type ApplicationDTO

type ApplicationDTO struct {
	ID          string
	Tenant      string
	Name        string
	Description string
	Labels      types.NullJSONText // JSON
}

func ApplicationFromModel

func ApplicationFromModel(in model.Application) ApplicationDTO

func (*ApplicationDTO) ToModel

func (app *ApplicationDTO) ToModel() model.Application

type DocumentDTO

type DocumentDTO struct {
	ID     string
	Appid  string `json:"app_id"`
	Title  string
	Format string
	Data   string
}

func DocumentFromModel

func DocumentFromModel(appID string, in model.Document) *DocumentDTO

func (*DocumentDTO) ToModel

func (d *DocumentDTO) ToModel() model.Document

Jump to

Keyboard shortcuts

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