router/api-router.go:314。controller.AddRedemption,controller/redemption.go:63。redemption:write。同时需要满足接口的角色和业务要求。Authorization: Bearer ********************curl --location '/api/redemption/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": 0,
"user_id": 0,
"key": "string",
"status": 0,
"name": "string",
"quota": 0,
"created_time": 0,
"redeemed_time": 0,
"count": 1,
"used_user_id": 0,
"DeletedAt": null,
"expired_time": 0,
"property1": "string",
"property2": "string"
}'{
"data": [
"string"
],
"message": "string",
"success": true,
"property1": "string",
"property2": "string"
}