feat: 添加短信验证码发送记录功能
This commit is contained in:
@@ -30,6 +30,7 @@ type Routes struct {
|
||||
medias *medias
|
||||
orders *orders
|
||||
posts *posts
|
||||
smsCodeSends *smsCodeSends
|
||||
statistics *statistics
|
||||
uploads *uploads
|
||||
users *users
|
||||
@@ -149,6 +150,12 @@ func (r *Routes) Register(router fiber.Router) {
|
||||
},
|
||||
Body[PostForm]("form"),
|
||||
))
|
||||
// Register routes for controller: smsCodeSends
|
||||
r.log.Debugf("Registering route: Get /admin/v1/sms-code-sends -> smsCodeSends.List")
|
||||
router.Get("/admin/v1/sms-code-sends"[len(r.Path()):], DataFunc1(
|
||||
r.smsCodeSends.List,
|
||||
Query[dto.SmsCodeSendListQuery]("query"),
|
||||
))
|
||||
// Register routes for controller: statistics
|
||||
r.log.Debugf("Registering route: Get /admin/v1/statistics -> statistics.statistics")
|
||||
router.Get("/admin/v1/statistics"[len(r.Path()):], DataFunc0(
|
||||
|
||||
Reference in New Issue
Block a user