feat:完善项目

This commit is contained in:
henry
2021-11-05 18:07:32 +08:00
parent d20ac3e09f
commit 85b58968d1
13 changed files with 254 additions and 17 deletions

View File

@ -100,6 +100,21 @@ func (*Config) Breakdown(c *gin.Context) {
APIResponse(err, data)(c)
}
func (*Config) BreakdownAdd() {
func (*Config) BreakdownAdd(c *gin.Context) {
}
func (*Config) BreakdownEdit(c *gin.Context) {
}
func (*Config) BreakdownDelete(c *gin.Context) {
form := new(IDStringForm)
if err := bind(form)(c); err != nil {
APIFailure(err.(error))(c)
return
}
err := config.NewBreakdown()(getSession()(c).(*service.Session)).Delete(form.Convert())
APIResponse(err)(c)
}