Documentation ¶
Index ¶
- func CreateCarouselPic(params *CreateCarouselAdRequest) error
- func CreateOpinion(req *CreateOpinionRequest) (string, 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 ReplyOpinion(req *ReplyOpinionRequest) error
- 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 CreateOpinionRequest
- type CreateOpinionResponse
- type CreatePosterResourceRequest
- type CreatePosterResourceResponse
- type CreateThemeRequest
- type CreateVersionRecordRequest
- type CreateVersionRecordResponse
- type DeletePosterResourceResponse
- type GetAboutUsQuery
- type GetAboutUsResponse
- type GetAllOpinionRequest
- type GetBuiltinThemesResponse
- type GetCarouselAdsQuery
- type GetCarouselAdsResponse
- type GetOpinionResponse
- type GetOpinionsOfUserRequest
- type GetPosterResourcesQuery
- type GetPosterResourcesResponse
- type GetSingleOpinionResponse
- type GetThemesResponse
- type GetVersionRecordQuery
- type GetVersionRecordResult
- type KVPair
- type OpinionInfo
- type OpinionReplyResponse
- type OssObjInfo
- type PagingOpinions
- type PosterResourceInfo
- type ReplyOpinionRequest
- type ThemeInfo
- type TypeDictResponse
- type UpdateAboutUsRequest
- type UpdateCarouselAdRequest
- type UpdatePosterResourceRequest
- type UpdatePosterResourceResponse
- type UpdateThemeRequest
- type UpdateVersionRecordRequest
- type UploadCarouselAdPicResponse
- type UploadOpinionPicRequest
- type UploadOpinionPicResponse
- type VersionRecordInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCarouselPic ¶
func CreateCarouselPic(params *CreateCarouselAdRequest) error
func CreateOpinion ¶ added in v0.7.1
func CreateOpinion(req *CreateOpinionRequest) (string, 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 ReplyOpinion ¶ added in v0.7.1
func ReplyOpinion(req *ReplyOpinionRequest) error
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 CreateOpinionRequest ¶ added in v0.7.1
type CreateOpinionResponse ¶ added in v0.7.1
type CreateOpinionResponse struct { ID string `json:"id"` // contains filtered or unexported fields }
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 GetAllOpinionRequest ¶ added in v0.7.1
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 GetOpinionResponse ¶ added in v0.7.1
type GetOpinionResponse struct { PagingOpinions // contains filtered or unexported fields }
type GetOpinionsOfUserRequest ¶ added in v0.7.1
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 GetSingleOpinionResponse ¶ added in v0.7.1
type GetSingleOpinionResponse struct { Info OpinionInfo `json:"info"` // 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 KVPair ¶ added in v0.8.3
func GetTypeDict ¶ added in v0.8.3
type OpinionInfo ¶ added in v0.7.1
type OpinionInfo struct { ID string `json:"id"` SubmitterName string `json:"submitterName"` TypeString string `json:"typeString"` Content string `json:"content"` SubmitTime string `json:"submitTime"` Reply string `json:"reply"` ReplayTime string `json:"replayTime"` Pics []string `json:"pics"` }
func GetSingleOpinion ¶ added in v0.7.1
func GetSingleOpinion(opinionId string) (*OpinionInfo, error)
type OpinionReplyResponse ¶ added in v0.7.1
type OpinionReplyResponse struct {
// contains filtered or unexported fields
}
type OssObjInfo ¶ added in v0.7.1
func UploadOpinionPic ¶ added in v0.7.1
func UploadOpinionPic(pic *multipart.FileHeader) (*OssObjInfo, error)
type PagingOpinions ¶ added in v0.7.1
type PagingOpinions struct { Total int64 `json:"total"` PageNo int `json:"pageNo"` Infos []OpinionInfo `json:"infos"` }
func GetAllOpinion ¶ added in v0.7.1
func GetOpinionsOfUser ¶ added in v0.7.1
func GetOpinionsOfUser(userId string, pageNo int, pageSize int) (*PagingOpinions, error)
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 ReplyOpinionRequest ¶ added in v0.7.1
type ThemeInfo ¶ added in v0.3.0
type TypeDictResponse ¶ added in v0.8.3
type TypeDictResponse struct { Infos []KVPair `json:"infos"` // contains filtered or unexported fields }
type UpdateAboutUsRequest ¶
type UpdateCarouselAdRequest ¶
type UpdatePosterResourceResponse ¶
type UpdatePosterResourceResponse struct {
// contains filtered or unexported fields
}
type UpdateThemeRequest ¶ added in v0.3.0
type UploadOpinionPicRequest ¶ added in v0.7.1
type UploadOpinionPicRequest struct {
Pic *multipart.FileHeader `form:"file"`
}
type UploadOpinionPicResponse ¶ added in v0.7.1
type UploadOpinionPicResponse struct { OssObjInfo // contains filtered or unexported fields }
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.