controllers

package
v0.0.0-...-c24df4f Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(r *gin.Engine)

Types

type AttributeShapeID

type AttributeShapeID struct {
	// The ID of the order
	//
	// in: path
	// required: true
	ID int64
}

An AttributeShapeID parameter model.

This is used for operations that want the ID of an order in the path swagger:parameters getAttributeShape updateAttributeShape deleteAttributeShape

type AttributeShapeInput

type AttributeShapeInput struct {
	// The AttributeShape to submit or modify
	// in: body
	AttributeShape *orm.AttributeShapeAPI
}

AttributeShapeInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postAttributeShape updateAttributeShape

type ClassdiagramID

type ClassdiagramID struct {
	// The ID of the order
	//
	// in: path
	// required: true
	ID int64
}

An ClassdiagramID parameter model.

This is used for operations that want the ID of an order in the path swagger:parameters getClassdiagram updateClassdiagram deleteClassdiagram

type ClassdiagramInput

type ClassdiagramInput struct {
	// The Classdiagram to submit or modify
	// in: body
	Classdiagram *orm.ClassdiagramAPI
}

ClassdiagramInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postClassdiagram updateClassdiagram

type Controller

type Controller struct {

	// Map_BackRepos is the map to the backRepo instance according to the stack instance path
	Map_BackRepos map[string]*doc2_orm.BackRepoStruct
	// contains filtered or unexported fields
}

A Controller is the handler of all API REST calls matching the stack model It forwards API requests to the stack instance identified by the Name parameters in the request the stack instance is the BackRepo instance

func GetController

func GetController() *Controller

func (*Controller) AddBackRepo

func (controller *Controller) AddBackRepo(backRepo *doc2_orm.BackRepoStruct, stackPath string)

func (*Controller) DeleteAttributeShape

func (controller *Controller) DeleteAttributeShape(c *gin.Context)

DeleteAttributeShape

swagger:route DELETE /attributeshapes/{ID} attributeshapes deleteAttributeShape

Delete a attributeshape

default: genericError

200: attributeshapeDBResponse

func (*Controller) DeleteClassdiagram

func (controller *Controller) DeleteClassdiagram(c *gin.Context)

DeleteClassdiagram

swagger:route DELETE /classdiagrams/{ID} classdiagrams deleteClassdiagram

Delete a classdiagram

default: genericError

200: classdiagramDBResponse

func (*Controller) DeleteDiagramPackage

func (controller *Controller) DeleteDiagramPackage(c *gin.Context)

DeleteDiagramPackage

swagger:route DELETE /diagrampackages/{ID} diagrampackages deleteDiagramPackage

Delete a diagrampackage

default: genericError

200: diagrampackageDBResponse

func (*Controller) DeleteGongEnumShape

func (controller *Controller) DeleteGongEnumShape(c *gin.Context)

DeleteGongEnumShape

swagger:route DELETE /gongenumshapes/{ID} gongenumshapes deleteGongEnumShape

Delete a gongenumshape

default: genericError

200: gongenumshapeDBResponse

func (*Controller) DeleteGongEnumValueShape

func (controller *Controller) DeleteGongEnumValueShape(c *gin.Context)

DeleteGongEnumValueShape

swagger:route DELETE /gongenumvalueshapes/{ID} gongenumvalueshapes deleteGongEnumValueShape

Delete a gongenumvalueshape

default: genericError

200: gongenumvalueshapeDBResponse

func (*Controller) DeleteGongNoteLinkShape

func (controller *Controller) DeleteGongNoteLinkShape(c *gin.Context)

DeleteGongNoteLinkShape

swagger:route DELETE /gongnotelinkshapes/{ID} gongnotelinkshapes deleteGongNoteLinkShape

Delete a gongnotelinkshape

default: genericError

200: gongnotelinkshapeDBResponse

func (*Controller) DeleteGongNoteShape

func (controller *Controller) DeleteGongNoteShape(c *gin.Context)

DeleteGongNoteShape

swagger:route DELETE /gongnoteshapes/{ID} gongnoteshapes deleteGongNoteShape

Delete a gongnoteshape

default: genericError

200: gongnoteshapeDBResponse

func (*Controller) DeleteGongStructShape

func (controller *Controller) DeleteGongStructShape(c *gin.Context)

DeleteGongStructShape

swagger:route DELETE /gongstructshapes/{ID} gongstructshapes deleteGongStructShape

