From 1a929c5d1f6e76fe93221d1e1c28227e9e3584c7 Mon Sep 17 00:00:00 2001
From: liujie <liujie>
Date: 星期三, 26 七月 2023 09:45:13 +0800
Subject: [PATCH] 后台代码
---
cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TCompetitionController.java | 53 ++++++++++
cloud-server-management/src/main/java/com/dsh/guns/modular/system/client/competition/CompetitionClient.java | 7 +
cloud-server-management/src/main/java/com/dsh/guns/modular/system/model/TCompetition.java | 234 ++++++++++++++++++++++++++++++++++++++++++++++
cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetition.js | 2
4 files changed, 295 insertions(+), 1 deletions(-)
diff --git a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/client/competition/CompetitionClient.java b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/client/competition/CompetitionClient.java
new file mode 100644
index 0000000..2a87238
--- /dev/null
+++ b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/client/competition/CompetitionClient.java
@@ -0,0 +1,7 @@
+package com.dsh.guns.modular.system.client.competition;
+
+import org.springframework.cloud.openfeign.FeignClient;
+
+@FeignClient("mb-cloud-competition")
+public interface CompetitionClient {
+}
diff --git a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TCompetitionController.java b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TCompetitionController.java
new file mode 100644
index 0000000..b7cb005
--- /dev/null
+++ b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TCompetitionController.java
@@ -0,0 +1,53 @@
+package com.dsh.guns.modular.system.controller.code;
+
+import com.dsh.guns.core.base.controller.BaseController;
+import com.dsh.guns.modular.system.client.competition.CompetitionClient;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.Model;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+/**
+ * 菜单控制器
+ *
+ * @author fengshuonan
+ * @Date 2017年2月12日21:59:14
+ */
+@Controller
+@RequestMapping("/tCompetition")
+public class TCompetitionController extends BaseController {
+
+ private static String PREFIX = "/system/tCompetition/";
+
+ @Autowired
+ private CompetitionClient competitionClient;
+
+
+ /**
+ * 跳转到菜单列表列表页面
+ */
+ @RequestMapping("")
+ public String index(Model model) {
+ return PREFIX + "tCompetition.html";
+ }
+
+ /**
+ * 跳转到菜单列表列表页面
+ */
+ @RequestMapping(value = "/tCompetition_add")
+ public String tCompetitionAdd(Model model) {
+ return PREFIX + "tCompetition_add.html";
+ }
+
+ /**
+ * 跳转到菜单详情列表页面
+ */
+ @RequestMapping(value = "/tCompetition_edit/{id}")
+ public String menuEdit(@PathVariable Integer id, Model model) {
+ return PREFIX + "menu_edit.html";
+ }
+
+
+
+}
diff --git a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/model/TCompetition.java b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/model/TCompetition.java
new file mode 100644
index 0000000..ebb10ae
--- /dev/null
+++ b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/model/TCompetition.java
@@ -0,0 +1,234 @@
+package com.dsh.guns.modular.system.model;
+
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * <p>
+ * 管理员表
+ * </p>
+ *
+ * @author stylefeng
+ * @since 2017-07-11
+ */
+@TableName("t_competition")
+public class TCompetition extends Model<TCompetition> {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * 主键id
+ */
+ @TableId(value="id", type= IdType.AUTO)
+ private Integer id;
+ /**
+ * 头像
+ */
+ private String avatar;
+ /**
+ * 账号
+ */
+ private String account;
+ /**
+ * 密码
+ */
+ private String password;
+ /**
+ * md5密码盐
+ */
+ private String salt;
+ /**
+ * 名字
+ */
+ private String name;
+ /**
+ * 生日
+ */
+ private Date birthday;
+ /**
+ * 性别(1:男 2:女)
+ */
+ private Integer sex;
+ /**
+ * 电子邮件
+ */
+ private String email;
+ /**
+ * 电话
+ */
+ private String phone;
+ /**
+ * 角色id
+ */
+ private String roleid;
+ /**
+ * 部门id
+ */
+ private Integer deptid;
+ /**
+ * 状态(1:启用 2:冻结 3:删除)
+ */
+ private Integer status;
+ /**
+ * 创建时间
+ */
+ private Date createtime;
+ /**
+ * 保留字段
+ */
+ private Integer version;
+
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getAvatar() {
+ return avatar;
+ }
+
+ public void setAvatar(String avatar) {
+ this.avatar = avatar;
+ }
+
+ public String getAccount() {
+ return account;
+ }
+
+ public void setAccount(String account) {
+ this.account = account;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ public String getSalt() {
+ return salt;
+ }
+
+ public void setSalt(String salt) {
+ this.salt = salt;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public Date getBirthday() {
+ return birthday;
+ }
+
+ public void setBirthday(Date birthday) {
+ this.birthday = birthday;
+ }
+
+ public Integer getSex() {
+ return sex;
+ }
+
+ public void setSex(Integer sex) {
+ this.sex = sex;
+ }
+
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ public String getPhone() {
+ return phone;
+ }
+
+ public void setPhone(String phone) {
+ this.phone = phone;
+ }
+
+ public String getRoleid() {
+ return roleid;
+ }
+
+ public void setRoleid(String roleid) {
+ this.roleid = roleid;
+ }
+
+ public Integer getDeptid() {
+ return deptid;
+ }
+
+ public void setDeptid(Integer deptid) {
+ this.deptid = deptid;
+ }
+
+ public Integer getStatus() {
+ return status;
+ }
+
+ public void setStatus(Integer status) {
+ this.status = status;
+ }
+
+ public Date getCreatetime() {
+ return createtime;
+ }
+
+ public void setCreatetime(Date createtime) {
+ this.createtime = createtime;
+ }
+
+ public Integer getVersion() {
+ return version;
+ }
+
+ public void setVersion(Integer version) {
+ this.version = version;
+ }
+
+ @Override
+ protected Serializable pkVal() {
+ return this.id;
+ }
+
+ @Override
+ public String toString() {
+ return "User{" +
+ "id=" + id +
+ ", avatar=" + avatar +
+ ", account=" + account +
+ ", password=" + password +
+ ", salt=" + salt +
+ ", name=" + name +
+ ", birthday=" + birthday +
+ ", sex=" + sex +
+ ", email=" + email +
+ ", phone=" + phone +
+ ", roleid=" + roleid +
+ ", deptid=" + deptid +
+ ", status=" + status +
+ ", createtime=" + createtime +
+ ", version=" + version +
+ "}";
+ }
+}
diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetition.js b/cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetition.js
index 05238e8..12291b0 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetition.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetition.js
@@ -206,7 +206,7 @@
$(function () {
var defaultColunms = TCar.initColumn();
- var table = new BSTable(TCar.id, "/tCar/list", defaultColunms);
+ var table = new BSTable(TCar.id, "/tCompetition/list", defaultColunms);
table.setPaginationType("server");
TCar.table = table.init();
});
--
Gitblit v1.7.1