Documentation ¶
Index ¶
- func AddEncodeRule(req *AddEncodeRuleReq) error
- func BatchGenEncode(req BatchGenReq) error
- 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 DelEncodeRule(tangentId, id string) 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 GetDateCandidates() ([]interface{}, error)
- func GetSerialCandidates() ([]interface{}, error)
- func Init(baseUrl string, timeoutSec time.Duration)
- func IssueEncodeRule(tangentId, id string) (string, error)
- func PreviewEncodeLog(req PreviewEncodeReq) (string, error)
- func ReplyOpinion(req *ReplyOpinionRequest) error
- func SetEncodeLog(req SetEncodeResourceStateReq) error
- func SetEncodeRule(req SetEncodeResourceStateReq) 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 AddEncodeRuleReq
- type BatchGenReq
- type CarouselAdInfo
- type CreateAboutUsRequest
- type CreateCarouselAdRequest
- type CreateOpinionRequest
- type CreateOpinionResponse
- type CreatePosterResourceRequest
- type CreatePosterResourceResponse
- type CreateThemeRequest
- type CreateVersionRecordRequest
- type CreateVersionRecordResponse
- type DeletePosterResourceResponse
- type EncodeRuleSetting
- type EncodingResp
- type GetAboutUsQuery
- type GetAboutUsResponse
- type GetAllOpinionRequest
- type GetBuiltinThemesResponse
- type GetCandidatesResp
- type GetCarouselAdsQuery
- type GetCarouselAdsResponse
- type GetOpinionResponse
- type GetOpinionsOfUserRequest
- type GetPosterResourcesQuery
- type GetPosterResourcesResponse
- type GetRuleLogResp
- type GetRuleResp
- type GetSingleOpinionResponse
- type GetThemesResponse
- type GetVersionRecordQuery
- type GetVersionRecordResult
- type KVPair
- type Log
- type LogResult
- type OpinionInfo
- type OpinionReplyResponse
- type OssObjInfo
- type PagingOpinions
- type PosterResourceInfo
- type PreviewEncodeReq
- type QueryEncodeRuleLogReq
- type QueryEncodeRuleReq
- type ReplyOpinionRequest
- type RuleInfo
- type RuleResult
- type SetEncodeResourceStateReq
- type SettingInfo
- 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 AddEncodeRule ¶ added in v0.11.20
func AddEncodeRule(req *AddEncodeRuleReq) error
func BatchGenEncode ¶ added in v0.12.5
func BatchGenEncode(req BatchGenReq) error
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 DelEncodeRule ¶ added in v0.11.20
func DeleteAboutUs ¶
func DeleteCarouselPic ¶
func DeletePosterResource ¶
func DeleteTheme ¶ added in v0.3.0
func DeleteVersionRecord ¶
func GetBuiltinTheme ¶ added in v0.4.0
func GetDateCandidates ¶ added in v0.12.1
func GetDateCandidates() ([]interface{}, error)
func GetSerialCandidates ¶ added in v0.12.1
func GetSerialCandidates() ([]interface{}, error)
func IssueEncodeRule ¶ added in v0.11.20
func PreviewEncodeLog ¶ added in v0.11.20
func PreviewEncodeLog(req PreviewEncodeReq) (string, error)
func ReplyOpinion ¶ added in v0.7.1
func ReplyOpinion(req *ReplyOpinionRequest) error
func SetEncodeLog ¶ added in v0.11.20
func SetEncodeLog(req SetEncodeResourceStateReq) error
func SetEncodeRule ¶ added in v0.12.1
func SetEncodeRule(req SetEncodeResourceStateReq) 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 AddEncodeRuleReq ¶ added in v0.11.20
type AddEncodeRuleReq struct { Name string `json:"name"` RuleEncoding string `json:"ruleEncoding"` State uint8 `json:"state"` Separator string `json:"separator"` Version string `json:"version"` TangentId string `json:"tangentId"` UserId string `json:"userId"` Settings []EncodeRuleSetting `json:"settings"` Auto bool `json:"auto"` }
type BatchGenReq ¶ added in v0.12.5
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 EncodeRuleSetting ¶ added in v0.11.20
type EncodingResp ¶ added in v0.11.20
type EncodingResp struct { Encoding string `json:"encoding"` // 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 GetCandidatesResp ¶ added in v0.12.1
type GetCandidatesResp struct { Candidates []interface{} `json:"candidates"` // 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 GetRuleLogResp ¶ added in v0.11.20
type GetRuleLogResp struct { *LogResult // contains filtered or unexported fields }
type GetRuleResp ¶ added in v0.11.20
type GetRuleResp struct { *RuleResult // 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 LogResult ¶ added in v0.11.20
type LogResult struct { Infos []Log `json:"infos"` TotalCount int64 `json:"totalCount"` PageNo int `json:"pageNo"` }
func GetEncodeRuleLog ¶ added in v0.11.20
func GetEncodeRuleLog(req QueryEncodeRuleLogReq) (*LogResult, error)
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 PreviewEncodeReq ¶ added in v0.11.20
type PreviewEncodeReq struct { Separator string `json:"separator"` Settings []EncodeRuleSetting `json:"settings"` }
type QueryEncodeRuleLogReq ¶ added in v0.11.20
type QueryEncodeRuleReq ¶ added in v0.11.20
type QueryEncodeRuleReq struct { ID string `form:"id"` Name string `form:"name"` RuleEncoding string `form:"ruleEncoding"` State uint8 `form:"state"` Separator string `form:"separator"` Version string `form:"version"` TangentId string `form:"tangentId"` PageNo int `form:"pageNo"` PageSize int `form:"pageSize"` }
type ReplyOpinionRequest ¶ added in v0.7.1
type RuleInfo ¶ added in v0.11.20
type RuleInfo struct { ID string `json:"id"` Name string `json:"name"` RuleEncoding string `json:"ruleEncoding"` State uint8 `json:"state"` Separator string `json:"separator"` Version string `json:"version"` TangentId string `json:"tangentId"` CheckCode string `json:"checkCode"` CreateBy string `json:"createBy"` CreatedAt string `json:"createdAt"` Settings []SettingInfo `json:"settings"` IssueNum int64 `json:"issueNum"` Auto bool `json:"auto"` }
type RuleResult ¶ added in v0.11.20
type RuleResult struct { Infos []RuleInfo `json:"infos"` TotalCount int64 `json:"totalCount"` PageNo int `json:"pageNo"` }
func GetEncodeRule ¶ added in v0.11.20
func GetEncodeRule(req QueryEncodeRuleReq) (*RuleResult, error)
type SetEncodeResourceStateReq ¶ added in v0.12.1
type SettingInfo ¶ added in v0.11.20
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.