attendance_router.go
887 字节
package routers
import (
"github.com/beego/beego/v2/server/web"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/port/beego/controllers"
)
func init() {
web.Router("/attendances/", &controllers.AttendanceController{}, "Post:CreateAttendance")
web.Router("/attendances/:productAttendanceId", &controllers.AttendanceController{}, "Put:UpdateAttendance")
web.Router("/attendances/:productAttendanceId", &controllers.AttendanceController{}, "Get:GetAttendance")
web.Router("/attendances/:productAttendanceId", &controllers.AttendanceController{}, "Delete:RemoveAttendance")
web.Router("/attendances/", &controllers.AttendanceController{}, "Get:ListAttendance")
web.Router("/attendances/approve", &controllers.AttendanceController{}, "Post:ApproveAttendance")
web.Router("/attendances/search", &controllers.AttendanceController{}, "Post:SearchAttendance")
}