This commit is contained in:
oneao committed 2026-02-25 17:31:09 +08:00
1 parent 835958886e
commit d04d22723b
155 files changed
+543 -9793

No files matched your search

@@ -0,0 +1,102 @@
// Code generated by hertz generator.
package money
import (
"github.com/cloudwego/hertz/pkg/app"
)
func rootMw() []app.HandlerFunc {
// your code...
return nil
}
func _moneyMw() []app.HandlerFunc {
// your code...
return nil
}
func _categoryMw() []app.HandlerFunc {
// your code...
return nil
}
func _queryusermoneycategoryMw() []app.HandlerFunc {
// your code...
return nil
}
func _deleteusermoneycategoryMw() []app.HandlerFunc {
// your code...
return nil
}
func _updatemoneycategorysortMw() []app.HandlerFunc {
// your code...
return nil
}
func _querymoneyrecordMw() []app.HandlerFunc {
// your code...
return nil
}
func _recordMw() []app.HandlerFunc {
// your code...
return nil
}
func _insertmoneyrecordMw() []app.HandlerFunc {
// your code...
return nil
}
func _updatemoneyrecordMw() []app.HandlerFunc {
// your code...
return nil
}
func _deletemoneyrecordMw() []app.HandlerFunc {
// your code...
return nil
}
func _createmoneycategoryMw() []app.HandlerFunc {
// your code...
return nil
}
func _listMw() []app.HandlerFunc {
// your code...
return nil
}
func _updatemoneycategoryMw() []app.HandlerFunc {
// your code...
return nil
}
func _listmoneyrecordsMw() []app.HandlerFunc {
// your code...
return nil
}
func _analysismoneyMw() []app.HandlerFunc {
// your code...
return nil
}
func _analysisMw() []app.HandlerFunc {
// your code...
return nil
}
func _analysismoneylineMw() []app.HandlerFunc {
// your code...
return nil
}
func _analysismoneypieMw() []app.HandlerFunc {
// your code...
return nil
}
@@ -0,0 +1,41 @@
// Code generated by hertz generator. DO NOT EDIT.
package money
import (
money "allapp/biz/handler/money"
"github.com/cloudwego/hertz/pkg/app/server"
)
/*
This file will register all the routes of the services in the master idl.
And it will update automatically when you use the "update" command for the idl.
So don't modify the contents of the file, or your code will be deleted when it is updated.
*/
// Register register routes based on the IDL 'api.${HTTP Method}' annotation.
func Register(r *server.Hertz) {
root := r.Group("/", rootMw()...)
{
_money := root.Group("/money", _moneyMw()...)
_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("/update", append(_updatemoneycategoryMw(), money.UpdateMoneyCategory)...)
_category.POST("/updateSort", append(_updatemoneycategorysortMw(), money.UpdateMoneyCategorySort)...)
_money.POST("/records", append(_listmoneyrecordsMw(), money.ListMoneyRecords)...)
{
_analysis := _money.Group("/analysis", _analysisMw()...)
_analysis.POST("/line", append(_analysismoneylineMw(), money.AnalysisMoneyLine)...)
_analysis.POST("/pie", append(_analysismoneypieMw(), money.AnalysisMoneyPie)...)
}
{
_record := _money.Group("/record", _recordMw()...)
_record.POST("/delete", append(_deletemoneyrecordMw(), money.DeleteMoneyRecord)...)
_record.POST("/insert", append(_insertmoneyrecordMw(), money.InsertMoneyRecord)...)
_record.POST("/update", append(_updatemoneyrecordMw(), money.UpdateMoneyRecord)...)
}
}
}