提交 3ec67afc 编写于 作者: 夏天。。's avatar 夏天。。

奖励模块相关接口

上级 11a62ba8
package com.mobius.modules.ums.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.mobius.common.api.CommonResult;
import com.mobius.modules.ums.service.UmsCheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
* <p>
......@@ -13,8 +15,20 @@ import org.springframework.web.bind.annotation.RestController;
* @since 2022-06-13
*/
@RestController
@RequestMapping("/ums/umsCheck")
@RequestMapping("/check")
public class UmsCheckController {
@Autowired
private UmsCheckService checkService;
@PostMapping("")
public CommonResult createCheckService(){
return checkService.createCheck();
}
// @GetMapping("/{id}")
//
// @DeleteMapping("/{id}")
}
......@@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.*;
* 前端控制器
* </p>
*
* @author Sqh
* @author hoc
* @since 2022-06-13
*/
@RestController
......
......@@ -30,7 +30,7 @@ public class UmsCheck implements Serializable {
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
@ApiModelProperty(value = "奖励类型:0->邮票 1->xx")
@ApiModelProperty(value = "奖励id列表")
private String rewards;
@ApiModelProperty(value = "奖励描述")
......
package com.mobius.modules.ums.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mobius.common.api.CommonResult;
import com.mobius.modules.ums.model.UmsCheck;
/**
......@@ -13,4 +14,6 @@ import com.mobius.modules.ums.model.UmsCheck;
*/
public interface UmsCheckService extends IService<UmsCheck> {
CommonResult createCheck();
}
package com.mobius.modules.ums.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mobius.common.api.CommonResult;
import com.mobius.modules.ums.mapper.UmsCheckMapper;
import com.mobius.modules.ums.model.UmsCheck;
import com.mobius.modules.ums.service.UmsCheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
......@@ -17,4 +19,13 @@ import org.springframework.stereotype.Service;
@Service
public class UmsCheckServiceImpl extends ServiceImpl<UmsCheckMapper, UmsCheck> implements UmsCheckService {
@Autowired
private UmsCheckMapper checkMapper;
@Override
public CommonResult createCheck() {
return null;
}
}
//package com.mobius.modules.ums.service.impl;
//
//import static org.junit.jupiter.api.Assertions.*;
//
///**
// * @Author: hocztms
// * @Description:
// * @Date Created in 2022-06-14-23:17
// * @Modified By:
// */
//class UmsCheckServiceImplTest {
//
// @org.junit.jupiter.api.Test
// void createCheck() {
// }
//}
\ No newline at end of file
package com.mobius.modules.ums.vo;
/**
* @Author: hocztms
* @Description:
* @Date Created in 2022-06-14-23:07
* @Modified By:
*/
public class CheckVo {
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册