Documentation
¶
Overview ¶
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Index ¶
- func Create(c helper.Context, input CreateParams) (res schema.Response)
- func CreateRouter(c *gin.Context)
- func Delete(c helper.Context, addressId string) (res schema.Response)
- func DeleteBannerById(id string)
- func DeleteRouter(c *gin.Context)
- func GetBanner(id string) (res schema.Response)
- func GetBannerList(c helper.Context, q Query) (res schema.List)
- func GetBannerListRouter(c *gin.Context)
- func GetBannerRouter(c *gin.Context)
- func Update(c helper.Context, bannerId string, input UpdateParams) (res schema.Response)
- func UpdateRouter(c *gin.Context)
- type CreateParams
- type Query
- type UpdateParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRouter ¶
func DeleteBannerById ¶
func DeleteBannerById(id string)
func DeleteRouter ¶
func GetBannerListRouter ¶
func GetBannerRouter ¶
func UpdateRouter ¶
Types ¶
type CreateParams ¶
type CreateParams struct {
Image string `json:"image" valid:"required~请填写图片URL"` // 图片 URL
Href string `json:"href" valid:"required~请填写图片跳转链接"` // 图片跳转的 URL
Platform model.BannerPlatform `json:"platform" valid:"required~请选择平台"` // 用于哪个平台, web/app
Description *string `json:"description"` // Banner 描述
Priority *int `json:"priority"` // 优先级,用于排序
Identifier *string `json:"identifier"` // APP 跳转标识符
FallbackUrl *string `json:"fallback_url"` // APP 跳转标识符的备选方案
}
type Query ¶
type Query struct {
schema.Query
Platform *model.BannerPlatform `json:"platform" form:"platform"` // 根据平台筛选
Active *bool `json:"active" form:"active"` // 是否激活
}
type UpdateParams ¶
type UpdateParams struct {
Image *string `json:"image"` // 图片 URL
Href *string `json:"href"` // 图片跳转的 URL
Platform *model.BannerPlatform `json:"platform"` // 用于哪个平台, web/app
Description *string `json:"description"` // Banner 描述
Priority *int `json:"priority"` // 优先级,用于排序
Identifier *string `json:"identifier"` // APP 跳转标识符
FallbackUrl *string `json:"fallback_url"` // APP 跳转标识符的备选方案
}
Click to show internal directories.
Click to hide internal directories.