package com.liquidnet.service.platform.controller.stone;

import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.platform.service.impl.stone.StoneServerImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@Api(tags = "数据迁移 (会重复)")
@RestController
@RequestMapping("stone/inner")
public class InnerController {

    @Autowired
    private StoneServerImpl data;

    @PostMapping("initScore")
    @ApiOperation("会员卡领取积分")
    public ResponseDto<Boolean> initScore(@RequestParam("uid") String uid) {
        Boolean result = data.initScore(uid);
        return ResponseDto.success(result);
    }

}
