From 42310bc8af09d2a4f3671993db7208ef4df272cf Mon Sep 17 00:00:00 2001 From: xuekang <914468783@qq.com> Date: 星期六, 11 五月 2024 16:03:59 +0800 Subject: [PATCH] ecosphere-base-rest初始化 --- ecosphere/ecosphere-base-rest/pom.xml | 22 ++ ecosphere/pom.xml | 2 ecosphere/ecosphere-base-rest/src/main/java/com.nuvole/base/domain/SysOrg.java | 164 ++++++++++++++ ecosphere/ecosphere-base-rest/src/main/java/com.nuvole/base/domain/SysArea.java | 122 +++++++++++ pom.xml | 1 ecosphere/ecosphere-base-rest/src/main/java/com.nuvole/base/domain/SysUser.java | 326 +++++++++++++++++++++++++++++ ecosphere/ecosphere-base-rest/src/main/java/com.nuvole/base/domain/BaseGlobalConfig.java | 19 + 7 files changed, 655 insertions(+), 1 deletions(-) diff --git a/ecosphere/ecosphere-base-rest/pom.xml b/ecosphere/ecosphere-base-rest/pom.xml new file mode 100644 index 0000000..20d888e --- /dev/null +++ b/ecosphere/ecosphere-base-rest/pom.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns="http://maven.apache.org/POM/4.0.0" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <parent> + <groupId>org.dromara</groupId> + <artifactId>ecosphere</artifactId> + <version>${revision}</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>ecosphere-base-rest</artifactId> + + <description> + ecosphere-base-rest 渚濊禆椤� + </description> + <dependencies> + <dependency> + <groupId>io.springfox</groupId> + <artifactId>springfox-swagger2</artifactId> + </dependency> + </dependencies> +</project> diff --git a/ecosphere/ecosphere-base-rest/src/main/java/com.nuvole/base/domain/BaseGlobalConfig.java b/ecosphere/ecosphere-base-rest/src/main/java/com.nuvole/base/domain/BaseGlobalConfig.java new file mode 100644 index 0000000..c86319d --- /dev/null +++ b/ecosphere/ecosphere-base-rest/src/main/java/com.nuvole/base/domain/BaseGlobalConfig.java @@ -0,0 +1,19 @@ +package com.nuvole.base.domain; + +import io.swagger.annotations.ApiModel; +import lombok.Data; + +/** + * @Description 鍏ㄥ眬閰嶇疆琛� + * @Author cy + * @Date 2022-12-01 11:46:16 + */ +@ApiModel("鍏ㄥ眬閰嶇疆琛�") +@Data +public class BaseGlobalConfig { + private Long id; + private String code; + private String showName; + private String val; + private String remark; +} diff --git a/ecosphere/ecosphere-base-rest/src/main/java/com.nuvole/base/domain/SysArea.java b/ecosphere/ecosphere-base-rest/src/main/java/com.nuvole/base/domain/SysArea.java new file mode 100644 index 0000000..35ae524 --- /dev/null +++ b/ecosphere/ecosphere-base-rest/src/main/java/com.nuvole/base/domain/SysArea.java @@ -0,0 +1,122 @@ +package com.nuvole.base.domain; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * 瀹炰綋绫诲搴旂殑鏁版嵁琛ㄤ负锛� sys_area + * @author system-generator + * @date 2019-04-17 19:00:57 + */ +@ApiModel(value ="绯荤粺鍖哄煙琛�") +public class SysArea { + @ApiModelProperty(value = "ID") + private Long id; + + @ApiModelProperty(value = "鐖禝D") + private Long pid; + + @ApiModelProperty(value = "鍚嶇О") + private String name; + + @ApiModelProperty(value = "閭斂鍖哄煙缂栧彿(灞曠ず浣跨敤)") + private String code; + + @ApiModelProperty(value = "绯荤粺鐢熸垚缂栧彿(鍏宠仈浣跨敤)") + private String sysCode; + + @ApiModelProperty(value = "LV绾у埆鍔犲叆1鐪侊紝2甯傦紝3鍘匡紝4涔★紝5鏉�") + private Integer lv; + + @ApiModelProperty(value = "銆愰『搴忓彿銆�") + private Integer sortNo; + + @ApiModelProperty(value = "STATE銆愮姸鎬侊細1鍚敤0绂佺敤銆�") + private Integer state; + + @ApiModelProperty(value = "NOTE銆愬娉ㄣ��") + private String note; + + @ApiModelProperty(value = "鏈烘瀯缂栧彿") + private String orgCode; + + public String getOrgCode() { + return orgCode; + } + + public void setOrgCode(String orgCode) { + this.orgCode = orgCode; + } + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getPid() { + return pid; + } + + public void setPid(Long pid) { + this.pid = pid; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code == null ? null : code.trim(); + } + + public String getSysCode() { + return sysCode; + } + + public void setSysCode(String sysCode) { + this.sysCode = sysCode == null ? null : sysCode.trim(); + } + + public Integer getLv() { + return lv; + } + + public void setLv(Integer lv) { + this.lv = lv; + } + + public Integer getSortNo() { + return sortNo; + } + + public void setSortNo(Integer sortNo) { + this.sortNo = sortNo; + } + + public Integer getState() { + return state; + } + + public void setState(Integer state) { + this.state = state; + } + + public String getNote() { + return note; + } + + public void setNote(String note) { + this.note = note == null ? null : note.trim(); + } +} \ No newline at end of file diff --git a/ecosphere/ecosphere-base-rest/src/main/java/com.nuvole/base/domain/SysOrg.java b/ecosphere/ecosphere-base-rest/src/main/java/com.nuvole/base/domain/SysOrg.java new file mode 100644 index 0000000..ca88ba5 --- /dev/null +++ b/ecosphere/ecosphere-base-rest/src/main/java/com.nuvole/base/domain/SysOrg.java @@ -0,0 +1,164 @@ +package com.nuvole.base.domain; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +/** + * 瀹炰綋绫诲搴旂殑鏁版嵁琛ㄤ负锛� sys_org + * @author system-generator + * @date 2019-04-17 15:49:13 + */ +@ApiModel(value ="鏈烘瀯") +public class SysOrg { + @ApiModelProperty(value = "id") + private Long id; + + @ApiModelProperty(value = "NAME銆愬悕绉般��") + private String name; + + @ApiModelProperty(value = "绯荤粺缂栧彿") + private String orgCode; + + @ApiModelProperty(value = "鐢ㄦ埛鏈烘瀯缂栧彿") + private String userOrgCode; + + @ApiModelProperty(value = "PID銆愮埗ID銆�") + private Long pid; + + @ApiModelProperty(value = "绾у埆銆�0.鐪佺骇 1.甯傚眬 2.鍘垮尯 3.鏀眬銆�") + private Integer lv; + + @ApiModelProperty(value = "椤哄簭鍙�") + private Integer sortNo; + + @ApiModelProperty(value = "state銆愮姸鎬侊細1鍚敤0绂佺敤銆�") + private Integer state; + + @ApiModelProperty(value = "NOTE銆愬娉ㄣ��") + private String note; + + @ApiModelProperty(value = "缁忓害") + private String lon; + + @ApiModelProperty(value = "绾害") + private String lat; + @ApiModelProperty(value = "鑱旂郴鐢佃瘽") + private String phone; + + @ApiModelProperty(value = "钀ヤ笟鏃堕棿") + private String openTime; + + @ApiModelProperty(value = "璇︾粏鍦板潃") + private String address; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + public String getOrgCode() { + return orgCode; + } + + public void setOrgCode(String orgCode) { + this.orgCode = orgCode == null ? null : orgCode.trim(); + } + + public String getUserOrgCode() { + return userOrgCode; + } + + public void setUserOrgCode(String userOrgCode) { + this.userOrgCode = userOrgCode == null ? null : userOrgCode.trim(); + } + + public Long getPid() { + return pid; + } + + public void setPid(Long pid) { + this.pid = pid; + } + + public Integer getLv() { + return lv; + } + + public void setLv(Integer lv) { + this.lv = lv; + } + + public Integer getSortNo() { + return sortNo; + } + + public void setSortNo(Integer sortNo) { + this.sortNo = sortNo; + } + + public Integer getState() { + return state; + } + + public void setState(Integer state) { + this.state = state; + } + + public String getNote() { + return note; + } + + public void setNote(String note) { + this.note = note == null ? null : note.trim(); + } + + public String getLon() { + return lon; + } + + public void setLon(String lon) { + this.lon = lon == null ? null : lon.trim(); + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat == null ? null : lat.trim(); + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public String getOpenTime() { + return openTime; + } + + public void setOpenTime(String openTime) { + this.openTime = openTime; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address == null ? null : address.trim(); + } +} diff --git a/ecosphere/ecosphere-base-rest/src/main/java/com.nuvole/base/domain/SysUser.java b/ecosphere/ecosphere-base-rest/src/main/java/com.nuvole/base/domain/SysUser.java new file mode 100644 index 0000000..a0c23bb --- /dev/null +++ b/ecosphere/ecosphere-base-rest/src/main/java/com.nuvole/base/domain/SysUser.java @@ -0,0 +1,326 @@ +package com.nuvole.base.domain; + +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.springframework.format.annotation.DateTimeFormat; + +import java.util.Date; + +/** + * 瀹炰綋绫诲搴旂殑鏁版嵁琛ㄤ负锛� sys_user + * @author system-generator + * @date 2019-04-22 14:25:10 + */ +@ApiModel(value ="鐢ㄦ埛淇℃伅") +public class SysUser { + @ApiModelProperty(value = "鐢ㄦ埛鏈烘瀯绾у埆") + private Integer orgLv; + + @ApiModelProperty(value = "鐢ㄦ埛鏈烘瀯鍚嶇О") + private String orgName; + + @ApiModelProperty(value = "鐢ㄦ埛閮ㄩ棬鍚嶇О") + private String deptName; + + @ApiModelProperty(value = "ID") + private Long id; + + @ApiModelProperty(value = "鐧诲綍鍚�") + private String loginName; + + @ApiModelProperty(value = "瀵嗙爜") + private String mixPd; + + @ApiModelProperty(value = "鏃у瘑鐮�") + private String oldPwd; + + @ApiModelProperty(value = "鏂板瘑鐮�") + private String newPwd; + + @ApiModelProperty(value = "閲嶇疆瀵嗙爜") + private String resultPwd; + + @ApiModelProperty(value = "濮撳悕") + private String userName; + + @ApiModelProperty(value = "甯愬彿绫诲瀷锛�1 鏅�氱敤鎴� 锛�;2 瀹㈡埛缁忕悊锛�") + private Short userType; + + @ApiModelProperty(value = "浜哄憳缂栧彿") + private String userCode; + + @ApiModelProperty(value = "鎬у埆[1鐢�,2濂砞") + private Short sex; + + @ApiModelProperty(value = "澶囨敞") + private String note; + + @ApiModelProperty(value = "鎵嬫満鍙风爜") + private String mobile; + + @ApiModelProperty(value = "閮ㄩ棬缂栧彿") + private String deptCode; + + @ApiModelProperty(value = "鏈烘瀯id") + private Long orgId; + + @ApiModelProperty(value = "閮ㄩ棬ID") + private Long deptId; + + @ApiModelProperty(value = "鏈烘瀯缂栧彿") + private String orgCode; + + @ApiModelProperty(value = "閭") + private String email; + + @ApiModelProperty(value = "鐘舵�侊紙0 绂佺敤锛�1鍚敤锛�") + private Short state; + + @ApiModelProperty(value = "鍒涘缓鏃堕棿") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date createTime; + + @ApiModelProperty(value = "鍒涘缓浜篒D") + private Long createId; + + @ApiModelProperty(value = "鍒涘缓浜�") + private String createName; + + @ApiModelProperty(value = "澶村儚") + private String headImage; + + @ApiModelProperty(value = "閿佸畾娆℃暟") + private Short lockTimes; + + @ApiModelProperty(value = "閿佸畾鍒版湡鏃ユ湡") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date lockTime; + + public Integer getOrgLv() { + return orgLv; + } + + public void setOrgLv(Integer orgLv) { + this.orgLv = orgLv; + } + + public String getOrgName() { + return orgName; + } + + public void setOrgName(String orgName) { + this.orgName = orgName; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getLoginName() { + return loginName; + } + + public void setLoginName(String loginName) { + this.loginName = loginName; + } + + public String getResultPwd() { + return resultPwd; + } + + public void setResultPwd(String resultPwd) { + this.resultPwd = resultPwd; + } + + public String getOldPwd() { + return oldPwd; + } + + public void setOldPwd(String oldPwd) { + this.oldPwd = oldPwd; + } + + public String getNewPwd() { + return newPwd; + } + + public void setNewPwd(String newPwd) { + this.newPwd = newPwd; + } + + public String getMixPd() { + return mixPd; + } + + public void setMixPd(String mixPd) { + this.mixPd = mixPd; + } + + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public Short getUserType() { + return userType; + } + + public void setUserType(Short userType) { + this.userType = userType; + } + + public String getUserCode() { + return userCode; + } + + public void setUserCode(String userCode) { + this.userCode = userCode; + } + + public Short getSex() { + return sex; + } + + public void setSex(Short sex) { + this.sex = sex; + } + + public String getNote() { + return note; + } + + public void setNote(String note) { + this.note = note; + } + + public String getMobile() { + return mobile; + } + + public void setMobile(String mobile) { + this.mobile = mobile; + } + + public String getDeptCode() { + return deptCode; + } + + public void setDeptCode(String deptCode) { + this.deptCode = deptCode; + } + + public Long getOrgId() { + return orgId; + } + + public void setOrgId(Long orgId) { + this.orgId = orgId; + } + + public Long getDeptId() { + return deptId; + } + + public void setDeptId(Long deptId) { + this.deptId = deptId; + } + + public String getOrgCode() { + return orgCode; + } + + public void setOrgCode(String orgCode) { + this.orgCode = orgCode; + } + + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public Short getState() { + return state; + } + + public void setState(Short state) { + this.state = state; + } + + public Date getCreateTime() { + return createTime; + } + + @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Long getCreateId() { + return createId; + } + + public void setCreateId(Long createId) { + this.createId = createId; + } + + public String getCreateName() { + return createName; + } + + public void setCreateName(String createName) { + this.createName = createName; + } + + public String getHeadImage() { + return headImage; + } + + public void setHeadImage(String headImage) { + this.headImage = headImage; + } + + public Short getLockTimes() { + return lockTimes; + } + + public void setLockTimes(Short lockTimes) { + this.lockTimes = lockTimes; + } + + public Date getLockTime() { + return lockTime; + } + @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") + public void setLockTime(Date lockTime) { + this.lockTime = lockTime; + } + + private String wxAccount; + + public String getWxAccount() { + return wxAccount; + } + + public void setWxAccount(String wxAccount) { + this.wxAccount = wxAccount; + } +} diff --git a/ecosphere/pom.xml b/ecosphere/pom.xml index 3df0d96..47a195e 100644 --- a/ecosphere/pom.xml +++ b/ecosphere/pom.xml @@ -10,7 +10,7 @@ <modules> <module>ecosphere-common</module> -<!-- <module>ecosphere-base-rest</module>--> + <module>ecosphere-base-rest</module> </modules> <artifactId>ecosphere</artifactId> diff --git a/pom.xml b/pom.xml index b58501b..d759699 100644 --- a/pom.xml +++ b/pom.xml @@ -377,6 +377,7 @@ <module>ruoyi-api</module> <module>ruoyi-common</module> <module>ruoyi-example</module> + <module>ecosphere</module> </modules> <packaging>pom</packaging> -- Gitblit v1.9.1