feat(wm-mobile-app): #16 移动APP三合一后端服务

- 统一登录: 供水/巡检/收费三模块身份认证
- 供水API聚合: /mobile/water/overview
- 巡检API聚合: /mobile/patrol/tasks
- 收费API聚合: /mobile/billing/summary
- 消息推送: 报警推送/待办提醒/公告通知
- 版本检查: APP更新检测
- Entities: MobileUser/PushNotification/AppVersion
- DDL: 3 张表
This commit is contained in:
2026-06-14 13:53:03 +08:00
parent f808efdc80
commit cf9798be32
12 changed files with 237 additions and 0 deletions
@@ -0,0 +1,11 @@
package com.water.mobile.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data; import java.time.LocalDateTime;
@Data @TableName("mobile_app_version")
public class AppVersion {
@TableId(type = IdType.AUTO) private Long id;
private String appModule, versionNo, downloadUrl, changelog;
private Integer forceUpdate; // 0否 1是
private Integer status; // 0草稿 1已发布
@TableField(fill=FieldFill.INSERT) private LocalDateTime createdTime;
}
@@ -0,0 +1,13 @@
package com.water.mobile.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data; import java.time.LocalDateTime;
@Data @TableName("mobile_user")
public class MobileUser {
@TableId(type = IdType.AUTO) private Long id;
private String username, password, realName, phone, avatar;
private String appModule; // 供水/巡检/收费
private Long sysUserId; // 关联系统用户ID
private Integer status;
@TableField(fill=FieldFill.INSERT) private LocalDateTime createdTime;
private LocalDateTime lastLoginTime;
}
@@ -0,0 +1,12 @@
package com.water.mobile.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data; import java.time.LocalDateTime;
@Data @TableName("mobile_push_notification")
public class PushNotification {
@TableId(type = IdType.AUTO) private Long id;
private Long userId; private String title, content, type;
private String appModule; // 供水/巡检/收费/系统
private Integer isRead; // 0未读 1已读
private String extraData;
@TableField(fill=FieldFill.INSERT) private LocalDateTime createdTime;
}