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

@RestController
@CrossOrigin(origins = "http://localhost:5173")
public class httpUpdate {
    @Autowired
    private update update;
    @RequestMapping("/update")
    public String update(Integer id,String name,String password,String email){
        update.updatePeople(id,name,password,email);
        return "修改成功!!!";
    }
}
