16 lines
373 B
Go
16 lines
373 B
Go
|
package attendanceMachine
|
||
|
|
||
|
import "github.com/gogf/gf/v2/net/ghttp"
|
||
|
|
||
|
type AttendanceMachineApi struct {
|
||
|
}
|
||
|
|
||
|
func InitAttendanceMachineAPI(group *ghttp.RouterGroup) {
|
||
|
group.Middleware(ghttp.MiddlewareCORS)
|
||
|
group.Group("/", func(group *ghttp.RouterGroup) {
|
||
|
group.Group("/api/v1/record", func(group *ghttp.RouterGroup) {
|
||
|
group.Bind(new(AttendanceMachineApi))
|
||
|
})
|
||
|
})
|
||
|
}
|