瀏覽代碼

//

private_deployment
xhxu 1 年之前
父節點
當前提交
3acc1df4f3
共有 3 個檔案被更改,包括 42 行新增0 行删除
  1. +36
    -0
      suimangCApi/src/main/java/com/iformall/controller/UserBasicPropertyController.java
  2. +1
    -0
      suimangService/src/main/java/com/iformall/service/UserBasicPropertyService.java
  3. +5
    -0
      suimangService/src/main/java/com/iformall/service/impl/UserBasicPropertyServiceImpl.java

+ 36
- 0
suimangCApi/src/main/java/com/iformall/controller/UserBasicPropertyController.java 查看文件

@@ -0,0 +1,36 @@
package com.iformall.controller;

import com.iformall.common.ResultData;
import com.iformall.domain.po.UserBasicProperty;
import com.iformall.service.UserBasicPropertyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/api/userProperty")
@Api(description = "模板接口")
public class UserBasicPropertyController extends BaseController {
private final Logger logger = LoggerFactory.getLogger(this.getClass());

@Autowired
private UserBasicPropertyService userBasicPropertyService;

@ApiOperation("根据id查询接口")
@GetMapping("/findGlod")
public ResultData findGlod() {
logger.debug("[" + getIpAddr() + "] UserBasicPropertyController::findGlod");

UserBasicProperty userBasicProperty = userBasicPropertyService.findById(getMemberId());

return new ResultData(userBasicProperty);
}


}

+ 1
- 0
suimangService/src/main/java/com/iformall/service/UserBasicPropertyService.java 查看文件

@@ -38,4 +38,5 @@ public interface UserBasicPropertyService {
*/ */
void consumptionGlod(Long userId, Integer projectType, Integer propertyLogType, Integer glod, Long extraId, Date now); void consumptionGlod(Long userId, Integer projectType, Integer propertyLogType, Integer glod, Long extraId, Date now);


UserBasicProperty findById(Long id);
} }

+ 5
- 0
suimangService/src/main/java/com/iformall/service/impl/UserBasicPropertyServiceImpl.java 查看文件

@@ -124,5 +124,10 @@ public class UserBasicPropertyServiceImpl implements UserBasicPropertyService {


} }


@Override
public UserBasicProperty findById(Long id) {
return userBasicPropertyMapper.selectById(id);
}



} }

Loading…
取消
儲存