fix
This commit is contained in:
@@ -16,9 +16,6 @@ import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* @author Rey(leijiaping @ newyetai.com)
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
|
||||
@@ -20,10 +20,10 @@ public class BusinessModelCreateDTO implements Serializable {
|
||||
private static final long serialVersionUID = 3962743989033667188L;
|
||||
|
||||
/**
|
||||
* 文件输出路径-绝对路径,如/work/eclipse/workspace/alita-base/common/src/main/java/com/newyetai/common/freemarker/
|
||||
* 文件输出路径-绝对路径,如/work/eclipse/workspace/alita-base/common/src/main/java/com/xxx/common/freemarker/
|
||||
**/
|
||||
private String exportDir;
|
||||
/** 包路径,如com.newyetai.dict **/
|
||||
/** 包路径,如com.xxx.dict **/
|
||||
private String packageName;
|
||||
/** 是否创建业务路径,默认创建 **/
|
||||
private Boolean createBusinessPath;
|
||||
|
||||
@@ -19,7 +19,6 @@ import java.util.Collection;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*
|
||||
*/
|
||||
@Api(tags = "字典表")
|
||||
|
||||
@@ -11,9 +11,6 @@ import com.senmesh.component.dict.entity.DictDetail;
|
||||
import com.senmesh.tkmybatis.mybatis.MyMapper;
|
||||
import com.senmesh.tkmybatis.pojo.Page;
|
||||
|
||||
/**
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*/
|
||||
public interface DictDetailMapper extends MyMapper<DictDetail> {
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,9 +8,6 @@ import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*/
|
||||
public interface DictMapper extends MyMapper<Dict> {
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,8 +9,7 @@ import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*
|
||||
*
|
||||
*/
|
||||
@NoArgsConstructor
|
||||
|
||||
@@ -11,9 +11,6 @@ import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @author Rey(leijiaping @ newyetai.com)
|
||||
*/
|
||||
@TableName("xs_dict")
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
|
||||
@@ -11,9 +11,6 @@ import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @author Rey(leijiaping @ newyetai.com)
|
||||
*/
|
||||
@TableName("xs_dict_detail")
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
|
||||
@@ -11,7 +11,6 @@ import java.util.Map;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*
|
||||
*/
|
||||
public interface DictDetailService {
|
||||
|
||||
@@ -5,7 +5,6 @@ import com.senmesh.component.dict.dto.DictQueryDTO;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*
|
||||
*/
|
||||
public interface DictService{
|
||||
|
||||
@@ -23,8 +23,7 @@ import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*
|
||||
*
|
||||
*/
|
||||
@Service
|
||||
|
||||
@@ -14,9 +14,6 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Rey(leijiaping @ newyetai.com)
|
||||
*/
|
||||
@Service
|
||||
public class DictServiceImpl implements DictService {
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ import io.swagger.annotations.ApiOperation;
|
||||
* @author sr on 2019-10-22
|
||||
*/
|
||||
@Api(tags = "下拉框")
|
||||
@RestController
|
||||
//@RestController
|
||||
@RequestMapping("/anon/dropdown")
|
||||
@ConditionalOnProperty(name = CommonConstants.USELOCAL_KEY, havingValue = "true", matchIfMissing = true)
|
||||
public class DropdownController {
|
||||
|
||||
@@ -3,8 +3,7 @@ package com.senmesh.component.file.constant;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class FileConstants {
|
||||
|
||||
@@ -19,7 +19,6 @@ import java.io.IOException;
|
||||
* @author sr on 2019-12-11
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/anon")
|
||||
@Api(tags = "匿名文件操作")
|
||||
public class AnonFileController {
|
||||
|
||||
@@ -27,14 +26,14 @@ public class AnonFileController {
|
||||
private FileService fileService;
|
||||
|
||||
@ApiOperation("根据code下载文件")
|
||||
@GetMapping("/file/download/{fileCode}")
|
||||
@GetMapping("/anon/file/download/{fileCode}")
|
||||
public void download(@PathVariable String fileCode, HttpServletRequest request,
|
||||
HttpServletResponse response) throws IOException {
|
||||
fileService.download(fileCode, request, response, Boolean.FALSE);
|
||||
}
|
||||
|
||||
@ApiOperation("根据code预览文件")
|
||||
@GetMapping("/file/display/{fileCode}")
|
||||
@GetMapping("/anon/file/display/{fileCode}")
|
||||
public void display(@PathVariable String fileCode, HttpServletRequest request,
|
||||
HttpServletResponse response) throws IOException {
|
||||
fileService.download(fileCode, request, response, Boolean.TRUE);
|
||||
|
||||
@@ -19,9 +19,6 @@ import com.senmesh.tkmybatis.pojo.Page;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
/**
|
||||
* @author Rey(leijiaping @ newyetai.com)
|
||||
*/
|
||||
@Api(tags = "文件配置操作")
|
||||
@RestController
|
||||
@RequestMapping({"/file_class"})
|
||||
|
||||
@@ -15,9 +15,6 @@ import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* @author Rey(leijiaping @ newyetai.com)
|
||||
*/
|
||||
@Api(tags = "文件记录操作")
|
||||
@RestController
|
||||
@RequestMapping({"/file"})
|
||||
|
||||
@@ -8,9 +8,6 @@ import com.senmesh.component.file.entity.FileRecord;
|
||||
import com.senmesh.tkmybatis.mybatis.MyMapper;
|
||||
import com.senmesh.tkmybatis.pojo.Page;
|
||||
|
||||
/**
|
||||
* @author Rey(leijiaping @ newyetai.com)
|
||||
*/
|
||||
public interface FileRecordMapper extends MyMapper<FileRecord> {
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,9 +9,6 @@ import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* @author Rey(leijiaping @ newyetai.com)
|
||||
*/
|
||||
@TableName("xs_file_class")
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
|
||||
@@ -11,9 +11,6 @@ import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @author Rey(leijiaping @ newyetai.com)
|
||||
*/
|
||||
@TableName("xs_file_record")
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
|
||||
@@ -5,9 +5,6 @@ import java.io.InputStream;
|
||||
import com.senmesh.component.file.entity.FileRecord;
|
||||
import com.senmesh.tkmybatis.pojo.Page;
|
||||
|
||||
/**
|
||||
* @author Rey(leijiaping @ newyetai.com)
|
||||
*/
|
||||
public interface FileRecordService {
|
||||
|
||||
/**
|
||||
|
||||
@@ -12,9 +12,6 @@ import com.senmesh.component.file.service.FileRecordService;
|
||||
import com.senmesh.component.file.util.FileStorageUtils;
|
||||
import com.senmesh.tkmybatis.pojo.Page;
|
||||
|
||||
/**
|
||||
* @author Rey(leijiaping @ newyetai.com)
|
||||
*/
|
||||
@Service
|
||||
public class FileRecordServiceImpl implements FileRecordService {
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ public class RabbitMqConfiguration {
|
||||
*/
|
||||
@Bean
|
||||
Jackson2JsonMessageConverter jackson2JsonMessageConverter() {
|
||||
return new Jackson2JsonMessageConverter("com.newyetai");
|
||||
return new Jackson2JsonMessageConverter("com.senmesh");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -6,8 +6,7 @@ import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 短信签名
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com) {@link undefined}
|
||||
*
|
||||
*/
|
||||
public class AddSmsSign implements Serializable {
|
||||
|
||||
|
||||
@@ -5,8 +5,7 @@ import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 短信签名
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*
|
||||
*/
|
||||
public class AddSmsSignResponse implements Serializable {
|
||||
|
||||
|
||||
@@ -5,8 +5,7 @@ import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 短信模板
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*
|
||||
*/
|
||||
public class AddSmsTemplate implements Serializable {
|
||||
|
||||
|
||||
@@ -5,8 +5,7 @@ import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 短信签名
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com) {@link undefined}
|
||||
*
|
||||
*/
|
||||
public class DeleteSmsSign implements Serializable {
|
||||
|
||||
|
||||
@@ -5,9 +5,7 @@ import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 短信签名
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class DeleteSmsSignResponse implements Serializable {
|
||||
|
||||
|
||||
@@ -5,8 +5,7 @@ import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 短信模板
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*
|
||||
*/
|
||||
public class DeleteSmsTemplate implements Serializable {
|
||||
|
||||
|
||||
@@ -5,8 +5,7 @@ import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 短信签名
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*
|
||||
*/
|
||||
public class ModifySmsSign implements Serializable {
|
||||
|
||||
|
||||
@@ -5,8 +5,7 @@ import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 短信签名
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*
|
||||
*/
|
||||
public class ModifySmsSignResponse implements Serializable {
|
||||
|
||||
|
||||
@@ -5,8 +5,7 @@ import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 短信模板
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*
|
||||
*/
|
||||
public class ModifySmsTemplate implements Serializable {
|
||||
|
||||
|
||||
@@ -5,8 +5,7 @@ import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 查询发送记录
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*
|
||||
*/
|
||||
public class QuerySendDetails implements Serializable {
|
||||
|
||||
|
||||
@@ -5,8 +5,7 @@ import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 短信签名
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*
|
||||
*/
|
||||
public class QuerySmsSign implements Serializable {
|
||||
|
||||
|
||||
@@ -5,8 +5,7 @@ import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 短信签名
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*
|
||||
*/
|
||||
public class QuerySmsSignResponse implements Serializable {
|
||||
|
||||
|
||||
@@ -5,8 +5,7 @@ import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 短信模板
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*
|
||||
*/
|
||||
public class QuerySmsTemplate implements Serializable {
|
||||
|
||||
|
||||
@@ -4,8 +4,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
* 查询查询短信模板的审核状态响应体
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com) {@link undefined}
|
||||
*
|
||||
*/
|
||||
public class QuerySmsTemplateResponse extends SmsResponse {
|
||||
|
||||
|
||||
@@ -10,8 +10,7 @@ import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 发送短信
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
|
||||
@@ -10,8 +10,7 @@ import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 发送短信
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
|
||||
@@ -4,8 +4,7 @@ import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 发送短信(单个/批量)响应体
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com) {@link undefined}
|
||||
*
|
||||
*/
|
||||
@NoArgsConstructor
|
||||
public class SendSmsResponse extends SmsResponse {
|
||||
|
||||
@@ -9,8 +9,7 @@ import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 短信响应体
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com) {@link undefined}
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
|
||||
@@ -5,8 +5,7 @@ import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 短信发送明细
|
||||
*
|
||||
* @author Rey(leijiaping@newyetai.com) {@link undefined}
|
||||
*
|
||||
*/
|
||||
public class SmsSendDetailResponse implements Serializable {
|
||||
|
||||
|
||||
@@ -4,9 +4,8 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
* 短信模板响应体
|
||||
* @author Rey(leijiaping@newyetai.com)
|
||||
*{@link undefined}
|
||||
*/
|
||||
*
|
||||
*/
|
||||
public class SmsTemplateResponse extends SmsResponse{
|
||||
|
||||
/** **/
|
||||
|
||||
@@ -84,7 +84,7 @@ public class WebSecurityConfigurer extends WebSecurityConfigurerAdapter {
|
||||
@Autowired(required = false)
|
||||
private UcardAuthenticationProvider ucardAuthenticationProvider;
|
||||
|
||||
@Autowired
|
||||
@Autowired(required = false)
|
||||
private SwaggerConfig swaggerConfig;
|
||||
|
||||
@Autowired(required = false)
|
||||
@@ -108,7 +108,7 @@ public class WebSecurityConfigurer extends WebSecurityConfigurerAdapter {
|
||||
public void configure(WebSecurity web) throws Exception {
|
||||
String[] ignoringArray = securityProperties.getIgnoringArray();
|
||||
// swagger 接口文档,不设置访问权限
|
||||
if (swaggerConfig.isSwaggerEnable() && StringUtils.isNotBlank(SwaggerConfig.ACCESS_PREFIX)) {
|
||||
if (swaggerConfig != null && swaggerConfig.isSwaggerEnable() && StringUtils.isNotBlank(SwaggerConfig.ACCESS_PREFIX)) {
|
||||
ignoringArray = ArrayUtils.addAll(ignoringArray, SwaggerConfig.ACCESS_PREFIX.split(","));
|
||||
}
|
||||
// websocket
|
||||
|
||||
@@ -13,8 +13,8 @@ import springfox.documentation.spi.DocumentationType;
|
||||
import springfox.documentation.spring.web.plugins.Docket;
|
||||
import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
||||
|
||||
@Configuration
|
||||
@EnableSwagger2
|
||||
//@Configuration
|
||||
//@EnableSwagger2
|
||||
public class SwaggerConfig {
|
||||
|
||||
@Value("${swagger.enable:false}")
|
||||
|
||||
@@ -19,7 +19,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
/**
|
||||
* @author sr on 2021-05-24
|
||||
*/
|
||||
@RestController
|
||||
//@RestController
|
||||
@Api(tags = "授权客户端")
|
||||
public class AuthClientController {
|
||||
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
//package com.newyetai.usercenter.auth.job;
|
||||
//
|
||||
//import org.springframework.beans.factory.annotation.Autowired;
|
||||
//import org.springframework.stereotype.Component;
|
||||
//
|
||||
//import com.newyetai.common.annotation.AlitaStopWatch;
|
||||
//import com.newyetai.job.util.ReturnTUtils;
|
||||
//import com.newyetai.security.util.MockUtils;
|
||||
//import com.newyetai.usercenter.auth.service.AuthSubscribeDetailService;
|
||||
//import com.newyetai.usercenter.common.constant.XxlJobHandlerConstants;
|
||||
//import com.xxl.job.core.biz.model.ReturnT;
|
||||
//import com.xxl.job.core.handler.annotation.XxlJob;
|
||||
//
|
||||
//import lombok.extern.slf4j.Slf4j;
|
||||
//
|
||||
//@Component
|
||||
//@Slf4j
|
||||
//public class AuthJob {
|
||||
//
|
||||
// @Autowired
|
||||
// private AuthSubscribeDetailService authSubscribeDetailService;
|
||||
//
|
||||
// @XxlJob(XxlJobHandlerConstants.AUTH_SUBSCRIBE_USER_LIST)
|
||||
// @AlitaStopWatch
|
||||
// public ReturnT<String> execute(String param) {
|
||||
// try {
|
||||
// MockUtils.mockPlatUser();
|
||||
// authSubscribeDetailService.loadAllClient();
|
||||
// return ReturnT.SUCCESS;
|
||||
// }catch (Exception e) {
|
||||
// return ReturnTUtils.error(e.getMessage());
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//}
|
||||
//
|
||||
@@ -27,7 +27,7 @@ import java.util.List;
|
||||
* @author Carlye
|
||||
* @since 2021-01-25
|
||||
*/
|
||||
@RestController
|
||||
//@RestController
|
||||
@RequestMapping("/anon/district")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class DistrictController {
|
||||
|
||||
@@ -71,17 +71,6 @@ public class OrgController {
|
||||
return AlitaResult.success(orgService.find(OrgQueryDTO.builder().id(UserContextHolder.getExistLoginOrgId()).build()));
|
||||
}
|
||||
|
||||
@GetMapping("/anon/uc/org/user/page")
|
||||
@ApiOperation("分页查询机构-小程序用查询指定类型机构")
|
||||
public AlitaResult<Page<OrgDTO>> userPage(@RequestParam(value = "orgNameLike",required = false) String orgNameLike, @RequestParam(value = "pageNo",defaultValue = "1",required = false) Integer pageNo, @RequestParam(value = "pageSize",defaultValue = "20",required = false) Integer pageSize) {
|
||||
OrgQueryDTO orgQueryDTO = new OrgQueryDTO();
|
||||
orgQueryDTO.setType(OrgTypeEnum.ORG_TYPE_GOV.getType());
|
||||
orgQueryDTO.setPageNo(pageNo);
|
||||
orgQueryDTO.setPageSize(pageSize);
|
||||
orgQueryDTO.setOrgNameLike(orgNameLike);
|
||||
orgService.page(orgQueryDTO);
|
||||
return AlitaResult.success(orgQueryDTO.getPageResult());
|
||||
}
|
||||
//***********************************分隔符***********************************************
|
||||
|
||||
|
||||
|
||||
@@ -1,211 +0,0 @@
|
||||
//package com.newyetai.usercenter.query;
|
||||
//
|
||||
//import com.newyetai.common.annotation.trimAndUpper.TrimAndUpper;
|
||||
//import com.newyetai.tkmybatis.pojo.Page;
|
||||
//import com.newyetai.usercenter.enums.AuthStatu;
|
||||
//import com.newyetai.usercenter.enums.UserType;
|
||||
//import io.swagger.annotations.ApiModelProperty;
|
||||
//import lombok.*;
|
||||
//import org.springframework.format.annotation.DateTimeFormat;
|
||||
//
|
||||
//import java.util.Date;
|
||||
//import java.util.List;
|
||||
//
|
||||
///**
|
||||
// * @author Jerry.li
|
||||
// * @description 用户查询实体
|
||||
// * @date 2020/3/26
|
||||
// */
|
||||
//@EqualsAndHashCode(callSuper = true)
|
||||
//@Data
|
||||
//@AllArgsConstructor
|
||||
//@NoArgsConstructor
|
||||
//public class UserQuery<T> extends BaseQuery<T> {
|
||||
//
|
||||
// private static final long serialVersionUID = 8645219985888896094L;
|
||||
//
|
||||
// /**
|
||||
// * 用户ID
|
||||
// */
|
||||
// private Long userId;
|
||||
// /**
|
||||
// * 用户姓名
|
||||
// */
|
||||
// @TrimAndUpper(TrimAndUpper.ExecuteType.TRIM)
|
||||
// private String username;
|
||||
// /**
|
||||
// * 机构类型
|
||||
// */
|
||||
// private UserType userType;
|
||||
//
|
||||
// /**
|
||||
// * 用户正式姓名姓名
|
||||
// */
|
||||
// @TrimAndUpper(TrimAndUpper.ExecuteType.TRIM)
|
||||
// private String realName;
|
||||
//
|
||||
// /**
|
||||
// * 身份证
|
||||
// */
|
||||
// @TrimAndUpper(TrimAndUpper.ExecuteType.TRIM)
|
||||
// private String cardNo;
|
||||
//
|
||||
// /**
|
||||
// * 身份证集合
|
||||
// */
|
||||
// private List<String> cardNos;
|
||||
//
|
||||
// /**
|
||||
// * 手机号
|
||||
// */
|
||||
// @TrimAndUpper(TrimAndUpper.ExecuteType.TRIM)
|
||||
// private String phone;
|
||||
//
|
||||
// /**
|
||||
// * 角色类型 2:销售
|
||||
// */
|
||||
// private String standardType;
|
||||
//
|
||||
// /**
|
||||
// * 机构名称
|
||||
// */
|
||||
// @TrimAndUpper(TrimAndUpper.ExecuteType.TRIM)
|
||||
// private String orgName;
|
||||
//
|
||||
// /**
|
||||
// * 角色Id
|
||||
// */
|
||||
// private Long roleId;
|
||||
//
|
||||
// /**
|
||||
// * 角色名称
|
||||
// */
|
||||
// private String roleName;
|
||||
//
|
||||
// /**
|
||||
// * 查询来源:"userInfo":用户管理页面
|
||||
// */
|
||||
// private String queryType;
|
||||
//
|
||||
// /**
|
||||
// * 认证状态 (弃用 现在使用 authenticated)
|
||||
// */
|
||||
// @Deprecated
|
||||
// private AuthStatu authStatu;
|
||||
//
|
||||
// /**
|
||||
// * 是否实名
|
||||
// */
|
||||
// private Boolean authenticated;
|
||||
//
|
||||
// /**
|
||||
// * 身份证上传状态 cardIdStatus 1.已上传 2.未上传
|
||||
// */
|
||||
// private Integer cardInfoStatus;
|
||||
//
|
||||
//
|
||||
// /**
|
||||
// * 合同签署状态 1.已签约 2.未签约 3.已过期
|
||||
// */
|
||||
// private Integer contractStatus;
|
||||
//
|
||||
// /**
|
||||
// * 需要忽略的机构信息
|
||||
// */
|
||||
// private List<Long> ignoreOrgIds;
|
||||
//
|
||||
// /**
|
||||
// * 是否来自中台页面查询
|
||||
// */
|
||||
// private Boolean settlementPageQuery;
|
||||
//
|
||||
// /**
|
||||
// * 当前登录机构Id
|
||||
// */
|
||||
// private Long loginOrgId;
|
||||
//
|
||||
// /**
|
||||
// * 是否启用
|
||||
// */
|
||||
// private Boolean enabled;
|
||||
//
|
||||
// /**
|
||||
// * 手机号绑定状态
|
||||
// */
|
||||
// private Boolean phoneBinding;
|
||||
//
|
||||
// /**
|
||||
// * 是否注销
|
||||
// */
|
||||
// private Boolean cancelled;
|
||||
// /**
|
||||
// * 中文名称
|
||||
// */
|
||||
// private String chineseName;
|
||||
// /**
|
||||
// * 邮箱
|
||||
// */
|
||||
// @TrimAndUpper(TrimAndUpper.ExecuteType.TRIM)
|
||||
// private String email;
|
||||
//
|
||||
// /**
|
||||
// * 用户状态
|
||||
// */
|
||||
// private Integer userStatus;
|
||||
//
|
||||
// @ApiModelProperty("完成时间起")
|
||||
// @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
// private Date createTimeStart;
|
||||
//
|
||||
// @ApiModelProperty("完成时间止")
|
||||
// @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
// private Date createTimeEnd;
|
||||
//
|
||||
// /**
|
||||
// * 系统编码 用于区分来源
|
||||
// */
|
||||
// private Integer code;
|
||||
//
|
||||
// /**
|
||||
// * 人像是否上传 (1 未上传 2 已上传)
|
||||
// */
|
||||
// private Integer userFaceStatus;
|
||||
//
|
||||
// @Builder
|
||||
// public UserQuery(Integer pageNo, Integer pageSize, Boolean needPage,
|
||||
// Page<T> pageResult, Long orgId, Long userId, String username,
|
||||
// UserType userType, String realName, String cardNo, String phone, String standardType,
|
||||
// String orgName, Long roleId, String roleName, String queryType,
|
||||
// AuthStatu authStatu, Integer cardInfoStatus, Integer contractStatus,
|
||||
// List<Long> ignoreOrgIds, Boolean settlementPageQuery, Long loginOrgId,
|
||||
// Boolean enabled, Boolean cancelled, String chineseName, String email, Integer userStatus,
|
||||
// Date createTimeStart, Date createTimeEnd, Integer code, Integer userFaceStatus) {
|
||||
// super(pageNo, pageSize, needPage, pageResult, orgId);
|
||||
// this.userId = userId;
|
||||
// this.username = username;
|
||||
// this.userType = userType;
|
||||
// this.realName = realName;
|
||||
// this.cardNo = cardNo;
|
||||
// this.phone = phone;
|
||||
// this.standardType = standardType;
|
||||
// this.orgName = orgName;
|
||||
// this.roleId = roleId;
|
||||
// this.roleName = roleName;
|
||||
// this.queryType = queryType;
|
||||
// this.authStatu = authStatu;
|
||||
// this.cardInfoStatus = cardInfoStatus;
|
||||
// this.contractStatus = contractStatus;
|
||||
// this.ignoreOrgIds = ignoreOrgIds;
|
||||
// this.settlementPageQuery = settlementPageQuery;
|
||||
// this.loginOrgId = loginOrgId;
|
||||
// this.enabled = enabled;
|
||||
// this.cancelled = cancelled;
|
||||
// this.chineseName = chineseName;
|
||||
// this.email = email;
|
||||
// this.userStatus = userStatus;
|
||||
// this.createTimeStart=createTimeStart;
|
||||
// this.createTimeEnd=createTimeEnd;
|
||||
// this.code = code;
|
||||
// this.userFaceStatus = userFaceStatus;
|
||||
// }
|
||||
//}
|
||||
@@ -16,7 +16,7 @@ import java.util.List;
|
||||
/**
|
||||
* @author sr on 2021-05-24
|
||||
*/
|
||||
@RestController
|
||||
//@RestController
|
||||
@RequestMapping("/anon")
|
||||
@Api(tags = "域名")
|
||||
public class DomainAnonController {
|
||||
|
||||
@@ -16,7 +16,7 @@ import java.util.Set;
|
||||
/**
|
||||
* @author sr on 2021-05-24
|
||||
*/
|
||||
@RestController
|
||||
//@RestController
|
||||
@Api(tags = "域名")
|
||||
public class DomainController {
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ import io.swagger.annotations.ApiOperation;
|
||||
/**
|
||||
* @author sr on 2021-05-24
|
||||
*/
|
||||
@RestController
|
||||
//@RestController
|
||||
@Api(tags = "常见问题表")
|
||||
public class FaqController {
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
* @since 2021-01-21
|
||||
*/
|
||||
@Api(tags = "标签关系信息")
|
||||
@RestController
|
||||
//@RestController
|
||||
@RequestMapping("/tag_relationship")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class TagRelationshipController {
|
||||
|
||||
@@ -80,7 +80,7 @@ public class UserController {
|
||||
return AlitaResult.success(userService.get(userId));
|
||||
}
|
||||
|
||||
@GetMapping("anon/person_in_charge")
|
||||
// @GetMapping("anon/person_in_charge")
|
||||
@ApiOperation("企业负责人查询")
|
||||
public AlitaResult<List<UserDTO>> personInCharge(@RequestParam("userIds") Set<Long> userIds) {
|
||||
return AlitaResult.success(userService.personInCharge(userIds));
|
||||
@@ -182,7 +182,7 @@ public class UserController {
|
||||
return AlitaResult.success();
|
||||
}
|
||||
|
||||
@PostMapping("anon/user/sms")
|
||||
// @PostMapping("anon/user/sms")
|
||||
@ApiOperation("获取验证码-不同操作")
|
||||
public AlitaResult<Void> sms(@Validated @RequestBody UserPhoneCodeSmsDTO userPhoneCodeSmsDTO) {
|
||||
PhoneCodeUtils.send(userPhoneCodeSmsDTO);
|
||||
@@ -190,14 +190,14 @@ public class UserController {
|
||||
}
|
||||
|
||||
@ApiOperation("获取验证码-不同操作(带防水墙验证)")
|
||||
@PostMapping("anon/user/sms_captcha")
|
||||
// @PostMapping("anon/user/sms_captcha")
|
||||
public AlitaResult<Void> smsCaptcha(
|
||||
@Validated @RequestBody UserPhoneCodeSmsCaptchaDTO userPhoneCodeSmsCaptchaDTO) {
|
||||
PhoneCodeUtils.send(userPhoneCodeSmsCaptchaDTO);
|
||||
return AlitaResult.success();
|
||||
}
|
||||
|
||||
@PostMapping("anon/user/reset_pwd")
|
||||
// @PostMapping("anon/user/reset_pwd")
|
||||
@ApiOperation("重置密码")
|
||||
public AlitaResult<Void> resetPwd(@Validated @RequestBody ResetPwdDTO resetPwdDTO) {
|
||||
userService.resetPwd(resetPwdDTO);
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
//package com.newyetai.usercenter.user.job;
|
||||
//
|
||||
//import com.newyetai.common.annotation.AlitaStopWatch;
|
||||
//import com.newyetai.job.util.ReturnTUtils;
|
||||
//import com.newyetai.security.util.MockUtils;
|
||||
//import com.newyetai.usercenter.common.constant.XxlJobHandlerConstants;
|
||||
//import com.newyetai.usercenter.user.service.UserCancelService;
|
||||
//import com.xxl.job.core.biz.model.ReturnT;
|
||||
//import com.xxl.job.core.handler.annotation.XxlJob;
|
||||
//import lombok.extern.slf4j.Slf4j;
|
||||
//import org.springframework.beans.factory.annotation.Autowired;
|
||||
//import org.springframework.stereotype.Component;
|
||||
//
|
||||
//@Component
|
||||
//@Slf4j
|
||||
//public class UserCancelJob {
|
||||
//
|
||||
// @Autowired
|
||||
// private UserCancelService userCancelService;
|
||||
//
|
||||
// @XxlJob(XxlJobHandlerConstants.USER_CANCEL_NOTIFY_JOB)
|
||||
// @AlitaStopWatch
|
||||
// public ReturnT<String> execute(String param) {
|
||||
// try {
|
||||
// MockUtils.mockPlatUser();
|
||||
// userCancelService.toNotify();
|
||||
// return ReturnT.SUCCESS;
|
||||
// } catch (Exception e) {
|
||||
// return ReturnTUtils.error(e.getMessage());
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//}
|
||||
//
|
||||
@@ -34,12 +34,12 @@ mybatis-plus.type-aliases-package=com.senmesh.**.entity
|
||||
mybatis-plus.type-enums-package=com.senmesh.**.enums
|
||||
|
||||
### 日志文件
|
||||
logging.file.name=D:/work/git/demo/logs/${spring.application.name}.log
|
||||
logging.file.name=/Users/sr/work/git/project/x-file/logs/${spring.application.name}.log
|
||||
logging.pattern.console:%d{yyyy/MM/dd-HH:mm:ss} %X{traceId:-} [%thread] %-5level %logger- %msg%n
|
||||
logging.pattern.file:%d{yyyy/MM/dd-HH:mm:ss} %X{traceId:-} [%thread] %-5level %logger- %msg%n
|
||||
|
||||
### 文件路径
|
||||
file.upload-dir=D:/work/git/demo/upload
|
||||
file.upload-dir=/Users/sr/work/git/project/x-file/upload
|
||||
java.io.tmpdir=/var/${spring.application.name}/upload/tmpdir
|
||||
|
||||
#文件存储配置
|
||||
@@ -49,16 +49,17 @@ file.storage.type=local
|
||||
### 文件位置:1内网2外网
|
||||
file.transfer.location=1
|
||||
### 传输发送目录
|
||||
file.transfer.send-dir=D:/work/git/demo/transfer/send
|
||||
file.transfer.send-dir=${file.upload-dir}/transfer/send
|
||||
### 传输接收目录
|
||||
file.transfer.receive-dir=D:/work/git/demo/transfer/receive
|
||||
file.transfer.receive-dir=${file.upload-dir}/transfer/receive
|
||||
### 解包风险校验
|
||||
file.transfer.unpack-risk-check=false
|
||||
|
||||
|
||||
#发号器
|
||||
#机器id:根据ip自己定义
|
||||
code.snowflake.workid.192.168.71.4=1
|
||||
code.snowflake.workid.192.168.1.28=1
|
||||
code.snowflake.workid.192.168.71.2=2
|
||||
|
||||
|
||||
|
||||
@@ -70,7 +71,7 @@ spring.redis.lettuce.pool.min-idle=2
|
||||
spring.redis.lettuce.pool.max-idle=8
|
||||
spring.redis.lettuce.pool.max-active=10
|
||||
spring.redis.lettuce.pool.max-wait=-1ms
|
||||
spring.redis.database=1
|
||||
spring.redis.database=2
|
||||
|
||||
security.useLocal=true
|
||||
security.ignoring=/*.html,/favicon.ico
|
||||
@@ -117,8 +118,8 @@ sms.phoneSms=
|
||||
dify.enable=true
|
||||
dify.host=http://114.242.42.23:8501
|
||||
# 规则生成 API Key
|
||||
dify.risk.rule.api-key=app-agFkKV5EsAEZfCC6wGSDraak
|
||||
dify.risk.rule.api-key=app-MpPUct23vJFOGYThX5AP13MH
|
||||
# 文件智能风险预警 API Key
|
||||
dify.risk.scan.api-key=app-K9WlRD9hEhLbesUK8HDf3ATP
|
||||
dify.risk.scan.api-key=app-yssNjcvzAf5KEZY1ZIiKQU7W
|
||||
|
||||
|
||||
|
||||
@@ -2469,7 +2469,7 @@
|
||||
<h3>up login</h3>
|
||||
<form action="#" method="post" name="loginForm" id="loginForm">
|
||||
用户名:<input type="text" name="username" value="admin"/>
|
||||
密码:<input type="password" name="password" value="nyt123321"/>
|
||||
密码:<input type="password" name="password" value=""/>
|
||||
用户类型:<input type="text" name="userType" value="1" placeholder="1:机构 2:个人 3:api用户"/>
|
||||
<input type="button" value="登录" ONCLICK="login()"/>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user