提交 bf7d4c51 authored 作者: hzh's avatar hzh

部分代码生成

上级 8ef624a3
package org.dromara.mall.service.weishi; package org.dromara.mall.service.weishi;
import org.dromara.common.mybatis.service.IBaseService; import org.dromara.common.mybatis.service.IBaseService;
import org.dromara.common.weishi.model.req.ApplyRequest;
import org.dromara.common.weishi.model.res.ApplyResponse;
import org.dromara.mall.controller.weishi.admin.bo.InsureBo; import org.dromara.mall.controller.weishi.admin.bo.InsureBo;
import org.dromara.mall.controller.weishi.admin.vo.InsureVo; import org.dromara.mall.controller.weishi.admin.vo.InsureVo;
import org.dromara.mall.domain.weishi.Insure; import org.dromara.mall.domain.weishi.Insure;
...@@ -20,4 +22,12 @@ public interface IInsureService extends IBaseService<InsureVo, InsureBo, Insure> ...@@ -20,4 +22,12 @@ public interface IInsureService extends IBaseService<InsureVo, InsureBo, Insure>
*/ */
String getToken(); String getToken();
/**
* 保存
*
* @param req 请求参数
* @param res 响应参数
*/
void apply(ApplyRequest req, ApplyResponse res);
} }
package org.dromara.mall.service.weishi.impl; package org.dromara.mall.service.weishi.impl;
import org.dromara.common.core.utils.StringUtils;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.common.mybatis.service.AbstractBaseService;
import org.dromara.common.redis.utils.RedisUtils; import org.dromara.common.redis.utils.RedisUtils;
import org.dromara.common.weishi.model.req.ApplyRequest;
import org.dromara.common.weishi.model.res.ApplyResponse;
import org.dromara.common.weishi.model.res.AuthResponse; import org.dromara.common.weishi.model.res.AuthResponse;
import org.dromara.common.weishi.service.WeishiService; import org.dromara.common.weishi.service.WeishiService;
import org.springframework.stereotype.Service;
import org.dromara.mall.controller.weishi.admin.bo.InsureBo; import org.dromara.mall.controller.weishi.admin.bo.InsureBo;
import org.dromara.mall.controller.weishi.admin.vo.InsureVo; import org.dromara.mall.controller.weishi.admin.vo.InsureVo;
import org.dromara.mall.domain.weishi.Insure; import org.dromara.mall.domain.weishi.Insure;
import org.dromara.mall.mapper.weishi.InsureMapper; import org.dromara.mall.mapper.weishi.InsureMapper;
import org.dromara.mall.service.weishi.IInsureService; import org.dromara.mall.service.weishi.IInsureService;
import org.dromara.common.mybatis.service.AbstractBaseService; import org.springframework.stereotype.Service;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import java.time.Duration; import java.time.Duration;
import java.util.Map; import java.util.Map;
...@@ -68,6 +70,7 @@ public class InsureServiceImpl extends AbstractBaseService<InsureVo, InsureBo, I ...@@ -68,6 +70,7 @@ public class InsureServiceImpl extends AbstractBaseService<InsureVo, InsureBo, I
} }
private final WeishiService weishiService; private final WeishiService weishiService;
@Override @Override
public String getToken() { public String getToken() {
String token = RedisUtils.getCacheObject(WEISHI_TOKEN); String token = RedisUtils.getCacheObject(WEISHI_TOKEN);
...@@ -78,4 +81,9 @@ public class InsureServiceImpl extends AbstractBaseService<InsureVo, InsureBo, I ...@@ -78,4 +81,9 @@ public class InsureServiceImpl extends AbstractBaseService<InsureVo, InsureBo, I
} }
return token; return token;
} }
@Override
public void apply(ApplyRequest req, ApplyResponse res) {
}
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论