feat:完善项目
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user