新增科普分类管理
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
type Area struct{}
|
||||
|
||||
// GetAreaList 获取地区列表
|
||||
func (b *Area) GetAreaList(c *gin.Context) {
|
||||
func (r *Area) GetAreaList(c *gin.Context) {
|
||||
areaRequest := requests.AreaRequest{}
|
||||
req := areaRequest.GetAreaList
|
||||
if err := c.ShouldBind(&req); err != nil {
|
||||
@@ -43,8 +43,8 @@ func (b *Area) GetAreaList(c *gin.Context) {
|
||||
}
|
||||
|
||||
// 处理返回值
|
||||
r := dto.GetAreaListDto(area)
|
||||
responses.OkWithData(r, c)
|
||||
g := dto.GetAreaListDto(area)
|
||||
responses.OkWithData(g, c)
|
||||
}
|
||||
|
||||
// AddArea 新增地区
|
||||
|
||||
Reference in New Issue
Block a user