|
@@ -4,6 +4,7 @@ import com.yonge.cooleshow.auth.api.dto.RealnameAuthReq;
|
|
|
import com.yonge.cooleshow.auth.api.dto.SysUserQueryInfo;
|
|
|
import com.yonge.cooleshow.auth.api.dto.UpdatePasswordDto;
|
|
|
import com.yonge.cooleshow.auth.api.dto.UserSetReq;
|
|
|
+import com.yonge.cooleshow.auth.api.entity.SysConfig;
|
|
|
import com.yonge.cooleshow.auth.api.entity.SysRole;
|
|
|
import com.yonge.cooleshow.auth.api.entity.SysUser;
|
|
|
import com.yonge.cooleshow.auth.api.vo.UserSetVo;
|
|
@@ -50,9 +51,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
import java.text.MessageFormat;
|
|
|
-import java.util.Date;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Objects;
|
|
|
+import java.util.*;
|
|
|
|
|
|
@RestController()
|
|
|
@RequestMapping("user")
|
|
@@ -661,4 +660,13 @@ public class UserController extends BaseController {
|
|
|
public HttpResponseResult<List<SysUser>> page(@RequestBody SysUserQueryInfo queryInfo) {
|
|
|
return succeed(sysUserService.queryEmployeeList(queryInfo));
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取配置的客服电话和邮箱")
|
|
|
+ @PostMapping(value = "/queryConfig")
|
|
|
+ public HttpResponseResult<Map<String,String>> queryConfig() {
|
|
|
+ Map<String,String> result = new HashMap<>(2);
|
|
|
+ result.put("customerServiceEmail",sysConfigService.findConfigValue("customer_service_email"));
|
|
|
+ result.put("customerServicePhone",sysConfigService.findConfigValue("customer_service_phone"));
|
|
|
+ return succeed(result);
|
|
|
+ }
|
|
|
}
|