dict

package
v0.0.0-...-594642b Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDictType

func DeleteDictType(c *gin.Context)

@Summary 删除字典类型 @Description 删除数据 @Tags 字典类型 @Param id path int true "id" @Success 200 {string} string "{"code": 200, "message": "删除成功"}" @Success 200 {string} string "{"code": -1, "message": "删除失败"}" @Router /api/v1/dict/type/{id} [delete]

func GetDictDataByDictTypeId

func GetDictDataByDictTypeId(c *gin.Context)

@Summary 通过字典类型id获取字典数据 @Description 获取JSON @Tags 字典数据 @Param type_id path int true "type_id" @Success 200 {object} app.Response{data=[]models.SysDictData} "desc" @Router /api/v1/dict/databytype/{type_id} [get] @Security Bearer

func GetDictDataList

func GetDictDataList(c *gin.Context)

@Summary 字典数据列表 @Description 获取JSON @Tags 字典数据 @Param status query string false "status" @Param dictCode query string false "dictCode" @Param dictType query string false "dictType" @Param pageSize query int false "页条数" @Param pageIndex query int false "页码" @Success 200 {object} app.Response "{"code": 200, "data": [...]}" @Router /api/v1/dict/data/list [get] @Security Bearer

func GetDictType

func GetDictType(c *gin.Context)

@Summary 通过字典id获取字典类型 @Description 获取JSON @Tags 字典数据 @Param id path int true "字典id" @Success 200 {object} app.Response{data=models.SysDictType} @Router /api/v1/dict/type/{id} [get] @Security Bearer

func GetDictTypeList

func GetDictTypeList(c *gin.Context)

@Summary 字典类型列表数据 @Description 获取JSON @Tags 字典数据 @Param name query string false "字典名称" @Param id query string false "字典id" @Param type query string false "字典类型" @Param page_size query int false "页条数" @Param page_index query int false "页码" @Success 200 {object} app.PageResponse{data=app.Page{list=[]models.SysDictType}} "desc" @Router /api/v1/dict/type [get] @Security Bearer

func InsertDictType

func InsertDictType(c *gin.Context)

@Summary 添加字典类型 @Description 获取JSON @Tags 字典数据 @Accept application/json @Product application/json @Param data body server.DictTypeCreate true "data" @Success 200 {string} string "{"code": 200, "message": "添加成功"}" @Router /api/v1/dict/type [post] @Security Bearer

func UpdateDictType

func UpdateDictType(c *gin.Context)

@Summary 修改字典类型 @Description 获取JSON @Tags 字典类型 @Accept application/json @Product application/json @Param data body server.DictTypeUpdate true "data" @Success 200 {string} string "{"code": 200, "message": "更新成功!"}" @Router /api/v1/dict/type [put] @Security Bearer

Types

This section is empty.

Jump to

Keyboard shortcuts

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