Browse Source

#2225

add point rule route
tags/v1.22.9.2^2
chenyifan01 3 years ago
parent
commit
66fb71107f
2 changed files with 6 additions and 0 deletions
  1. +5
    -0
      routers/reward/point/point.go
  2. +1
    -0
      routers/routes/routes.go

+ 5
- 0
routers/reward/point/point.go View File

@@ -11,6 +11,7 @@ import (
)

const tplPoint base.TplName = "reward/point"
const tplPointRule base.TplName = "reward/point/rule"

type AccountResponse struct {
Balance int64
@@ -80,3 +81,7 @@ func OperatePointAccountBalance(ctx *context.Context, req models.AdminRewardOper
func GetPointPage(ctx *context.Context) {
ctx.HTML(200, tplPoint)
}

func GetRulePage(ctx *context.Context) {
ctx.HTML(200, tplPointRule)
}

+ 1
- 0
routers/routes/routes.go View File

@@ -1355,6 +1355,7 @@ func RegisterRoutes(m *macaron.Macaron) {

m.Group("/reward/point", func() {
m.Get("", point.GetPointPage)
m.Get("/rule", point.GetRulePage)
m.Get("/account", point.GetPointAccount)
m.Get("/record/list", point.GetPointRecordList)
}, reqSignIn)


Loading…
Cancel
Save