gin-vue-admin 2.0代码重构
This commit is contained in:
21
web/src/api/autoCode.js
Normal file
21
web/src/api/autoCode.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import service from '@/utils/request'
|
||||
// @Tags api
|
||||
// @Summary 分页获取角色列表
|
||||
// @Security ApiKeyAuth
|
||||
// @accept application/json
|
||||
// @Produce application/json
|
||||
// @Param data body modelInterface.PageInfo true "分页获取用户列表"
|
||||
// @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}"
|
||||
// @Router /api/getApiList [post]
|
||||
// {
|
||||
// page int
|
||||
// pageSize int
|
||||
// }
|
||||
export const createTemp = (data) => {
|
||||
return service({
|
||||
url: "/autoCode/createTemp",
|
||||
method: 'post',
|
||||
data,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user