Skip to content

Commit f2ea36a

Browse files
committed
feat: 调整初始化数据
1 parent a8e706a commit f2ea36a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/source/system/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ func (i *initApi) InitializeData(ctx context.Context) (context.Context, error) {
183183
{ApiGroup: "参数管理", Method: "GET", Path: "/sysParams/getSysParamsList", Description: "获取参数列表"},
184184
{ApiGroup: "参数管理", Method: "GET", Path: "/sysParams/getSysParam", Description: "获取参数列表"},
185185
{ApiGroup: "媒体库分类", Method: "GET", Path: "/attachmentCategory/getCategoryList", Description: "分类列表"},
186-
{ApiGroup: "媒体库分类", Method: "GET", Path: "/attachmentCategory/addCategory", Description: "添加/编辑分类"},
187-
{ApiGroup: "媒体库分类", Method: "GET", Path: "/attachmentCategory/deleteCategory", Description: "删除分类"},
186+
{ApiGroup: "媒体库分类", Method: "POST", Path: "/attachmentCategory/addCategory", Description: "添加/编辑分类"},
187+
{ApiGroup: "媒体库分类", Method: "POST", Path: "/attachmentCategory/deleteCategory", Description: "删除分类"},
188188
}
189189
if err := db.Create(&entities).Error; err != nil {
190190
return ctx, errors.Wrap(err, sysModel.SysApi{}.TableName()+"表数据初始化失败!")

0 commit comments

Comments
 (0)