http

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeVersionStatus

func ChangeVersionStatus(c *gin.Context)

func CheckAndUpdateVersion

func CheckAndUpdateVersion(c *gin.Context)

func CreateCdkOrderHandler

func CreateCdkOrderHandler(c *gin.Context)

CreateCdkOrderHandler @Summary 创建兑换订单 @Author chy@33.cn @Tags Cdk App @Param FZM-SIGNATURE header string true "MOCK" @Param data body types.CreateCdkOrderReq false "body" @Success 200 {object} types.GeneralResponse{data=types.CreateCdkOrderResp} @Router /app/cdk/create-cdk-order [post]

func CreateCdkTypeHandler

func CreateCdkTypeHandler(c *gin.Context)

CreateCdkTypeHandler @Summary 创建 CdkType @Author chy@33.cn @Tags Cdk 后台 @Param data body types.CreateCdkTypeReq false "body" @Success 200 {object} types.GeneralResponse{data=types.CreateCdkTypeResp} @Router /backend/cdk/create-cdk-type [post]

func CreateCdksHandler

func CreateCdksHandler(c *gin.Context)

CreateCdksHandler @Summary 创建 Cdks @Author chy@33.cn @Tags Cdk 后台 @Param data body types.CreateCdksReq false "body" @Success 200 {object} types.GeneralResponse{data=types.CreateCdksResp} @Router /backend/cdk/create-cdks [post]

func CreateVersion

func CreateVersion(c *gin.Context)

func DealCdkOrderHandler

func DealCdkOrderHandler(c *gin.Context)

DealCdkOrderHandler @Summary 处理兑换订单 @Author chy@33.cn @Tags Cdk App @Param FZM-SIGNATURE header string true "MOCK" @Param data body types.DealCdkOrderReq false "body" @Success 200 {object} types.GeneralResponse{data=types.DealCdkOrderResp} @Router /app/cdk/deal-cdk-order [post]

func Default

func Default() *gin.Engine

Default returns an Engine instance with the Logger and Recovery middleware already attached.

func DeleteCdkTypesHandler

func DeleteCdkTypesHandler(c *gin.Context)

DeleteCdkTypesHandler @Summary 删除 cdkTypes @Author chy@33.cn @Tags Cdk 后台 @Param data body types.DeleteCdkTypesReq false "body" @Success 200 {object} types.GeneralResponse{data=types.DeleteCdkTypesResp} @Router /backend/cdk/delete-cdk-types [post]

func DeleteCdksHandler

func DeleteCdksHandler(c *gin.Context)

DeleteCdksHandler @Summary 删除 cdks @Author chy@33.cn @Tags Cdk 后台 @Param data body types.DeleteCdksReq false "body" @Success 200 {object} types.GeneralResponse{data=types.DeleteCdksResp} @Router /backend/cdk/delete-cdks [post]

func ExchangeCdksHandler

func ExchangeCdksHandler(c *gin.Context)

ExchangeCdksHandler @Summary 兑换 cdks @Author chy@33.cn @Tags Cdk 后台 @Param data body types.ExchangeCdksReq false "body" @Success 200 {object} types.GeneralResponse{data=types.ExchangeCdksResp} @Router /backend/cdk/exchange-cdks [post]

func GetCdkTypeByCoinNameHandler

func GetCdkTypeByCoinNameHandler(c *gin.Context)

GetCdkTypeByCoinNameHandler @Summary 查询一个票券对应的 cdkType @Author chy@33.cn @Tags Cdk App @Param data body types.GetCdkTypeByCoinNameReq false "body" @Success 200 {object} types.GeneralResponse{data=types.GetCdkTypeByCoinNameResp} @Router /app/cdk/get-cdk-type-by-coin-name [post]

func GetCdkTypesHandler

func GetCdkTypesHandler(c *gin.Context)

GetCdkTypesHandler @Summary 分页获得 cdkType @Author chy@33.cn @Tags Cdk 查询 @Param data body types.GetCdkTypesReq false "body" @Success 200 {object} types.GeneralResponse{data=types.GetCdkTypesResp} @Router /backend/cdk/get-cdk-types [post]

func GetCdksByUserIdHandler

func GetCdksByUserIdHandler(c *gin.Context)

GetCdksByUserIdHandler @Summary 分页获得一个人拥有的 cdks @Author chy@33.cn @Tags Cdk App @Param FZM-SIGNATURE header string true "MOCK" @Param data body types.GetCdksByUserIdReq false "body" @Success 200 {object} types.GeneralResponse{data=types.GetCdksByUserIdResp} @Router /app/cdk/get-cdks-by-user-id [post]

func GetCdksHandler

func GetCdksHandler(c *gin.Context)

GetCdksHandler @Summary 分页获得 cdks @Author chy@33.cn @Tags Cdk 查询 @Param data body types.GetCdksReq false "body" @Success 200 {object} types.GeneralResponse{data=types.GetCdksResp} @Router /backend/cdk/get-cdks [post]

func GetToken

func GetToken(c *gin.Context)

func GetVersionList

func GetVersionList(c *gin.Context)

func Init

func Init(s *service.Service) *http.Server

func InitService

func InitService(s *service.Service)

func SetupEngine

func SetupEngine(e *gin.Engine) *gin.Engine

func UpdateCdkTypeHandler

func UpdateCdkTypeHandler(c *gin.Context)

UpdateCdkTypeHandler @Summary 更新 cdkType @Author chy@33.cn @Tags Cdk 后台 @Param data body types.UpdateCdkTypeReq false "body" @Success 200 {object} types.GeneralResponse{data=types.UpdateCdkTypeResp} @Router /backend/cdk/update-cdk-type [post]

func UpdateVersion

func UpdateVersion(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL