webapp

package
v0.0.0-...-269099d Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(c *gin.Context)

@Summary product add @Tags Product @Description 新增 @Produce json @Security token @Param plugin body db.Webapp true "webapp" @Success 200 {object} msg.Response @Failure 200 {object} msg.Response @Router /api/v1/product/ [post]

func Delete

func Delete(c *gin.Context)

@Summary product delete @Tags Product @Description 删除 @Produce json @Security token @Param id path int true "ID" @Success 200 {object} msg.Response @Failure 200 {object} msg.Response @Router /api/v1/product/{id}/ [delete]

func Detail

func Detail(c *gin.Context)

@Summary product detail @Tags Product @Description 详情 @Produce json @Security token @Param id path int true "ID" @Success 200 {object} msg.Response @Failure 200 {object} msg.Response @Router /api/v1/product/{id}/ [get]

func Get

func Get(c *gin.Context)

@Summary product list @Tags Product @Description 列表 @Produce json @Security token @Param page query int true "Page" @Param pagesize query int true "Pagesize" @Param object query db.WebappSearchField false "field" @Success 200 {object} msg.Response @Failure 200 {object} msg.Response @Router /api/v1/product/ [get]

func Update

func Update(c *gin.Context)

@Summary product update @Tags Product @Description 更新 @Produce json @Security token @Param id path int true "ID" @Param webapp body db.Webapp true "webapp" @Success 200 {object} msg.Response @Failure 200 {object} msg.Response @Router /api/v1/product/{id}/ [put]

Types

This section is empty.

Jump to

Keyboard shortcuts

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