controller

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceController

type ServiceController struct {
	base.APIController
}

func (*ServiceController) Create

func (c *ServiceController) Create()

@Title Create @Description create Service @Param body body models.Service true "The Service content" @Success 200 return models.Service success @router / [post]

func (*ServiceController) Delete

func (c *ServiceController) Delete()

@Title Delete @Description delete the Service @Param id path int true "The id you want to delete" @Param logical query bool false "is logical deletion,default true" @Success 200 {string} delete success! @router /:id([0-9]+) [delete]

func (*ServiceController) Get

func (c *ServiceController) Get()

@Title Get @Description find Object by id @Param id path int true "the id you want to get" @Success 200 {object} models.Service success @router /:id([0-9]+) [get]

func (*ServiceController) GetNames

func (c *ServiceController) GetNames()

@Title List/ @Description get all id and names @Param appId query int false "the app id" @Param deleted query bool false "is deleted,default false." @Success 200 {object} []models.Service success @router /names [get]

func (*ServiceController) List

func (c *ServiceController) List()

@Title GetAll @Description get all Service @Param pageNo query int false "the page current no" @Param pageSize query int false "the page size" @Param name query string false "name filter" @Param deleted query bool false "is deleted, default list all" @Success 200 {object} []models.Service success @router / [get]

func (*ServiceController) Prepare

func (c *ServiceController) Prepare()

func (*ServiceController) URLMapping

func (c *ServiceController) URLMapping()

func (*ServiceController) Update

func (c *ServiceController) Update()

@Title Update @Description update the Service @Param id path int true "The id you want to update" @Param body body models.Service true "The body" @Success 200 models.Service success @router /:id([0-9]+) [put]

func (*ServiceController) UpdateOrders

func (c *ServiceController) UpdateOrders()

@Title UpdateOrders @Description batch update the Orders @Param body body []models.Service true "The body" @Success 200 models.Deployment success @router /updateorders [put]

type ServiceTplController

type ServiceTplController struct {
	base.APIController
}

服务模版相关操作

func (*ServiceTplController) Create

func (c *ServiceTplController) Create()

@Title Create @Description create ServiceTpl @Param body body models.ServiceTemplate true "The ServiceTpl content" @Success 200 return models.ServiceTemplate success @router / [post]

func (*ServiceTplController) Delete

func (c *ServiceTplController) Delete()

@Title Delete @Description delete the ServiceTpl @Param id path int true "The id you want to delete" @Param logical query bool false "is logical deletion,default true" @Success 200 {string} delete success! @router /:id([0-9]+) [delete]

func (*ServiceTplController) Get

func (c *ServiceTplController) Get()

@Title Get @Description find Object by id @Param id path int true "the id you want to get" @Success 200 {object} models.ServiceTemplate success @router /:id([0-9]+) [get]

func (*ServiceTplController) List

func (c *ServiceTplController) List()

@Title GetAll @Description get all ServiceTpl @Param pageNo query int false "the page current no" @Param pageSize query int false "the page size" @Param name query string false "name filter" @Param deleted query bool false "is deleted, default list all" @Success 200 {object} []models.ServiceTemplate success @router / [get]

func (*ServiceTplController) Prepare

func (c *ServiceTplController) Prepare()

func (*ServiceTplController) URLMapping

func (c *ServiceTplController) URLMapping()

func (*ServiceTplController) Update

func (c *ServiceTplController) Update()

@Title Update @Description update the ServiceTpl @Param id path int true "The id you want to update" @Param body body models.ServiceTemplate true "The body" @Success 200 models.ServiceTemplate success @router /:id([0-9]+) [put]

Jump to

Keyboard shortcuts

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