feat:完善项目

This commit is contained in:
henry
2021-11-05 15:27:04 +08:00
parent 873ad8ea2c
commit d20ac3e09f
16 changed files with 465 additions and 13 deletions

View File

@ -57,6 +57,7 @@ func (this *Router) registerAPI() {
{
_api := new(api.Config)
configV1.GET("/area", _api.Area)
configV1.POST("/breakdown", _api.Breakdown)
}
// Tenant 租户单位管理
tenantV1 := v1.Group("/tenant")
@ -89,7 +90,7 @@ func (this *Router) registerAPI() {
roleV1 := v1.Group("/role")
{
_api := new(api.Role)
roleV1.POST("/list", _api.List)
roleV1.GET("/list", _api.List)
roleV1.POST("/add", _api.Add)
roleV1.POST("/menu", _api.Edit)
roleV1.POST("/delete", _api.Delete)
@ -110,6 +111,12 @@ func (this *Router) registerAPI() {
manageV1.POST("/material/edit", _api.MaterialEdit)
manageV1.POST("/material/delete", _api.MaterialDelete)
}
// Work 工单管理
workV1 := v1.Group("/work")
{
_api := new(api.Work)
workV1.POST("/list", _api.Instance)
}
}
func (this *Router) Init() *gin.Engine {