Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDictType ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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.