-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(Lint): 接入golangci-lint, 采用较强配置, 清理旧代码 (#349)
- Loading branch information
1 parent
941feab
commit 958a9cd
Showing
102 changed files
with
5,694 additions
and
6,015 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
package api | ||
|
||
import ( | ||
"github.com/labstack/echo/v4" | ||
"net/http" | ||
|
||
"github.com/labstack/echo/v4" | ||
) | ||
|
||
// 添加 checklist | ||
func checklistAdd(c echo.Context) error { //nolint | ||
//var err error | ||
//cl := model.CheckList{} | ||
//db := model.GetDB() | ||
// | ||
//if err := c.Bind(cl); err != nil { | ||
// return err | ||
//} | ||
// | ||
//err = db.Create(&cl).Error | ||
//if err != nil { | ||
// return c.String(http.StatusBadRequest, "") | ||
//} | ||
// var err error | ||
// cl := model.CheckList{} | ||
// db := model.GetDB() | ||
|
||
// if err := c.Bind(cl); err != nil { | ||
// return err | ||
// } | ||
|
||
// err = db.Create(&cl).Error | ||
// if err != nil { | ||
// return c.String(http.StatusBadRequest, "") | ||
// } | ||
|
||
return c.JSON(http.StatusCreated, nil) | ||
} |
Oops, something went wrong.