var info ProjectInfoResponse
sql := `SELECT tp.project_pic from tb_project tp where tp.status=0 and tp.project_id=?` b, err := session.SQL(sql, request.ProjectId).Get(&info)
原因:
type ProjectInfoResponse struct { projectPic string `xorm:"project_pic" json:"project_pic"` // 项目图片 Inshelves project.InShelves `xorm:"inshelves" json:"inshelves"` // 0、下架,1、上架 }
projectPic 首字母需要大写。