mirror of
https://gitee.com/mmsAdmin/mms
synced 2025-12-06 17:08:54 +08:00
mms-doc
This commit is contained in:
parent
7f8f2b812c
commit
934e7b5e6b
19
mms-modules/mms-doc/pom.xml
Normal file
19
mms-modules/mms-doc/pom.xml
Normal 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>
|
||||
@ -0,0 +1,5 @@
|
||||
package com.sxpcwlkj.doc.entity;
|
||||
|
||||
public class Order {
|
||||
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.sxpcwlkj.doc.entity;
|
||||
|
||||
public class Product {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.sxpcwlkj.doc.entity;
|
||||
|
||||
public class User {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.sxpcwlkj.doc.entity;
|
||||
|
||||
public class UserOauth {
|
||||
}
|
||||
@ -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; }
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
package com.sxpcwlkj.doc.enums;
|
||||
|
||||
public enum ProductType {
|
||||
// 示例:VIP_CARD("会员卡")
|
||||
}
|
||||
@ -31,6 +31,7 @@
|
||||
<module>mms-datasource</module>
|
||||
<module>mms-gen</module>
|
||||
<module>mms-ai</module>
|
||||
<module>mms-doc</module>
|
||||
</modules>
|
||||
|
||||
</project>
|
||||
|
||||
6
pom.xml
6
pom.xml
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user