Cron_Admin/app/http/requestmapping/backend.go

13 lines
360 B
Go

package requestmapping
import (
"cron_admin/app/constants/common"
"cron_admin/app/http/entities/backend"
)
var BackendRequestMap = map[string]func() interface{}{
common.ADMIN_OAUTH_V1 + "/sql/list": func() interface{} { return new(backend.DbListRequest) },
common.ADMIN_OAUTH_V1 + "/sql/add": func() interface{} { return new(backend.DbAddRequest) },
}