package com.bizzan.bitrade.controller;

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.RestController;

import com.bizzan.bitrade.service.AndroidLogService;
import com.bizzan.bitrade.util.MessageResult;

import lombok.extern.slf4j.Slf4j;

@RestController
@RequestMapping("/androidLog")
@Slf4j
public class AndroidLogController extends BaseController {

	@Autowired
	private AndroidLogService androidLogService;
	
	@PostMapping("save")
	public MessageResult save(String os, String error) {
		androidLogService.save(os, error);
		return MessageResult.success();
	}
}
