package com.xxfc.platform.app.rest.admin;

import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.rest.BaseController;
import com.xxfc.platform.app.biz.AppDownloadRecordBiz;
import com.xxfc.platform.app.entity.AppDownloadRecord;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import java.util.Date;

/**
 * @Auther: Administrator
 * @Date: 2019/12/19 15:46
 * @Description:
 */
@RestController
@RequestMapping("/app/unauth/adr")
public class AppDownloadRecordController extends BaseController<AppDownloadRecordBiz, AppDownloadRecord> {
    @Override
    @ApiOperation("添加")
    @PostMapping(value = "add")
    public ObjectRestResponse<AppDownloadRecord> add(@RequestBody AppDownloadRecord appDownloadRecord ){
            appDownloadRecord.setCreTime(new Date());
            baseBiz.insertSelective(appDownloadRecord);

        return ObjectRestResponse.succ();
    }
}
