Commit 765d1f77 authored by hanfeng's avatar hanfeng

Merge branch 'master-bug-vehiclemodel-hf' into dev

parents c1a71ea0 f914bcfd
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 org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.*;
/**
* @Auther: Administrator
......@@ -14,4 +16,14 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/app/unauth/adr")
public class AppDownloadRecordController extends BaseController<AppDownloadRecordBiz, AppDownloadRecord> {
@ApiOperation("添加")
@PostMapping(value = "add")
public ObjectRestResponse<AppDownloadRecord> add(@RequestParam(value = "source") String source ){
if (StringUtils.isNotBlank(source)) {
AppDownloadRecord appDownloadRecord = new AppDownloadRecord();
appDownloadRecord.setSource(source);
baseBiz.insertSelective(appDownloadRecord);
}
return ObjectRestResponse.succ();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment