mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-21 18:20:50 +00:00
docs📝: 修改api文档注解
This commit is contained in:
@@ -64,7 +64,7 @@ func (e SysApi) GetSysApiList(c *gin.Context) {
|
|||||||
// @Tags 接口管理
|
// @Tags 接口管理
|
||||||
// @Param id path string false "id"
|
// @Param id path string false "id"
|
||||||
// @Success 200 {object} response.Response{data=models.SysApi} "{"code": 200, "data": [...]}"
|
// @Success 200 {object} response.Response{data=models.SysApi} "{"code": 200, "data": [...]}"
|
||||||
// @Router /api/v1/sys_api/{id} [get]
|
// @Router /api/v1/sys-api/{id} [get]
|
||||||
// @Security Bearer
|
// @Security Bearer
|
||||||
func (e SysApi) GetSysApi(c *gin.Context) {
|
func (e SysApi) GetSysApi(c *gin.Context) {
|
||||||
control := new(dto.SysApiById)
|
control := new(dto.SysApiById)
|
||||||
@@ -102,7 +102,7 @@ func (e SysApi) GetSysApi(c *gin.Context) {
|
|||||||
// @Product application/json
|
// @Product application/json
|
||||||
// @Param data body dto.SysApiControl true "body"
|
// @Param data body dto.SysApiControl true "body"
|
||||||
// @Success 200 {object} response.Response "{"code": 200, "message": "修改成功"}"
|
// @Success 200 {object} response.Response "{"code": 200, "message": "修改成功"}"
|
||||||
// @Router /api/v1/sys_api/{id} [put]
|
// @Router /api/v1/sys-api/{id} [put]
|
||||||
// @Security Bearer
|
// @Security Bearer
|
||||||
func (e SysApi) UpdateSysApi(c *gin.Context) {
|
func (e SysApi) UpdateSysApi(c *gin.Context) {
|
||||||
req := new(dto.SysApiControl)
|
req := new(dto.SysApiControl)
|
||||||
@@ -137,7 +137,7 @@ func (e SysApi) UpdateSysApi(c *gin.Context) {
|
|||||||
// @Tags 接口管理
|
// @Tags 接口管理
|
||||||
// @Param ids body []int false "ids"
|
// @Param ids body []int false "ids"
|
||||||
// @Success 200 {object} response.Response "{"code": 200, "message": "删除成功"}"
|
// @Success 200 {object} response.Response "{"code": 200, "message": "删除成功"}"
|
||||||
// @Router /api/v1/sys_api [delete]
|
// @Router /api/v1/sys-api [delete]
|
||||||
// @Security Bearer
|
// @Security Bearer
|
||||||
func (e SysApi) DeleteSysApi(c *gin.Context) {
|
func (e SysApi) DeleteSysApi(c *gin.Context) {
|
||||||
|
|
||||||
@@ -145,7 +145,7 @@ func (e SysApi) DeleteSysApi(c *gin.Context) {
|
|||||||
s := service.SysApi{}
|
s := service.SysApi{}
|
||||||
err := e.MakeContext(c).
|
err := e.MakeContext(c).
|
||||||
MakeOrm().
|
MakeOrm().
|
||||||
Bind(control).
|
Bind(control, binding.Form).
|
||||||
MakeService(&s.Service).
|
MakeService(&s.Service).
|
||||||
Errors
|
Errors
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user