package top.lejings.db.http;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.lejings.db.mapper.insert;

@RestController
@CrossOrigin(origins = "http://localhost:5173")
public class httpInsert {

    @Autowired
    private insert insert;

    @RequestMapping("/insert")
    public String insert(String name,String password,String email){
        insert.insertPeople(name,password,email);
        return "添加成功!!!";
    }
}
