This commit is contained in:
xijue 2025-05-27 17:11:47 +08:00
parent 7f8f2b812c
commit 934e7b5e6b
10 changed files with 106 additions and 0 deletions

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>com.sxpcwlkj</groupId>
<artifactId>mms-modules</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>mms-doc</artifactId>
<description>文档模块</description>
<dependencies>
<dependency>
<groupId>com.sxpcwlkj</groupId>
<artifactId>mms-framework</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,5 @@
package com.sxpcwlkj.doc.entity;
public class Order {
}

View File

@ -0,0 +1,4 @@
package com.sxpcwlkj.doc.entity;
public class Product {
}

View File

@ -0,0 +1,4 @@
package com.sxpcwlkj.doc.entity;
public class User {
}

View File

@ -0,0 +1,4 @@
package com.sxpcwlkj.doc.entity;
public class UserOauth {
}

View File

@ -0,0 +1,36 @@
package com.sxpcwlkj.doc.enums;
/**
* 订单状态枚举
*
* @author xijue
* @Doc mmsadmin.cn
*/
public enum OrderStatus {
UNPAID("unpaid", "待支付"),
PAYSUC("paysuc", "已支付"),
REFUND("refund", "已退款"),
CANCEL("cancel", "已取消"),
FINISH("finish", "已完成");
private final String value;
private final String label;
OrderStatus(String value, String label) {
this.value = value;
this.label = label;
}
public static String getLabelByValue(String value) {
for (OrderStatus status : OrderStatus.values()) {
if (status.value.equals(value)) {
return status.label;
}
}
return "";
}
// Getters
public String getValue() { return value; }
public String getLabel() { return label; }
}

View File

@ -0,0 +1,22 @@
package com.sxpcwlkj.doc.enums;
/**
* 支付类型
*
* @author xijue
* @Doc mmsadmin.cn
*/
public enum PayType {
WX_JSAPI("wx_jsapi"),
WX_NATIVE("wx_native");
private final String value;
PayType(String value) {
this.value = value;
}
public String getValue() {
return value;
}
}

View File

@ -0,0 +1,5 @@
package com.sxpcwlkj.doc.enums;
public enum ProductType {
// 示例VIP_CARD("会员卡")
}

View File

@ -31,6 +31,7 @@
<module>mms-datasource</module>
<module>mms-gen</module>
<module>mms-ai</module>
<module>mms-doc</module>
</modules>
</project>

View File

@ -510,6 +510,12 @@
<artifactId>mms-ai</artifactId>
<version>${revision}</version>
</dependency>
<!-- 文档服务模块-->
<dependency>
<groupId>com.sxpcwlkj</groupId>
<artifactId>mms-doc</artifactId>
<version>${revision}</version>
</dependency>
<!--支付-微信-->
<dependency>
<groupId>com.github.javen205</groupId>