Delete a gongstructshape

default: genericError

200: gongstructshapeDBResponse

func (*Controller) DeleteLinkShape

func (controller *Controller) DeleteLinkShape(c *gin.Context)

DeleteLinkShape

swagger:route DELETE /linkshapes/{ID} linkshapes deleteLinkShape

Delete a linkshape

default: genericError

200: linkshapeDBResponse

func (*Controller) GetAttributeShape

func (controller *Controller) GetAttributeShape(c *gin.Context)

GetAttributeShape

swagger:route GET /attributeshapes/{ID} attributeshapes getAttributeShape

Gets the details for a attributeshape.

Responses: default: genericError

200: attributeshapeDBResponse

func (*Controller) GetAttributeShapes

func (controller *Controller) GetAttributeShapes(c *gin.Context)

GetAttributeShapes

swagger:route GET /attributeshapes attributeshapes getAttributeShapes

Get all attributeshapes

Responses: default: genericError

200: attributeshapeDBResponse

func (*Controller) GetClassdiagram

func (controller *Controller) GetClassdiagram(c *gin.Context)

GetClassdiagram

swagger:route GET /classdiagrams/{ID} classdiagrams getClassdiagram

Gets the details for a classdiagram.

Responses: default: genericError

200: classdiagramDBResponse

func (*Controller) GetClassdiagrams

func (controller *Controller) GetClassdiagrams(c *gin.Context)

GetClassdiagrams

swagger:route GET /classdiagrams classdiagrams getClassdiagrams

Get all classdiagrams

Responses: default: genericError

200: classdiagramDBResponse

func (*Controller) GetDiagramPackage

func (controller *Controller) GetDiagramPackage(c *gin.Context)

GetDiagramPackage

swagger:route GET /diagrampackages/{ID} diagrampackages getDiagramPackage

Gets the details for a diagrampackage.

Responses: default: genericError

200: diagrampackageDBResponse

func (*Controller) GetDiagramPackages

func (controller *Controller) GetDiagramPackages(c *gin.Context)

GetDiagramPackages

swagger:route GET /diagrampackages diagrampackages getDiagramPackages

Get all diagrampackages

Responses: default: genericError

200: diagrampackageDBResponse

func (*Controller) GetGongEnumShape

func (controller *Controller) GetGongEnumShape(c *gin.Context)

GetGongEnumShape

swagger:route GET /gongenumshapes/{ID} gongenumshapes getGongEnumShape

Gets the details for a gongenumshape.

Responses: default: genericError

200: gongenumshapeDBResponse

func (*Controller) GetGongEnumShapes

func (controller *Controller) GetGongEnumShapes(c *gin.Context)

GetGongEnumShapes

swagger:route GET /gongenumshapes gongenumshapes getGongEnumShapes

Get all gongenumshapes

Responses: default: genericError

200: gongenumshapeDBResponse

func (*Controller) GetGongEnumValueShape

func (controller *Controller) GetGongEnumValueShape(c *gin.Context)

GetGongEnumValueShape

swagger:route GET /gongenumvalueshapes/{ID} gongenumvalueshapes getGongEnumValueShape

Gets the details for a gongenumvalueshape.

Responses: default: genericError

200: gongenumvalueshapeDBResponse

func (*Controller) GetGongEnumValueShapes

func (controller *Controller) GetGongEnumValueShapes(c *gin.Context)

GetGongEnumValueShapes

swagger:route GET /gongenumvalueshapes gongenumvalueshapes getGongEnumValueShapes

Get all gongenumvalueshapes

Responses: default: genericError

200: gongenumvalueshapeDBResponse

func (*Controller) GetGongNoteLinkShape

func (controller *Controller) GetGongNoteLinkShape(c *gin.Context)

GetGongNoteLinkShape

swagger:route GET /gongnotelinkshapes/{ID} gongnotelinkshapes getGongNoteLinkShape

Gets the details for a gongnotelinkshape.

Responses: default: genericError

200: gongnotelinkshapeDBResponse

func (*Controller) GetGongNoteLinkShapes

func (controller *Controller) GetGongNoteLinkShapes(c *gin.Context)

GetGongNoteLinkShapes

swagger:route GET /gongnotelinkshapes gongnotelinkshapes getGongNoteLinkShapes

Get all gongnotelinkshapes

Responses: default: genericError

200: gongnotelinkshapeDBResponse

