|
@@ -44,7 +44,7 @@ type ResourceController struct {
|
|
|
// @Param IncludeFile query string true "是否包含文件, no:不包含"
|
|
|
// @Param SourceFrom query string true "来源, 用英文逗号分隔"
|
|
|
// @Param IsShowMe query string true "只看我, false:全部, true:只看我"
|
|
|
-// @Param IsShowPulic query string true "只看我, false:全部, true:只看发布"
|
|
|
+// @Param IsShowPublic query string true "只看我, false:全部, true:只看发布"
|
|
|
// @Success 200 {object} knowledge.KnowledgeResourceListResp
|
|
|
// @router /resource/list [get]
|
|
|
func (this *ResourceController) List() {
|
|
@@ -71,7 +71,7 @@ func (this *ResourceController) List() {
|
|
|
|
|
|
IsShowMe, _ := this.GetBool("IsShowMe")
|
|
|
|
|
|
- isShowPulic, _ := this.GetBool("IsShowPulic")
|
|
|
+ isShowPublic, _ := this.GetBool("IsShowPublic")
|
|
|
|
|
|
var startSize int
|
|
|
if pageSize <= 0 {
|
|
@@ -97,7 +97,7 @@ func (this *ResourceController) List() {
|
|
|
pars = append(pars, this.SysUser.AdminId)
|
|
|
}
|
|
|
|
|
|
- if isShowPulic {
|
|
|
+ if isShowPublic {
|
|
|
condition += ` AND state = ? `
|
|
|
pars = append(pars, knowledge.KnowledgeResourceStatePassed)
|
|
|
}
|