173 changed files with 5172 additions and 12 deletions
@ -0,0 +1,29 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
|
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
|
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
photoGalleryByAscriptionId. |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
|
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
re |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
|
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
photoGalleryByAscriptionId. |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
|
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
dbGrom |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
|
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,31 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
overall. |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,31 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
overall.cons |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,31 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
overall.consatan |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,31 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
overall.consatant |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,31 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
overall.consat |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,31 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
overall.consatnt |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,31 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
overall.consatnt_Db_ |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,31 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
|
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,31 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
|
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,31 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
overall.CONSTANT_DB_MANAGE_ARCHIVES |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,31 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
overall.CONSTANT_DB_MANAGE_ARCHIVES. |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,32 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
overall.CONSTANT_DB_MANAGE_ARCHIVES |
||||
|
over |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,32 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
overall.CONSTANT_DB_MANAGE_ARCHIVES |
||||
|
over |
||||
|
// if err != nil {
|
||||
|
// publicmethod.Result(107, err, c)
|
||||
|
// return
|
||||
|
// }
|
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,31 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
overall. |
||||
|
// if err != nil {
|
||||
|
// publicmethod.Result(107, err, c)
|
||||
|
// return
|
||||
|
// }
|
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
overall. |
||||
|
// if err != nil {
|
||||
|
// publicmethod.Result(107, err, c)
|
||||
|
// return
|
||||
|
// }
|
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,28 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
overall. |
||||
|
// if err != nil {
|
||||
|
// publicmethod.Result(107, err, c)
|
||||
|
// return
|
||||
|
// }
|
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,28 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
|
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
overall. |
||||
|
// if err != nil {
|
||||
|
// publicmethod.Result(107, err, c)
|
||||
|
// return
|
||||
|
// }
|
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,27 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
o |
||||
|
// if err != nil {
|
||||
|
// publicmethod.Result(107, err, c)
|
||||
|
// return
|
||||
|
// }
|
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,27 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
o |
||||
|
// if err != nil {
|
||||
|
// publicmethod.Result(107, err, c)
|
||||
|
// return
|
||||
|
// }
|
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,27 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
|
||||
|
// if err != nil {
|
||||
|
// publicmethod.Result(107, err, c)
|
||||
|
// return
|
||||
|
// }
|
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,31 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
overall.CONSTANT_DB_MANAGE_ARCHIVES. |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,31 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
overall.CONSTANT_DB_MANAGE_ARCHIVES |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,32 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
o |
||||
|
err := nil |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,32 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
overall. |
||||
|
err := nil |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,32 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
overall. |
||||
|
err nil |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,31 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
err := error. |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,31 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
// "key_performance_indicators/overall"
|
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
err := error. |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,31 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
// "key_performance_indicators/overall"
|
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
err := error. |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
er |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
error. |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,31 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
err := error. |
||||
|
if err != nil { |
||||
|
publicmethod.Result(107, err, c) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,28 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}).Where("state BETWEEN ? AND ?", 1, 2) |
||||
|
|
||||
|
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}).Where("state BETWEEN ? AND ?", 1, 2) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
// gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}).Where("state BETWEEN ? AND ?", 1, 2)
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,27 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
// gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}).Where("state BETWEEN ? AND ?", 1, 2)
|
||||
|
overall.con |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,27 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
// gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}).Where("state BETWEEN ? AND ?", 1, 2)
|
||||
|
overall.cona |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,27 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
// gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}).Where("state BETWEEN ? AND ?", 1, 2)
|
||||
|
// overall.cona
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
// gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}).Where("state BETWEEN ? AND ?", 1, 2)
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
// gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}).Where("state BETWEEN ? AND ?", 1, 2)
|
||||
|
// publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
// gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}).Where("state BETWEEN ? AND ?", 1, 2)
|
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}).Where("state BETWEEN ? AND ?", 1, 2) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,27 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb. |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,27 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.wher |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,27 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where() |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,27 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where("") |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,27 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where("as") |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,27 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(whe) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,27 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,27 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find() |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,27 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,27 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,27 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,27 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
// photoUrl := photoGalleryByAscriptionId.Url
|
||||
|
// publicmethod.Result(0, photoUrl, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,25 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList() |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,req) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,request) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,requestD) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,requestData.P) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,requestData.) |
||||
|
} |
||||
@ -0,0 +1,25 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.Resu |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList() |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,1,) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,p) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,ov) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,overall.) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList() |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,public) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,publicmethod.LimitPage(.)) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,publicmethod.pa) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,publicmethod.PagesTurn.) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,publicmethod.PagesTurn.Page,) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,publicmethod.PagesTurn.Page,publi) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,publicmethod.PagesTurn.Page,publicmethod.) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,publicmethod.PagesTurn.Page,publicmethod.pag) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,publicmethod.PagesTurn.Page,publicmethod.PagesTurn.) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,publicmethod.PagesTurn.Page,publicmethod.PagesTurn.PageSize) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,publicmethod.PagesTurn.Page,publicmethod.PagesTurn.PageSize,) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,publicmethod.PagesTurn.Page,publicmethod.PagesTurn.PageSize,len()) |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package honoraryArchives |
||||
|
|
||||
|
import ( |
||||
|
"key_performance_indicators/models" |
||||
|
"key_performance_indicators/overall" |
||||
|
"key_performance_indicators/overall/publicmethod" |
||||
|
|
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
// 查询图片
|
||||
|
func (a *ApiMethod) ReviewImage(c *gin.Context) { |
||||
|
var requestData photoKey //声明荣誉图片字段
|
||||
|
c.ShouldBindJSON(&requestData) //进行Json绑定
|
||||
|
if requestData.Id == "" { |
||||
|
publicmethod.Result(101, requestData, c) |
||||
|
return |
||||
|
} |
||||
|
var photoGalleryByAscriptionId []models.PhotosGallery |
||||
|
where := publicmethod.MapOut[string]() |
||||
|
where["ascriptionid"] = requestData.Id |
||||
|
gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) |
||||
|
gormDb.Where(where).Find(&photoGalleryByAscriptionId) |
||||
|
publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回
|
||||
|
publicmethod.ResultList(0,publicmethod.PagesTurn.Page,publicmethod.PagesTurn.PageSize,len(photoGalleryByAscriptionId)) |
||||
|
} |
||||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue