Skip to content

Commit

Permalink
fix swager, regenerate wire
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhengen committed Nov 28, 2024
1 parent fbe47a5 commit 2f4b3f0
Show file tree
Hide file tree
Showing 7 changed files with 664 additions and 223 deletions.
2 changes: 1 addition & 1 deletion app/interfaces/api/handler/mock/login.mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (a *Login) GetUserInfo(c *gin.Context) {
// @Tags Login
// @Summary Get user menu tree
// @Security ApiKeyAuth
// @Success 200 {object} response.ListResult{list=[]schema.MenuTree} "Search Result"
// @Success 200 {object} response.ListResult{list=[]response.MenuTree} "Search Result"
// @Failure 401 {object} response.ErrorResult "{error:{code:0,message:Unauthorized}}"
// @Failure 500 {object} response.ErrorResult "{error:{code:0,message:SystemError}}"
// @Router /api/v1/pub/current/menutree [get]
Expand Down
4 changes: 2 additions & 2 deletions app/interfaces/api/handler/mock/menu.mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Menu struct{}
// @Param status query int false "Status(1:enable 2:disable)"
// @Param showStatus query int false "Show status(1:show 2:hide)"
// @Param parentID query string false "Parent ID"
// @Success 200 {object} response.ListResult{list=[]schema.Menu} "Search Result"
// @Success 200 {object} response.ListResult{list=[]response.Menu} "Search Result"
// @Failure 401 {object} response.ErrorResult "{error:{code:0,message:Unauthorized}}"
// @Failure 500 {object} response.ErrorResult "{error:{code:0,message:SystemError}}"
// @Router /api/v1/menus [get]
Expand All @@ -32,7 +32,7 @@ func (a *Menu) Query(c *gin.Context) {
// @Security ApiKeyAuth
// @Param status query int false "Status(1:enable 2:disable)"
// @Param parentID query string false "Parent ID"
// @Success 200 {object} response.ListResult{list=[]schema.MenuTree} "Search Result"
// @Success 200 {object} response.ListResult{list=[]response.MenuTree} "Search Result"
// @Failure 401 {object} response.ErrorResult "{error:{code:0,message:Unauthorized}}"
// @Failure 500 {object} response.ErrorResult "{error:{code:0,message:SystemError}}"
// @Router /api/v1/menus.tree [get]
Expand Down
4 changes: 2 additions & 2 deletions app/interfaces/api/handler/mock/role.mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Role struct {
// @Param pageSize query int true "Page size" default(10)
// @Param queryValue query string false "Search value"
// @Param status query int false "Status(1:enable 2:disable)"
// @Success 200 {object} response.ListResult{list=[]schema.Role} "Search Result"
// @Success 200 {object} response.ListResult{list=[]response.Role} "Search Result"
// @Failure 401 {object} response.ErrorResult "{error:{code:0,message:Unauthorized}}"
// @Failure 500 {object} response.ErrorResult "{error:{code:0,message:SystemError}}"
// @Router /api/v1/roles [get]
Expand All @@ -31,7 +31,7 @@ func (a *Role) Query(c *gin.Context) {
// @Security ApiKeyAuth
// @Param queryValue query string false "Search value"
// @Param status query int false "Status(1:enable 2:disable)"
// @Success 200 {object} response.ListResult{list=[]schema.Role} "Search Result"
// @Success 200 {object} response.ListResult{list=[]response.Role} "Search Result"
// @Failure 400 {object} response.ErrorResult "{error:{code:0,message:未知的查询类型}}"
// @Failure 401 {object} response.ErrorResult "{error:{code:0,message:Unauthorized}}"
// @Failure 500 {object} response.ErrorResult "{error:{code:0,message:SystemError}}"
Expand Down
Loading

0 comments on commit 2f4b3f0

Please sign in to comment.