This commit is contained in:
aozhiwei 2024-08-13 16:50:03 +08:00
parent 7112c70c50
commit 3997360615

View File

@ -1,6 +1,7 @@
package activity
import (
"q5"
"github.com/gin-gonic/gin"
)
@ -10,7 +11,13 @@ type BitGetApi struct {
func (this *BitGetApi) NewUserMission(c *gin.Context) {
rspObj := struct {
Missions []struct{
MissionId int32 `json:"mission_id"`
Current int32 `json:"current"`
Target int32 `json:"target"`
} `json:"missions"`
}{}
q5.NewSlice(&rspObj.Missions, 0, 10)
p := q5.NewSliceElement(&rspObj.Missions)
p.MissionId = 1
c.JSON(200, rspObj)
}