u
This commit is contained in:
1 parent
b38583a9fe
commit
5bf69e977b
12 files changed
+425
-153
No files matched your search
@@ -60,3 +60,13 @@ func _deletemoneyrecordMw() []app.HandlerFunc {
|
||||
// your code...
|
||||
return nil
|
||||
}
|
||||
|
||||
func _createmoneycategoryMw() []app.HandlerFunc {
|
||||
// your code...
|
||||
return nil
|
||||
}
|
||||
|
||||
func _listMw() []app.HandlerFunc {
|
||||
// your code...
|
||||
return nil
|
||||
}
|
||||
@@ -19,8 +19,9 @@ func Register(r *server.Hertz) {
|
||||
root := r.Group("/", rootMw()...)
|
||||
{
|
||||
_money := root.Group("/money", _moneyMw()...)
|
||||
_money.GET("/category", append(_queryusermoneycategoryMw(), money.QueryUserMoneyCategory)...)
|
||||
_money.GET("/category", append(_listMw(), money.List)...)
|
||||
_category := _money.Group("/category", _categoryMw()...)
|
||||
_category.POST("/create", append(_createmoneycategoryMw(), money.CreateMoneyCategory)...)
|
||||
_category.POST("/delete", append(_deleteusermoneycategoryMw(), money.DeleteUserMoneyCategory)...)
|
||||
_category.POST("/updateSort", append(_updatemoneycategorysortMw(), money.UpdateMoneyCategorySort)...)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user