diff --git a/src/ZhuController.java b/src/ZhuController.java deleted file mode 100644 index 279da7f..0000000 --- a/src/ZhuController.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.example.hosdata.controller; -import com.example.hosdata.pojo.Information; -import com.example.hosdata.pojo.RegisterRecord; -import com.example.hosdata.pojo.Zhuce; -import com.example.hosdata.service.DocyzService; -import com.example.hosdata.service.InService; -import com.example.hosdata.service.RegisterService; - -import com.example.hosdata.service.ZhuService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -import org.springframework.web.util.HtmlUtils; - -import java.util.List; - -@RestController -public class ZhuController { - @Autowired - ZhuService zhuService; - - @CrossOrigin - @PostMapping("/api/zhu") - public Zhuce add(@RequestBody Zhuce zhuce) throws Exception { - zhuService.add(zhuce); - return zhuce; - } -} diff --git a/src/ZhuDAO.java b/src/ZhuDAO.java deleted file mode 100644 index 140051d..0000000 --- a/src/ZhuDAO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.example.hosdata.dao; - -import com.example.hosdata.pojo.Information; -import com.example.hosdata.pojo.RegisterRecord; -import com.example.hosdata.pojo.User; -import com.example.hosdata.pojo.Zhuce; -import org.springframework.data.domain.Page; -import org.springframework.data.jpa.repository.JpaRepository; - -import java.util.List; -public interface ZhuDAO extends JpaRepository{ -} diff --git a/src/ZhuService.java b/src/ZhuService.java deleted file mode 100644 index 668682f..0000000 --- a/src/ZhuService.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.example.hosdata.service; - -import com.example.hosdata.dao.InDAO; -import com.example.hosdata.dao.RegisterDAO; -import com.example.hosdata.dao.ZhuDAO; -import com.example.hosdata.pojo.Information; -import com.example.hosdata.pojo.RegisterRecord; -import com.example.hosdata.pojo.Zhuce; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.domain.Sort; -import org.springframework.stereotype.Service; - -import java.util.List; - -@Service -public class ZhuService { - @Autowired - ZhuDAO zhuDAO; - - public void add(Zhuce zhuce) { - zhuDAO.save(zhuce); - } -} diff --git a/src/Zhuce.java b/src/Zhuce.java deleted file mode 100644 index 9ad6b5a..0000000 --- a/src/Zhuce.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.example.hosdata.pojo; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; - -import javax.persistence.*; - -@Entity -@Table(name = "user") -@JsonIgnoreProperties({"handler","hibernateLazyInitializer"}) - -public class Zhuce { - @Id - @GeneratedValue(strategy = GenerationType.IDENTITY) - @Column(name = "id") - String id; - - String username; - String password; - - String realname; - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } - - public String getRealname() { - return realname; - } - - public void setRealname(String realname) { - this.realname = realname; - } -} diff --git a/src/zhu/ZhuceIndex.vue b/src/zhu/ZhuceIndex.vue deleted file mode 100644 index 615f01a..0000000 --- a/src/zhu/ZhuceIndex.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - - -