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