Selaa lähdekoodia

//

private_deployment
xhxu 1 vuosi sitten
vanhempi
commit
3acc1df4f3
3 muutettua tiedostoa jossa 42 lisäystä ja 0 poistoa
  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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -38,4 +38,5 @@ public interface UserBasicPropertyService {
*/
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 Näytä tiedosto

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

}

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


}

Ladataan…
Peruuta
Tallenna