package com.chuangongzhijia.huacheng_union_applets.api;
|
|
import com.panzhihua.common.controller.BaseController;
|
import com.panzhihua.common.model.dtos.equipment.UnionIntegralSummarizeDto;
|
import com.panzhihua.common.model.vos.R;
|
import com.panzhihua.common.service.community.CommunityUnionService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.web.bind.annotation.*;
|
|
import javax.annotation.Resource;
|
|
@Api(tags = {"用户积分总表"})
|
@Slf4j
|
@RestController
|
@RequestMapping("/UnionIntegralSummarize")
|
public class UnionIntegralSummarizeApi extends BaseController
|
{
|
@Resource
|
private CommunityUnionService unionStoreService;
|
|
@ApiOperation(value = "积分明细列表")
|
@GetMapping("/getList")
|
public R unionIntegralSummarizeGetList(@RequestParam("pageNum") int pageNum,
|
@RequestParam("pageSize") int pageSize,
|
@RequestParam(value = "communityId",required = false) String communityId)
|
{
|
return unionStoreService.unionIntegralSummarizeGetList(pageNum,pageSize,communityId,getUserId()+"");
|
}
|
|
@ApiOperation(value = "积分明细单个详情")
|
@GetMapping("/getData")
|
public R unionIntegralSummarizeGetData(@RequestParam("id") String id)
|
{
|
return unionStoreService.unionIntegralSummarizeGetData(id);
|
}
|
|
|
@ApiOperation(value = "新增积分明细")
|
@PostMapping("/insert")
|
public R unionIntegralSummarizeInsert(@RequestBody UnionIntegralSummarizeDto item)
|
{
|
item.setUserId(getUserId()+"");
|
return unionStoreService.unionIntegralSummarizeInsert(item);
|
}
|
|
@ApiOperation(value = "修改积分明细")
|
@PostMapping("/update")
|
public R unionIntegralSummarizeUpdate(@RequestBody UnionIntegralSummarizeDto item)
|
{
|
item.setUserId(getUserId()+"");
|
return unionStoreService.unionIntegralSummarizeUpdate(item);
|
}
|
|
/**
|
* 删除接口
|
* @param id
|
* @return
|
*/
|
@ApiOperation(value = "删除积分明细")
|
@DeleteMapping("/delete")
|
public R unionIntegralSummarizeDelete(@RequestParam("id") String id)
|
{
|
return unionStoreService.unionIntegralSummarizeDelete(id);
|
}
|
|
|
}
|