package jj.tech.paolu.biz.webadmin.controller;

import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jj.tech.paolu.biz.webadmin.vo.YmCodeVo;
import jj.tech.paolu.utils.R;
import jj.tech.paolu.utils.YMHttp;

@RestController
@RequestMapping(value = "/op/ym",name = "云码图片识别接口")
@Tag(name  = "YMcodeController", description = "云码图片识别接口")
public class YMcodeController {
	
	@Operation(summary = "需要识别图片的base64字符串", description = "image_base64")
	@PostMapping("/code")
	public Object login(@Validated @RequestBody YmCodeVo prame) {
		return R.SUCCESS(YMHttp.customApi(prame.image_base64));
	}
	
	
	
}
