1
This commit is contained in:
@@ -189,7 +189,7 @@ func (r *InquiryConfig) GetSystemInquiryConfigPage(c *gin.Context) {
|
||||
responses.OkWithData(result, c)
|
||||
}
|
||||
|
||||
// GetSystemInquiryConfig 系统问诊配置详情
|
||||
// GetSystemInquiryConfig 系统问诊配置详情-id
|
||||
func (r *InquiryConfig) GetSystemInquiryConfig(c *gin.Context) {
|
||||
id := c.Param("system_inquiry_config_id")
|
||||
if id == "" {
|
||||
@@ -263,3 +263,29 @@ func (r *InquiryConfig) PutSystemInquiryConfig(c *gin.Context) {
|
||||
|
||||
responses.Ok(c)
|
||||
}
|
||||
|
||||
// GetSystemInquiryConfigDetail 系统问诊配置详情-条件
|
||||
func (r *InquiryConfig) GetSystemInquiryConfigDetail(c *gin.Context) {
|
||||
inquiryConfigRequest := requests.InquiryConfigRequest{}
|
||||
req := inquiryConfigRequest.GetSystemInquiryConfigDetail
|
||||
if err := c.ShouldBind(&req); err != nil {
|
||||
responses.FailWithMessage(err.Error(), c)
|
||||
return
|
||||
}
|
||||
|
||||
// 参数验证
|
||||
if err := global.Validate.Struct(req); err != nil {
|
||||
responses.FailWithMessage(utils.Translate(err), c)
|
||||
return
|
||||
}
|
||||
|
||||
// 业务处理
|
||||
systemInquiryConfigService := service.SystemInquiryConfigService{}
|
||||
res, err := systemInquiryConfigService.GetSystemInquiryConfigDetail(req)
|
||||
if err != nil {
|
||||
responses.FailWithMessage(err.Error(), c)
|
||||
return
|
||||
}
|
||||
|
||||
responses.OkWithData(res, c)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user