func (*Controller) GetGongNoteShape

func (controller *Controller) GetGongNoteShape(c *gin.Context)

GetGongNoteShape

swagger:route GET /gongnoteshapes/{ID} gongnoteshapes getGongNoteShape

Gets the details for a gongnoteshape.

Responses: default: genericError

200: gongnoteshapeDBResponse

func (*Controller) GetGongNoteShapes

func (controller *Controller) GetGongNoteShapes(c *gin.Context)

GetGongNoteShapes

swagger:route GET /gongnoteshapes gongnoteshapes getGongNoteShapes

Get all gongnoteshapes

Responses: default: genericError

200: gongnoteshapeDBResponse

func (*Controller) GetGongStructShape

func (controller *Controller) GetGongStructShape(c *gin.Context)

GetGongStructShape

swagger:route GET /gongstructshapes/{ID} gongstructshapes getGongStructShape

Gets the details for a gongstructshape.

Responses: default: genericError

200: gongstructshapeDBResponse

func (*Controller) GetGongStructShapes

func (controller *Controller) GetGongStructShapes(c *gin.Context)

GetGongStructShapes

swagger:route GET /gongstructshapes gongstructshapes getGongStructShapes

Get all gongstructshapes

Responses: default: genericError

200: gongstructshapeDBResponse

func (*Controller) GetLastCommitFromBackNb

func (controller *Controller) GetLastCommitFromBackNb(c *gin.Context)

swagger:route GET /commitfrombacknb backrepo GetLastCommitFromBackNb

func (*Controller) GetLastPushFromFrontNb

func (controller *Controller) GetLastPushFromFrontNb(c *gin.Context)

swagger:route GET /pushfromfrontnb backrepo GetLastPushFromFrontNb

func (*Controller) GetLinkShape

func (controller *Controller) GetLinkShape(c *gin.Context)

GetLinkShape

swagger:route GET /linkshapes/{ID} linkshapes getLinkShape

Gets the details for a linkshape.

Responses: default: genericError

200: linkshapeDBResponse

func (*Controller) GetLinkShapes

func (controller *Controller) GetLinkShapes(c *gin.Context)

GetLinkShapes

swagger:route GET /linkshapes linkshapes getLinkShapes

Get all linkshapes

Responses: default: genericError

200: linkshapeDBResponse

func (*Controller) PostAttributeShape

func (controller *Controller) PostAttributeShape(c *gin.Context)

PostAttributeShape

swagger:route POST /attributeshapes attributeshapes postAttributeShape

Creates a attributeshape

Consumes:
- application/json

Produces:
- application/json

Responses:
  200: nodeDBResponse

func (*Controller) PostClassdiagram

func (controller *Controller) PostClassdiagram(c *gin.Context)

PostClassdiagram

swagger:route POST /classdiagrams classdiagrams postClassdiagram

Creates a classdiagram

Consumes:
- application/json

Produces:
- application/json

Responses:
  200: nodeDBResponse

func (*Controller) PostDiagramPackage

func (controller *Controller) PostDiagramPackage(c *gin.Context)

PostDiagramPackage

swagger:route POST /diagrampackages diagrampackages postDiagramPackage

Creates a diagrampackage

Consumes:
- application/json

Produces:
- application/json

Responses:
  200: nodeDBResponse

func (*Controller) PostGongEnumShape

func (controller *Controller) PostGongEnumShape(c *gin.Context)

PostGongEnumShape

swagger:route POST /gongenumshapes gongenumshapes postGongEnumShape

Creates a gongenumshape

Consumes:
- application/json

Produces:
- application/json

Responses:
  200: nodeDBResponse

func (*Controller) PostGongEnumValueShape

func (controller *Controller) PostGongEnumValueShape(c *gin.Context)

PostGongEnumValueShape

swagger:route POST /gongenumvalueshapes gongenumvalueshapes postGongEnumValueShape

Creates a gongenumvalueshape

Consumes:
- application/json

Produces:
- application/json

Responses:
  200: nodeDBResponse

func (*Controller) PostGongNoteLinkShape

func (controller *Controller) PostGongNoteLinkShape(c *gin.Context)

PostGongNoteLinkShape

swagger:route POST /gongnotelinkshapes gongnotelinkshapes postGongNoteLinkShape

Creates a gongnotelinkshape

Consumes:
- application/json

Produces:
- application/json

Responses:
  200: nodeDBResponse

