z增加详情接口

This commit is contained in:
孙肖扬 2025-06-14 17:10:28 +08:00
parent 1bab9a17e6
commit 637fc47188
2 changed files with 16 additions and 1 deletions

View File

@ -38,7 +38,7 @@ func ValueAddBundleRouter(r *gin.RouterGroup) {
{
valueAddBundleAppRouteV2.POST("list", bundle.ValueAddServiceList)
valueAddBundleAppRouteV2.POST("detail", bundle.ValueAddServiceDetail)
//valueAddBundleAppRouteV2.POST("detail/lang", bundle.ValueAddServiceLangDetail)
valueAddBundleAppRouteV2.POST("detail/lang", bundle.ValueAddServiceLangDetail)
}
}

View File

@ -113,3 +113,18 @@ func ValueAddServiceDetail(c *gin.Context) {
}
service.Success(c, res)
}
func ValueAddServiceLangDetail(c *gin.Context) {
var req bundle.ValueAddServiceDetailRequest
if err := c.ShouldBindBodyWith(&req, binding.JSON); err != nil {
service.Error1(c, err)
return
}
res, err := service.BundleProvider.ValueAddServiceLangByUuidAndLanguage(context.Background(), &req)
if err != nil {
service.Error(c, err)
return
}
service.Success(c, res)
}