mirror of
https://gitcode.com/flipped-aurora/gin-vue-admin.git
synced 2026-05-24 16:18:07 +00:00
代码生成器增加前端table.vue的自动生成
This commit is contained in:
@@ -58,7 +58,7 @@ export const create{{.StructName}} = (data) => {
|
||||
// @Param data body model.{{.StructName}} true "用id查询{{.StructName}}"
|
||||
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
|
||||
// @Router /{{.Abbreviation}}/find{{.StructName}} [get]
|
||||
export const find{{.StructName}} = (data) => {
|
||||
export const find{{.StructName}} = (params) => {
|
||||
return service({
|
||||
url: "/{{.Abbreviation}}/find{{.StructName}}",
|
||||
method: 'get',
|
||||
@@ -75,7 +75,7 @@ export const create{{.StructName}} = (data) => {
|
||||
// @Param data body request.PageInfo true "分页获取{{.StructName}}列表"
|
||||
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
|
||||
// @Router /{{.Abbreviation}}/get{{.StructName}}List [get]
|
||||
export const get{{.StructName}}List = (data) => {
|
||||
export const get{{.StructName}}List = (params) => {
|
||||
return service({
|
||||
url: "/{{.Abbreviation}}/get{{.StructName}}List",
|
||||
method: 'get',
|
||||
|
||||
Reference in New Issue
Block a user