func (*Controller) PostGongNoteShape

func (controller *Controller) PostGongNoteShape(c *gin.Context)

PostGongNoteShape

swagger:route POST /gongnoteshapes gongnoteshapes postGongNoteShape

Creates a gongnoteshape

Consumes:
- application/json

Produces:
- application/json

Responses:
  200: nodeDBResponse

func (*Controller) PostGongStructShape

func (controller *Controller) PostGongStructShape(c *gin.Context)

PostGongStructShape

swagger:route POST /gongstructshapes gongstructshapes postGongStructShape

Creates a gongstructshape

Consumes:
- application/json

Produces:
- application/json

Responses:
  200: nodeDBResponse

func (*Controller) PostLinkShape

func (controller *Controller) PostLinkShape(c *gin.Context)

PostLinkShape

swagger:route POST /linkshapes linkshapes postLinkShape

Creates a linkshape

Consumes:
- application/json

Produces:
- application/json

Responses:
  200: nodeDBResponse

func (*Controller) UpdateAttributeShape

func (controller *Controller) UpdateAttributeShape(c *gin.Context)

UpdateAttributeShape

swagger:route PATCH /attributeshapes/{ID} attributeshapes updateAttributeShape

Update a attributeshape

Responses: default: genericError

200: attributeshapeDBResponse

func (*Controller) UpdateClassdiagram

func (controller *Controller) UpdateClassdiagram(c *gin.Context)

UpdateClassdiagram

swagger:route PATCH /classdiagrams/{ID} classdiagrams updateClassdiagram

Update a classdiagram

Responses: default: genericError

200: classdiagramDBResponse

func (*Controller) UpdateDiagramPackage

func (controller *Controller) UpdateDiagramPackage(c *gin.Context)

UpdateDiagramPackage

swagger:route PATCH /diagrampackages/{ID} diagrampackages updateDiagramPackage

Update a diagrampackage

Responses: default: genericError

200: diagrampackageDBResponse

func (*Controller) UpdateGongEnumShape

func (controller *Controller) UpdateGongEnumShape(c *gin.Context)

UpdateGongEnumShape

swagger:route PATCH /gongenumshapes/{ID} gongenumshapes updateGongEnumShape

Update a gongenumshape

Responses: default: genericError

200: gongenumshapeDBResponse

func (*Controller) UpdateGongEnumValueShape

func (controller *Controller) UpdateGongEnumValueShape(c *gin.Context)

UpdateGongEnumValueShape

swagger:route PATCH /gongenumvalueshapes/{ID} gongenumvalueshapes updateGongEnumValueShape

Update a gongenumvalueshape

Responses: default: genericError

200: gongenumvalueshapeDBResponse

func (*Controller) UpdateGongNoteLinkShape

func (controller *Controller) UpdateGongNoteLinkShape(c *gin.Context)

UpdateGongNoteLinkShape

swagger:route PATCH /gongnotelinkshapes/{ID} gongnotelinkshapes updateGongNoteLinkShape

Update a gongnotelinkshape

Responses: default: genericError

200: gongnotelinkshapeDBResponse

func (*Controller) UpdateGongNoteShape

func (controller *Controller) UpdateGongNoteShape(c *gin.Context)

UpdateGongNoteShape

swagger:route PATCH /gongnoteshapes/{ID} gongnoteshapes updateGongNoteShape

Update a gongnoteshape

Responses: default: genericError

200: gongnoteshapeDBResponse

func (*Controller) UpdateGongStructShape

func (controller *Controller) UpdateGongStructShape(c *gin.Context)

UpdateGongStructShape

swagger:route PATCH /gongstructshapes/{ID} gongstructshapes updateGongStructShape

Update a gongstructshape

Responses: default: genericError

200: gongstructshapeDBResponse

func (*Controller) UpdateLinkShape

func (controller *Controller) UpdateLinkShape(c *gin.Context)

UpdateLinkShape

swagger:route PATCH /linkshapes/{ID} linkshapes updateLinkShape

Update a linkshape

Responses: default: genericError

200: linkshapeDBResponse

type DiagramPackageID

type DiagramPackageID struct {
	// The ID of the order
	//
	// in: path
	// required: true
	ID int64
}

An DiagramPackageID parameter model.

This is used for operations that want the ID of an order in the path swagger:parameters getDiagramPackage updateDiagramPackage deleteDiagramPackage

