Commit 388efcf1 by “zcwang”

add: 提示文案查询

parent 241338bc
...@@ -25,5 +25,5 @@ public class TitleConfig { ...@@ -25,5 +25,5 @@ public class TitleConfig {
/** /**
* 文件 * 文件
*/ */
private List<ChangeFileConfig> changeFileConfigList; private List<TitleFileConfig> titleFileConfigList;
} }
\ No newline at end of file
...@@ -13,7 +13,7 @@ import lombok.Data; ...@@ -13,7 +13,7 @@ import lombok.Data;
* @Date 2022/11/14 * @Date 2022/11/14
*/ */
@Data @Data
public class ChangeFileConfig { public class TitleFileConfig {
/** /**
* 文件链接 * 文件链接
......
/**
* @(#)ChangeFlowService.java, 2022/11/14.
* <p/>
* Copyright 2022 Netease, Inc. All rights reserved.
* NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.netease.mail.yanxuan.change.biz.service;
import com.netease.mail.yanxuan.change.biz.config.TitleConfig;
/**
* @Author zcwang
* @Date 2022/11/14
*/
public interface ChangeFlowService {
/**
* 获取提示文案
* @return
*/
TitleConfig getTitleConfig();
}
\ No newline at end of file
...@@ -16,4 +16,6 @@ public interface ChangeConfigService { ...@@ -16,4 +16,6 @@ public interface ChangeConfigService {
ChangeConfig addChangeConfig(ChangeConfig changeConfig); ChangeConfig addChangeConfig(ChangeConfig changeConfig);
Boolean updateChangeConfig(ChangeConfig changeConfig); Boolean updateChangeConfig(ChangeConfig changeConfig);
} }
/**
* @(#)ChangeFlowServiceImpl.java, 2022/11/14.
* <p/>
* Copyright 2022 Netease, Inc. All rights reserved.
* NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.netease.mail.yanxuan.change.biz.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.netease.mail.yanxuan.change.biz.config.AppConfig;
import com.netease.mail.yanxuan.change.biz.config.TitleConfig;
import com.netease.mail.yanxuan.change.biz.service.ChangeFlowService;
/**
* @Author zcwang
* @Date 2022/11/14
*/
@Service
public class ChangeFlowServiceImpl implements ChangeFlowService {
@Autowired
private AppConfig appConfig;
@Override
public TitleConfig getTitleConfig() {
return appConfig.getTitleConfig();
}
}
\ No newline at end of file
...@@ -6,12 +6,15 @@ ...@@ -6,12 +6,15 @@
*/ */
package com.netease.mail.yanxuan.change.web.controller; package com.netease.mail.yanxuan.change.web.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import com.netease.mail.yanxuan.change.biz.config.TitleConfig;
import com.netease.mail.yanxuan.change.biz.meta.AjaxResult; import com.netease.mail.yanxuan.change.biz.meta.AjaxResult;
import com.netease.mail.yanxuan.change.biz.service.ChangeFlowService;
/** /**
* @Author zcwang * @Author zcwang
...@@ -21,6 +24,9 @@ import com.netease.mail.yanxuan.change.biz.meta.AjaxResult; ...@@ -21,6 +24,9 @@ import com.netease.mail.yanxuan.change.biz.meta.AjaxResult;
@RequestMapping("/change/flow") @RequestMapping("/change/flow")
public class ChangeFlowController { public class ChangeFlowController {
@Autowired
private ChangeFlowService changeFlowService;
/** /**
* 变更工单详情查询 * 变更工单详情查询
* @return * @return
...@@ -37,7 +43,6 @@ public class ChangeFlowController { ...@@ -37,7 +43,6 @@ public class ChangeFlowController {
*/ */
@GetMapping("/query") @GetMapping("/query")
public AjaxResult<Void> query() { public AjaxResult<Void> query() {
return AjaxResult.success(); return AjaxResult.success();
} }
...@@ -46,9 +51,8 @@ public class ChangeFlowController { ...@@ -46,9 +51,8 @@ public class ChangeFlowController {
* @return * @return
*/ */
@GetMapping("/title") @GetMapping("/title")
public AjaxResult<Void> title() { public AjaxResult<TitleConfig> title() {
return AjaxResult.success(changeFlowService.getTitleConfig());
return AjaxResult.success();
} }
/** /**
......
/**
* @(#)TitleVo.java, 2022/11/14.
* <p/>
* Copyright 2022 Netease, Inc. All rights reserved.
* NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.netease.mail.yanxuan.change.web.meta.model.vo;
import com.netease.mail.yanxuan.change.biz.config.TitleFileConfig;
import lombok.Data;
/**
* @Author zcwang
* @Date 2022/11/14
*/
@Data
public class TitleVo {
/**
* 提示文案
*/
private String title;
/**
*
*/
private TitleFileConfig titleFileConfig;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment