Documentation ¶
Index ¶
- func CreateCarouselPic(params *CreateCarouselAdRequest) error
- func CreateOrUpdateAboutUs(reqParams *CreateAboutUsRequest) error
- func CreatePosterResource(params *CreatePosterResourceRequest) (uint64, error)
- func CreateTheme(page, k, v string) error
- func CreateVersionRecord(reqParams *CreateVersionRecordRequest) error
- func DeleteAboutUs(id string) error
- func DeleteCarouselPic(id string) error
- func DeletePosterResource(id string) error
- func DeleteTheme(id string) error
- func DeleteVersionRecord(id string) error
- func Destroy()
- func GetBuiltinTheme() ([]string, error)
- func Init(baseUrl string, timeoutSec time.Duration)
- func UpdateAboutUs(reqParams *UpdateAboutUsRequest) error
- func UpdateCarouselPic(params *UpdateCarouselAdRequest) error
- func UpdatePosterResource(params *UpdatePosterResourceRequest) error
- func UpdateTheme(id, page, k, v string) error
- func UpdateVersionRecord(reqParams *UpdateVersionRecordRequest) error
- func UploadCarouselPic(pic *multipart.FileHeader) (string, string, error)
- type AboutUsInfo
- type CarouselAdInfo
- type CreateAboutUsRequest
- type CreateCarouselAdRequest
- type CreatePosterResourceRequest
- type CreatePosterResourceResponse
- type CreateThemeRequest
- type CreateVersionRecordRequest
- type CreateVersionRecordResponse
- type DeletePosterResourceResponse
- type GetAboutUsQuery
- type GetAboutUsResponse
- type GetBuiltinThemesResponse
- type GetCarouselAdsQuery
- type GetCarouselAdsResponse
- type GetPosterResourcesQuery
- type GetPosterResourcesResponse
- type GetThemesResponse
- type GetVersionRecordQuery
- type GetVersionRecordResult
- type PosterResourceInfo
- type ThemeInfo
- type UpdateAboutUsRequest
- type UpdateCarouselAdRequest
- type UpdatePosterResourceRequest
- type UpdatePosterResourceResponse
- type UpdateThemeRequest
- type UpdateVersionRecordRequest
- type UploadCarouselAdPicResponse
- type VersionRecordInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCarouselPic ¶
func CreateCarouselPic(params *CreateCarouselAdRequest) error
func CreateOrUpdateAboutUs ¶
func CreateOrUpdateAboutUs(reqParams *CreateAboutUsRequest) error
func CreatePosterResource ¶
func CreatePosterResource(params *CreatePosterResourceRequest) (uint64, error)
func CreateTheme ¶ added in v0.3.0
func CreateVersionRecord ¶
func CreateVersionRecord(reqParams *CreateVersionRecordRequest) error
func DeleteAboutUs ¶
func DeleteCarouselPic ¶
func DeletePosterResource ¶
func DeleteTheme ¶ added in v0.3.0
func DeleteVersionRecord ¶
func GetBuiltinTheme ¶ added in v0.4.0
func UpdateAboutUs ¶
func UpdateAboutUs(reqParams *UpdateAboutUsRequest) error
func UpdateCarouselPic ¶
func UpdateCarouselPic(params *UpdateCarouselAdRequest) error
func UpdatePosterResource ¶
func UpdatePosterResource(params *UpdatePosterResourceRequest) error
func UpdateTheme ¶ added in v0.3.0
func UpdateVersionRecord ¶
func UpdateVersionRecord(reqParams *UpdateVersionRecordRequest) error
func UploadCarouselPic ¶
func UploadCarouselPic(pic *multipart.FileHeader) (string, string, error)
Types ¶
type AboutUsInfo ¶
func GetAboutUs ¶
func GetAboutUs(params *GetAboutUsQuery) ([]AboutUsInfo, int64, error)
type CarouselAdInfo ¶
type CarouselAdInfo struct { ID string `json:"id"` Name string `json:"name"` Detail string `json:"detail"` TypeName uint8 `json:"typeName"` JumpAddr string `json:"jumpAddr"` JumpType uint8 `json:"jumpType"` Url string `json:"url"` Priority int `json:"priority"` }
func GetCarouselPic ¶
func GetCarouselPic(params *GetCarouselAdsQuery) ([]CarouselAdInfo, int64, error)
type CreateAboutUsRequest ¶
type CreateCarouselAdRequest ¶
type CreateCarouselAdRequest struct { Name string `json:"name" binding:"required"` Detail string `json:"detail"` TypeName uint8 `json:"typeName" binding:"required"` JumpAddr string `json:"jumpAddr" binding:"required"` JumpType uint8 `json:"jumpType"` Url string `json:"url"` Priority int `json:"priority"` }
type CreatePosterResourceRequest ¶
type CreatePosterResourceRequest struct { ImgFileName string `json:"imgFileName" binding:"required"` Text string `json:"text" ` BelongsDate string `json:"belongsDate" binding:"required"` Photographer string `json:"photographer" binding:"required"` IsHoliday uint8 `json:"isHoliday" binding:"required"` }
type CreatePosterResourceResponse ¶
type CreatePosterResourceResponse struct { ID uint64 `json:"id"` // contains filtered or unexported fields }
type CreateThemeRequest ¶ added in v0.3.0
type CreateVersionRecordResponse ¶
type CreateVersionRecordResponse struct {
// contains filtered or unexported fields
}
type DeletePosterResourceResponse ¶
type DeletePosterResourceResponse struct {
// contains filtered or unexported fields
}
type GetAboutUsQuery ¶
type GetAboutUsResponse ¶
type GetAboutUsResponse struct { PageNo int `json:"pageNo"` TotalCount int64 `json:"totalCount"` Infos []AboutUsInfo `json:"infos"` // contains filtered or unexported fields }
type GetBuiltinThemesResponse ¶ added in v0.3.0
type GetBuiltinThemesResponse struct { Themes []string `json:"themes"` // contains filtered or unexported fields }
type GetCarouselAdsQuery ¶
type GetCarouselAdsResponse ¶
type GetCarouselAdsResponse struct { PageNo int `json:"pageNo"` TotalCount int64 `json:"totalCount"` Infos []CarouselAdInfo `json:"infos"` // contains filtered or unexported fields }
type GetPosterResourcesQuery ¶
type GetPosterResourcesQuery struct { ID uint64 `form:"id"` ImgFileName string `form:"imgFileName"` Text string `form:"text"` BelongsDate string `form:"belongsDate"` Photographer string `form:"photographer"` IsHoliday uint8 `form:"isHoliday"` PageNo int `form:"pageNo"` PageSize int `form:"pageSize"` }
type GetPosterResourcesResponse ¶
type GetPosterResourcesResponse struct { PageNo int `json:"pageNo"` TotalCount int64 `json:"totalCount"` Infos []PosterResourceInfo `json:"infos"` // contains filtered or unexported fields }
type GetThemesResponse ¶ added in v0.3.0
type GetVersionRecordQuery ¶
type GetVersionRecordResult ¶
type GetVersionRecordResult struct { PageNo int `json:"pageNo"` TotalCount int64 `json:"totalCount"` Infos []VersionRecordInfo `json:"infos"` // contains filtered or unexported fields }
type PosterResourceInfo ¶
type PosterResourceInfo struct { ID uint64 ImgFileName string Text string BelongsDate *time.Time Photographer string IsHoliday uint8 }
func GetPosterResources ¶
func GetPosterResources(params *GetPosterResourcesQuery) ([]PosterResourceInfo, int64, error)
type ThemeInfo ¶ added in v0.3.0
type UpdateAboutUsRequest ¶
type UpdateCarouselAdRequest ¶
type UpdatePosterResourceResponse ¶
type UpdatePosterResourceResponse struct {
// contains filtered or unexported fields
}
type UpdateThemeRequest ¶ added in v0.3.0
type VersionRecordInfo ¶
type VersionRecordInfo struct { ID string Number string Content string Remarks string CreateDate string State uint8 PublishDate string }
func GetVersionRecord ¶
func GetVersionRecord(params *GetVersionRecordQuery) ([]VersionRecordInfo, int64, error)
Click to show internal directories.
Click to hide internal directories.