type DiagramPackageInput

type DiagramPackageInput struct {
	// The DiagramPackage to submit or modify
	// in: body
	DiagramPackage *orm.DiagramPackageAPI
}

DiagramPackageInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postDiagramPackage updateDiagramPackage

type GenericError

type GenericError struct {
	// in: body
	Body struct {
		Code    int32  `json:"code"`
		Message string `json:"message"`
	} `json:"body"`
}

A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures.

swagger:response genericError

type GongEnumShapeID

type GongEnumShapeID struct {
	// The ID of the order
	//
	// in: path
	// required: true
	ID int64
}

An GongEnumShapeID parameter model.

This is used for operations that want the ID of an order in the path swagger:parameters getGongEnumShape updateGongEnumShape deleteGongEnumShape

type GongEnumShapeInput

type GongEnumShapeInput struct {
	// The GongEnumShape to submit or modify
	// in: body
	GongEnumShape *orm.GongEnumShapeAPI
}

GongEnumShapeInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postGongEnumShape updateGongEnumShape

type GongEnumValueShapeID

type GongEnumValueShapeID struct {
	// The ID of the order
	//
	// in: path
	// required: true
	ID int64
}

An GongEnumValueShapeID parameter model.

This is used for operations that want the ID of an order in the path swagger:parameters getGongEnumValueShape updateGongEnumValueShape deleteGongEnumValueShape

type GongEnumValueShapeInput

type GongEnumValueShapeInput struct {
	// The GongEnumValueShape to submit or modify
	// in: body
	GongEnumValueShape *orm.GongEnumValueShapeAPI
}

GongEnumValueShapeInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postGongEnumValueShape updateGongEnumValueShape

type GongNoteLinkShapeID

type GongNoteLinkShapeID struct {
	// The ID of the order
	//
	// in: path
	// required: true
	ID int64
}

An GongNoteLinkShapeID parameter model.

This is used for operations that want the ID of an order in the path swagger:parameters getGongNoteLinkShape updateGongNoteLinkShape deleteGongNoteLinkShape

type GongNoteLinkShapeInput

type GongNoteLinkShapeInput struct {
	// The GongNoteLinkShape to submit or modify
	// in: body
	GongNoteLinkShape *orm.GongNoteLinkShapeAPI
}

GongNoteLinkShapeInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postGongNoteLinkShape updateGongNoteLinkShape

type GongNoteShapeID

type GongNoteShapeID struct {
	// The ID of the order
	//
	// in: path
	// required: true
	ID int64
}

An GongNoteShapeID parameter model.

This is used for operations that want the ID of an order in the path swagger:parameters getGongNoteShape updateGongNoteShape deleteGongNoteShape

type GongNoteShapeInput

type GongNoteShapeInput struct {
	// The GongNoteShape to submit or modify
	// in: body
	GongNoteShape *orm.GongNoteShapeAPI
}

GongNoteShapeInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postGongNoteShape updateGongNoteShape

type GongStructShapeID

type GongStructShapeID struct {
	// The ID of the order
	//
	// in: path
	// required: true
	ID int64
}

An GongStructShapeID parameter model.

This is used for operations that want the ID of an order in the path swagger:parameters getGongStructShape updateGongStructShape deleteGongStructShape

type GongStructShapeInput

type GongStructShapeInput struct {
	// The GongStructShape to submit or modify
	// in: body
	GongStructShape *orm.GongStructShapeAPI
}

GongStructShapeInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postGongStructShape updateGongStructShape

type LinkShapeID

type LinkShapeID struct {
	// The ID of the order
	//
	// in: path
	// required: true
	ID int64
}

An LinkShapeID parameter model.

This is used for operations that want the ID of an order in the path swagger:parameters getLinkShape updateLinkShape deleteLinkShape

type LinkShapeInput

type LinkShapeInput struct {
	// The LinkShape to submit or modify
	// in: body
	LinkShape *orm.LinkShapeAPI
}

LinkShapeInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postLinkShape updateLinkShape

type ValidationError

type ValidationError struct {
	// in: body
	Body struct {
		Code    int32  `json:"code"`
		Message string `json:"message"`
		Field   string `json:"field"`
	} `json:"body"`
}

A ValidationError is an that is generated for validation failures. It has the same fields as a generic error but adds a Field property.

swagger:response validationError

Jump to

Keyboard shortcuts

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