1.初始化版本,2.引入thirdpart模块,引入canteen模块,初始化菜品分类,spu
This commit is contained in:
commit
aff77150d6
1595 files changed
+168833
No files matched your search
+51
@@ -0,0 +1,51 @@
|
||||
package com.bsd.pjcloud.thirdparty.dto;
|
||||
|
||||
public class ApiResponse<T> {
|
||||
private String code;
|
||||
private String description;
|
||||
private T data; // 泛型类型
|
||||
private String timestamp;
|
||||
|
||||
// Getters and Setters
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public T getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(T data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public String getTimestamp() {
|
||||
return timestamp;
|
||||
}
|
||||
|
||||
public void setTimestamp(String timestamp) {
|
||||
this.timestamp = timestamp;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ApiResponse{" +
|
||||
"code='" + code + '\'' +
|
||||
", description='" + description + '\'' +
|
||||
", data=" + data +
|
||||
", timestamp='" + timestamp + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
package com.bsd.pjcloud.thirdparty.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class DeptUserResponse {
|
||||
|
||||
private String code;
|
||||
private String description;
|
||||
private Data data;
|
||||
private String timestamp;
|
||||
|
||||
|
||||
@lombok.Data
|
||||
public static class Data {
|
||||
private int total;
|
||||
private List<DeptUser> rows;
|
||||
}
|
||||
|
||||
|
||||
@lombok.Data
|
||||
public static class DeptUser {
|
||||
private String organizationId;
|
||||
private String deptId;
|
||||
private String userId;
|
||||
private String username;
|
||||
private String nickName;
|
||||
|
||||
private String dingtalkEmployeeCode;
|
||||
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package com.bsd.pjcloud.thirdparty.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class OrgUserDTO {
|
||||
private String code;
|
||||
private String description;
|
||||
private List<OrganizationDTO> data;
|
||||
private String timestamp;
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package com.bsd.pjcloud.thirdparty.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class OrganizationDTO {
|
||||
private String organizationId;
|
||||
private String orgnizationName;
|
||||
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
package com.bsd.pjcloud.thirdparty.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class SubDeptDTO {
|
||||
|
||||
private String code;
|
||||
private String description;
|
||||
private Data data;
|
||||
private String timestamp;
|
||||
|
||||
|
||||
@lombok.Data
|
||||
public static class Data {
|
||||
private int total;
|
||||
private List<SubDept> rows;
|
||||
}
|
||||
|
||||
|
||||
@lombok.Data
|
||||
public static class SubDept {
|
||||
private String organizationId;
|
||||
private String parentId;
|
||||
private String deptId;
|
||||
private String deptName;
|
||||
private String dingtalkOrgCode;
|
||||
private String regionCode;
|
||||
}
|
||||
}
|
||||
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
package com.bsd.pjcloud.thirdparty.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class SubDeptResponse {
|
||||
|
||||
private String code;
|
||||
private String description;
|
||||
private Data data;
|
||||
private String timestamp;
|
||||
|
||||
|
||||
@lombok.Data
|
||||
public static class Data {
|
||||
private int total;
|
||||
private List<SubDept> rows;
|
||||
|
||||
}
|
||||
|
||||
@lombok.Data
|
||||
public static class SubDept {
|
||||
private Long organizationId;
|
||||
private Long deptId;
|
||||
private String deptName;
|
||||
|
||||
private Long parentId;
|
||||
private List<SubDept> subDepts; // 新增子部门列表属性
|
||||
|
||||
}
|
||||
}
|
||||
pjcloud-thirdparty/pjcloud-thirdparty-api/src/main/java/com/bsd/pjcloud/thirdparty/dto/TokenDTO.java
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
package com.bsd.pjcloud.thirdparty.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class TokenDTO {
|
||||
private String access_token;
|
||||
private String scope;
|
||||
private String token_type;
|
||||
private long expires_in;
|
||||
}
|
||||
+101
@@ -0,0 +1,101 @@
|
||||
package com.bsd.pjcloud.thirdparty.dto;
|
||||
|
||||
public class UserDetailResponse {
|
||||
|
||||
private String code;
|
||||
private String description;
|
||||
private Data data;
|
||||
private String timestamp;
|
||||
|
||||
// Getters and Setters
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Data getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(Data data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public String getTimestamp() {
|
||||
return timestamp;
|
||||
}
|
||||
|
||||
public void setTimestamp(String timestamp) {
|
||||
this.timestamp = timestamp;
|
||||
}
|
||||
|
||||
// Inner class to represent the data structure
|
||||
public static class Data {
|
||||
private String organizationId;
|
||||
private String deptId;
|
||||
private String userId;
|
||||
private String username;
|
||||
private String nickName;
|
||||
private String mobile;
|
||||
|
||||
// Getters and Setters
|
||||
public String getOrganizationId() {
|
||||
return organizationId;
|
||||
}
|
||||
|
||||
public void setOrganizationId(String organizationId) {
|
||||
this.organizationId = organizationId;
|
||||
}
|
||||
|
||||
public String getDeptId() {
|
||||
return deptId;
|
||||
}
|
||||
|
||||
public void setDeptId(String deptId) {
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getNickName() {
|
||||
return nickName;
|
||||
}
|
||||
|
||||
public void setNickName(String nickName) {
|
||||
this.nickName = nickName;
|
||||
}
|
||||
|
||||
public String getMobile() {
|
||||
return mobile;
|
||||
}
|
||||
|
||||
public void setMobile(String mobile) {
|
||||
this.mobile = mobile;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package com.bsd.pjcloud.thirdparty.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ZZDResponse {
|
||||
|
||||
private String code;
|
||||
private String description;
|
||||
private String data;
|
||||
}
|
||||
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
package com.bsd.pjcloud.thirdparty.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ZZDUser {
|
||||
private String username;
|
||||
private int organizationId;
|
||||
private int userId;
|
||||
private String nickName;
|
||||
private String mobile;
|
||||
private String regionCode;
|
||||
private String ext;
|
||||
|
||||
private String employeeCode;
|
||||
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package com.bsd.pjcloud.thirdparty.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ZZDUserDTO {
|
||||
private String username;
|
||||
private int organizationId;
|
||||
private int userId;
|
||||
private String nickName;
|
||||
private String mobile;
|
||||
private String regionCode;
|
||||
private Ext ext;
|
||||
|
||||
@Data
|
||||
public class Ext {
|
||||
private String employeeCode;
|
||||
private String organizationCode;
|
||||
private String nickNameCn;
|
||||
private String openid;
|
||||
private String realmId;
|
||||
private String mobile;
|
||||
//以下字段,诗画独有
|
||||
private String headImgUrl;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user