├── .env.development
├── .env.production
├── .gitignore
├── .vscode
└── extensions.json
├── README.md
├── components.d.ts
├── doc
└── qrcode
│ ├── wx.jpg
│ ├── wxzs.jpg
│ └── zfb.jpg
├── index.html
├── package-lock.json
├── package.json
├── postcss.config.cjs
├── public
├── logo.gif
└── vite.svg
├── src
├── App.vue
├── assets
│ └── vue.svg
├── components
│ ├── 500.vue
│ └── HelloWorld.vue
├── main.ts
├── pages
│ ├── ClockInfo.vue
│ ├── HomeView.vue
│ ├── coin
│ │ ├── CoinChange.vue
│ │ ├── CoinDetail.vue
│ │ └── TransferCoin.vue
│ ├── mall
│ │ ├── AddMall.vue
│ │ ├── Mall.vue
│ │ ├── MallManagement.vue
│ │ └── UpdateMall.vue
│ ├── platform
│ │ ├── gxy
│ │ │ ├── MoGuDing.vue
│ │ │ └── UpdateMoGuDing.vue
│ │ ├── platformSystem
│ │ │ ├── AddPlatform.vue
│ │ │ ├── PlatformManagement.vue
│ │ │ └── UpdatePlatform.vue
│ │ └── zxjy
│ │ │ ├── UpdateZXJY.vue
│ │ │ └── ZXJY.vue
│ ├── system
│ │ ├── Notice.vue
│ │ └── System.vue
│ └── user
│ │ ├── AboutView.vue
│ │ ├── Login.vue
│ │ └── Register.vue
├── plugins
│ └── myAxios.ts
├── router
│ └── index.ts
├── services
│ └── moguding-backend
│ │ ├── core
│ │ ├── ApiError.ts
│ │ ├── ApiRequestOptions.ts
│ │ ├── ApiResult.ts
│ │ ├── CancelablePromise.ts
│ │ ├── OpenAPI.ts
│ │ └── request.ts
│ │ ├── index.ts
│ │ ├── models
│ │ ├── BaseResponse_BasicInformation_.ts
│ │ ├── BaseResponse_ClockInInfoVo_.ts
│ │ ├── BaseResponse_ClockReport_.ts
│ │ ├── BaseResponse_CoinDetail_.ts
│ │ ├── BaseResponse_DailyCheckIn_.ts
│ │ ├── BaseResponse_InitClockInfo_.ts
│ │ ├── BaseResponse_List_BasicInformation_.ts
│ │ ├── BaseResponse_List_ClockInInfo_.ts
│ │ ├── BaseResponse_List_ClockReport_.ts
│ │ ├── BaseResponse_List_PlatformInfo_.ts
│ │ ├── BaseResponse_List_ProductInfo_.ts
│ │ ├── BaseResponse_List_UserVO_.ts
│ │ ├── BaseResponse_Page_BasicInformation_.ts
│ │ ├── BaseResponse_Page_ClockInInfo_.ts
│ │ ├── BaseResponse_Page_ClockReport_.ts
│ │ ├── BaseResponse_Page_CoinDetail_.ts
│ │ ├── BaseResponse_Page_DailyCheckIn_.ts
│ │ ├── BaseResponse_Page_PlatformInfo_.ts
│ │ ├── BaseResponse_Page_ProductInfo_.ts
│ │ ├── BaseResponse_Page_UserVO_.ts
│ │ ├── BaseResponse_PlatformInfo_.ts
│ │ ├── BaseResponse_ProductInfo_.ts
│ │ ├── BaseResponse_UserVO_.ts
│ │ ├── BaseResponse_User_.ts
│ │ ├── BaseResponse_boolean_.ts
│ │ ├── BaseResponse_long_.ts
│ │ ├── BasicInformation.ts
│ │ ├── BasicInformationAddRequest.ts
│ │ ├── BasicInformationQueryRequest.ts
│ │ ├── BasicInformationUpdateRequest.ts
│ │ ├── ClockInInfo.ts
│ │ ├── ClockInInfoAddRequest.ts
│ │ ├── ClockInInfoQueryRequest.ts
│ │ ├── ClockInInfoUpdateRequest.ts
│ │ ├── ClockInInfoVo.ts
│ │ ├── ClockReport.ts
│ │ ├── ClockReportAddRequest.ts
│ │ ├── ClockReportQueryRequest.ts
│ │ ├── ClockReportUpdateRequest.ts
│ │ ├── CoinDetail.ts
│ │ ├── CoinDetailQueryRequest.ts
│ │ ├── DailyCheckIn.ts
│ │ ├── DailyCheckInQueryRequest.ts
│ │ ├── DayReport.ts
│ │ ├── DeleteRequest.ts
│ │ ├── IdRequest.ts
│ │ ├── InitClockInfo.ts
│ │ ├── ModelAndView.ts
│ │ ├── MonthReport.ts
│ │ ├── OrderItem.ts
│ │ ├── Page_BasicInformation_.ts
│ │ ├── Page_ClockInInfo_.ts
│ │ ├── Page_ClockReport_.ts
│ │ ├── Page_CoinDetail_.ts
│ │ ├── Page_DailyCheckIn_.ts
│ │ ├── Page_PlatformInfo_.ts
│ │ ├── Page_ProductInfo_.ts
│ │ ├── Page_UserVO_.ts
│ │ ├── PlatformInfo.ts
│ │ ├── PlatformInfoAddRequest.ts
│ │ ├── PlatformInfoQueryRequest.ts
│ │ ├── PlatformInfoUpdateRequest.ts
│ │ ├── ProductInfo.ts
│ │ ├── ProductInfoAddRequest.ts
│ │ ├── ProductInfoQueryRequest.ts
│ │ ├── ProductInfoUpdateRequest.ts
│ │ ├── Report.ts
│ │ ├── SupplementaryReportRequest.ts
│ │ ├── TransferCoinRequest.ts
│ │ ├── User.ts
│ │ ├── UserAddRequest.ts
│ │ ├── UserBindEmailRequest.ts
│ │ ├── UserLoginRequest.ts
│ │ ├── UserRegisterRequest.ts
│ │ ├── UserUnBindEmailRequest.ts
│ │ ├── UserUpdateRequest.ts
│ │ ├── UserVO.ts
│ │ ├── View.ts
│ │ └── WeekReport.ts
│ │ └── services
│ │ ├── BasicErrorControllerService.ts
│ │ ├── BasicInformationControllerService.ts
│ │ ├── ClockInControllerService.ts
│ │ ├── ClockInInfoControllerService.ts
│ │ ├── ClockReportControllerService.ts
│ │ ├── CoinDetailControllerService.ts
│ │ ├── DailyCheckInControllerService.ts
│ │ ├── PlatformInfoControllerService.ts
│ │ ├── ProductInfoControllerService.ts
│ │ └── UserControllerService.ts
├── stores
│ ├── backupClockInfo.ts
│ ├── dialogRead.ts
│ └── user.ts
├── style.css
└── vite-env.d.ts
├── tailwind.config.cjs
├── tsconfig.json
├── tsconfig.node.json
├── vite.config.ts
└── yarn.lock
/.env.development:
--------------------------------------------------------------------------------
1 | VITE_API_PREFIX=http://localhost:7529
2 |
3 |
--------------------------------------------------------------------------------
/.env.production:
--------------------------------------------------------------------------------
1 | # todo 方式1:域名方式 后端域名
2 | VITE_API_PREFIX=https://api.qimuu.icu
3 | # todo 方式2:ip方式 ip+后端端口
4 | # VITE_API_PREFIX=http://123.45.67.89:9806
5 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | pnpm-debug.log*
8 | lerna-debug.log*
9 |
10 | node_modules
11 | dist
12 | dist-ssr
13 | *.local
14 |
15 | # Editor directories and files
16 | .vscode/*
17 | !.vscode/extensions.json
18 | .idea
19 | .DS_Store
20 | *.suo
21 | *.ntvs*
22 | *.njsproj
23 | *.sln
24 | *.sw?
25 |
--------------------------------------------------------------------------------
/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
3 | }
4 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Auto Clock 自动打卡
6 | 自动打卡助手
7 |
8 |
14 |
15 |
16 | ### 联系作者:aqimu66
17 |
18 |
19 |
20 | ### 告知 ⚠️
21 |
22 | 1. **需有redis、mysql、springboot、maven、rabbitmq、docker等知识基础**
23 | 2. **使用此项目造成任何损失均由个人承担。**
24 | 3. **在开始之前请帮我点一下右上角的star。**
25 | 4. **禁止任何平台或个人将此项目用于盈利或违法!**
26 | 5. **此项目仅限学习交流,禁止用于任何商业或违法用途!**
27 | 6. **服务器配置2g2h起步**
28 |
29 | ### 导航 🧭
30 |
31 | - **[Auto Clock 自动打卡前端代码](https://github.com/qimu666/auto-clock)**
32 | - **[Auto Clock 自动打卡后端代码](https://github.com/qimu666/auto-clock/blob/master/doc/qrcode/wx.jpg)**
33 |
34 | ### 支持平台 🎉
35 |
36 | 1. **职校家园**
37 | 2. **工学云**
38 | 3. **习讯云**
39 | 4. **校友帮**
40 |
41 | ### 主要功能 🙋
42 |
43 | 1. **自动打卡**
44 | 2. **异地打卡**
45 | 3. **一键补卡**
46 | 4. **自动写周日月报告**
47 | 5. **输入账号密码自动获取信息**
48 | 6. **任意报告补录**
49 | 7. **ai报告支持**
50 | 8. **微信通知状态**
51 | 9. **邮件通知打卡状态**
52 | 10. **新增职校家园同款位置api**
53 | 11. **浮动时间(在设置的时间后浮动15分钟左右)**
54 | 12. ....
55 |
56 | ### 注意事项 👽
57 |
58 | 1. **打卡时间避免高峰期 0点、8-9点、18-20点**
59 | 2. **设备信息务必真实**
60 | 3. **此项目仅限学习交流,禁止用于任何商业或违法用途!**
61 |
62 | ### 快速开始 🚀
63 |
64 | #### 前端
65 |
66 | 环境要求:Node.js >= 16
67 |
68 | 安装依赖:
69 |
70 | ```bash
71 | yarn or npm install
72 | ```
73 |
74 | 启动:
75 |
76 | ```bash
77 | yarn run dev or npm run dev
78 | ```
79 |
80 | 部署:
81 |
82 | - 线上环境修改 `.env.production` 文件中域名为自己的域名或端口号
83 |
84 | - 打包构建代码
85 |
86 | ```bash
87 | yarn build or npm run build
88 | ```
89 |
90 | - 上传`dist`目录文件到服务器
91 |
92 | #### 后端
93 |
94 | 须有jdk,redis,mysql,maven,rabbitmq等环境
95 |
96 | 启动:
97 |
98 | 1. 执行sql目录下ddl.sql
99 |
100 | 2. 修改`todo`配置
101 | 
102 |
103 | 服务器部署:
104 | 在本地修改配置之后,使用maven打包jar、上传jar到服务器、执行表sql、运行jar
105 |
106 | ## 项目展示
107 |
108 | - 首页
109 |
110 |
111 |
112 | - 信息中台
113 |
114 |
115 |
116 | - 添加账号
117 |
118 |
119 |
120 | - 管理页
121 |
122 | - 积分
123 |
124 |
125 |
126 | - 平台管理
127 |
128 |
129 |
130 |
131 | - 个人中心
132 |
133 | - 模板一
134 |
135 |
136 |
137 | - 模板二
138 |
139 |
140 |
141 |
142 |
143 | ## 支持这个项目 :tea:
144 |
145 | **如果您正在使用这个项目并感觉良好,或者是想支持我继续开发,您可以通过如下`任意`方式支持我:**
146 |
147 | 1. Star并分享 [Auto Clock In 自动打卡](https://github.com/qimu666/auto-clock) :rocket:
148 | 2. 通过以下二维码 一次性捐款,打赏作者一杯茶。:tea:
149 |
150 | 谢谢! :heart:
151 |
152 | | 微信赞赏 | 支付宝 |
153 | |:---------------------------------------------------------:|:-------------------------------------------------------------------------------:|
154 | |
|
|
155 |
156 | ### 有趣研究社
157 |
158 | 这里有着各种有趣的、好玩的、沙雕的创意和想法以在线小网站或者文章的形式表达出来,比如:
159 |
160 | - [小霸王游戏机](https://game.xugaoyi.com)
161 | - [爱国头像生成器](https://avatar.xugaoyi.com/)
162 | - [到账语音生成器](https://zfb.xugaoyi.com/)
163 |
164 | 还有更多好玩的等你去探索吧~
165 |
166 | ### 贡献 🤝
167 |
168 | 如果您想为 **[Auto Clock 自动打卡](https://github.com/qimu666/auto-clock)**
169 | 做出贡献,请随时提交拉取请求。我们始终在寻找方法来改进项目,使其对像您这样的开发者更有用。
170 |
171 | ### 联系我们 📩
172 |
173 | 如果您对 **[Auto Clock 自动打卡](https://github.com/qimu666/auto-clock)**
174 | 平台有任何问题或建议,请随时联系我们:📩邮箱:2483482026@qq.com。
175 |
176 | 感谢您使用 **[Auto Clock 自动打卡](https://github.com/qimu666/auto-clock)** ! 😊
177 |
178 | ### 致谢
179 |
180 | 感谢给予支持的朋友,您的支持是我前进的动力 🎉
181 |
182 |
--------------------------------------------------------------------------------
/components.d.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | /* prettier-ignore */
3 | // @ts-nocheck
4 | // Generated by unplugin-vue-components
5 | // Read more: https://github.com/vuejs/core/pull/3399
6 | export {}
7 |
8 | declare module 'vue' {
9 | export interface GlobalComponents {
10 | 500: typeof import('./src/components/500.vue')['default']
11 | HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
12 | RouterLink: typeof import('vue-router')['RouterLink']
13 | RouterView: typeof import('vue-router')['RouterView']
14 | VanButton: typeof import('vant/es')['Button']
15 | VanCell: typeof import('vant/es')['Cell']
16 | VanCellGroup: typeof import('vant/es')['CellGroup']
17 | VanDivider: typeof import('vant/es')['Divider']
18 | VanFloatingBubble: typeof import('vant/es')['FloatingBubble']
19 | VanImage: typeof import('vant/es')['Image']
20 | VanList: typeof import('vant/es')['List']
21 | VanLoading: typeof import('vant/es')['Loading']
22 | VanNavBar: typeof import('vant/es')['NavBar']
23 | VanNoticeBar: typeof import('vant/es')['NoticeBar']
24 | VanNumberKeyboard: typeof import('vant/es')['NumberKeyboard']
25 | VanTabbar: typeof import('vant/es')['Tabbar']
26 | VanTabbarItem: typeof import('vant/es')['TabbarItem']
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/doc/qrcode/wx.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qimu666/auto-clock-open/9267ecb26fff46c083bca48920af33ce1ce662f0/doc/qrcode/wx.jpg
--------------------------------------------------------------------------------
/doc/qrcode/wxzs.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qimu666/auto-clock-open/9267ecb26fff46c083bca48920af33ce1ce662f0/doc/qrcode/wxzs.jpg
--------------------------------------------------------------------------------
/doc/qrcode/zfb.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qimu666/auto-clock-open/9267ecb26fff46c083bca48920af33ce1ce662f0/doc/qrcode/zfb.jpg
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
11 | 自动打卡
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "auto-clock-frontend",
3 | "private": true,
4 | "version": "0.0.0",
5 | "type": "module",
6 | "scripts": {
7 | "dev": "vite",
8 | "build": "vite build",
9 | "preview": "vite preview",
10 | "openapi": "openapi --input http://localhost:7529/api/v3/api-docs --output ./src/services/moguding-backend --client axios"
11 | },
12 | "dependencies": {
13 | "@vant/touch-emulator": "^1.4.0",
14 | "@vueuse/core": "^10.6.1",
15 | "axios": "^1.6.2",
16 | "disable-devtool": "^0.3.7",
17 | "picocolors": "^1.0.0",
18 | "pinia": "^2.1.7",
19 | "pinia-plugin-persistedstate": "^3.2.0",
20 | "vant": "^4.7.3",
21 | "vue": "^3.3.8",
22 | "vue-router": "^4.2.5",
23 | "vue3-baidu-map-gl": "^2.3.1"
24 | },
25 | "devDependencies": {
26 | "@vant/area-data": "^1.5.1",
27 | "@vant/auto-import-resolver": "^1.0.2",
28 | "@vitejs/plugin-vue": "^4.5.0",
29 | "autoprefixer": "^10.4.16",
30 | "openapi-typescript-codegen": "^0.25.0",
31 | "postcss": "^8.4.31",
32 | "tailwindcss": "^3.3.5",
33 | "typescript": "^5.2.2",
34 | "unplugin-vue-components": "^0.25.2",
35 | "vite": "^5.0.0",
36 | "vite-plugin-banner": "^0.7.1",
37 | "vue-tsc": "^1.8.22"
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/postcss.config.cjs:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | autoprefixer: {},
5 | }
6 | };
7 |
--------------------------------------------------------------------------------
/public/logo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qimu666/auto-clock-open/9267ecb26fff46c083bca48920af33ce1ce662f0/public/logo.gif
--------------------------------------------------------------------------------
/public/vite.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
13 |
17 |
19 |
22 |
23 |
24 |
加载中...
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | 首页
33 | 积分商城
34 |
35 | 信息中台
36 |
37 |
44 |
45 |
46 |
47 | 我的
48 |
49 |
50 |
51 |
52 |
53 |
54 |
138 |
143 |
--------------------------------------------------------------------------------
/src/assets/vue.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/components/500.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
500
5 |
服务器异常请联系管理员
6 |
7 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
25 |
26 |
31 |
--------------------------------------------------------------------------------
/src/components/HelloWorld.vue:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 | {{ msg }}
11 |
12 |
13 |
14 |
15 | Edit
16 | components/HelloWorld.vue
to test HMR
17 |
18 |
19 |
20 |
21 | Check out
22 | create-vue, the official Vue + Vite starter
25 |
26 |
27 | Install
28 | Volar
29 | in your IDE for a better DX
30 |
31 | Click on the Vite and Vue logos to learn more
32 |
33 |
34 |
39 |
--------------------------------------------------------------------------------
/src/main.ts:
--------------------------------------------------------------------------------
1 | import {createApp} from 'vue'
2 | import App from './App.vue'
3 | import router from "./router";
4 | import '@vant/touch-emulator';
5 | import './style.css'
6 | import Vant from 'vant'
7 | import 'vant/lib/index.css';
8 | import 'vant/es/toast/style';
9 | import 'vant/es/notify/style'
10 | import '../src/plugins/myAxios'
11 | import {createPinia} from 'pinia'
12 | import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
13 |
14 | const pinia = createPinia()
15 | pinia.use(piniaPluginPersistedstate)
16 | const app = createApp(App);
17 | app.use(Vant)
18 | app.use(pinia)
19 | app.use(router);
20 | app.mount('#app')
21 |
--------------------------------------------------------------------------------
/src/pages/HomeView.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
17 |
18 | {{ item.name }}
19 |
20 |
21 |
{{ item.coin }} 积分 /
22 |
次
23 |
天
24 |
打卡结束
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
68 |
69 |
78 |
--------------------------------------------------------------------------------
/src/pages/coin/CoinChange.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
12 |
13 |
14 |
15 |
16 |
17 |
24 |
30 |
36 |
37 |
38 |
39 | 增加积分
40 |
41 |
42 | 扣除积分
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
105 |
106 |
107 |
--------------------------------------------------------------------------------
/src/pages/coin/CoinDetail.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
87 |
88 |
89 |
--------------------------------------------------------------------------------
/src/pages/coin/TransferCoin.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
12 |
21 |
30 |
31 |
32 |
34 | 转账
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/src/pages/mall/AddMall.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
12 |
19 |
26 |
27 |
28 |
29 | 上架
30 | 下架
31 |
32 |
33 |
34 |
35 |
36 |
37 | 提交
38 |
39 |
40 |
41 |
42 |
43 |
44 |
64 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/src/pages/mall/Mall.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
7 |
16 |
17 | {{ item.coinName }}
18 |
19 |
20 | ¥{{ item.amount / 100 }}
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
33 |
34 |
35 |
36 |
81 |
82 |
83 |
--------------------------------------------------------------------------------
/src/pages/mall/MallManagement.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
新增积分规格
18 |
19 |
20 |
21 |
22 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/src/pages/mall/UpdateMall.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
12 |
19 |
26 |
27 |
28 |
29 | 上架
30 | 下架
31 |
32 |
33 |
34 |
35 |
36 |
37 | 修改
38 |
39 |
40 |
41 |
42 |
43 |
44 |
79 |
80 |
81 |
--------------------------------------------------------------------------------
/src/pages/platform/platformSystem/AddPlatform.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
12 |
19 |
20 |
21 |
22 | 工学云
23 |
24 | 职校家园
25 |
26 | 其他
27 |
28 |
29 |
30 |
37 |
38 |
39 |
40 | 次
41 | 天
42 |
43 | 一次结清
44 |
45 |
46 |
47 |
48 |
49 |
50 | 上架
51 | 下架
52 |
53 |
54 |
55 |
56 |
57 |
58 | 提交
59 |
60 |
61 |
62 |
63 |
64 |
65 |
99 |
100 |
101 |
--------------------------------------------------------------------------------
/src/pages/platform/platformSystem/PlatformManagement.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
新增平台
19 |
20 |
21 |
22 |
23 |
89 |
90 |
91 |
--------------------------------------------------------------------------------
/src/pages/platform/platformSystem/UpdatePlatform.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
12 |
19 |
20 |
21 |
22 | 工学云
23 |
24 | 职校家园
25 |
26 | 其他
27 |
28 |
29 |
30 |
37 |
38 |
39 |
40 | 次
41 | 天
42 | 永久
43 |
44 |
45 |
46 |
47 |
48 |
49 | 上架
50 | 下架
51 |
52 |
53 |
54 |
55 |
56 |
57 | 修改
58 |
59 |
60 |
61 |
62 |
63 |
64 |
123 |
124 |
125 |
--------------------------------------------------------------------------------
/src/pages/system/Notice.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
12 |
19 |
26 |
33 |
40 |
47 |
54 |
55 |
56 |
57 | 更新
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
92 |
93 |
94 |
--------------------------------------------------------------------------------
/src/pages/system/System.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
13 |
通知管理
14 |
15 |
16 |
17 |
18 |
19 |
20 |
25 |
26 |
商城管理
27 |
28 |
29 |
30 |
31 |
32 |
33 |
38 |
39 |
平台管理
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/src/pages/user/AboutView.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
12 |
13 |
{{
14 | loginUser.userAccount
15 | }}
16 |
17 |
18 |
19 |
20 |
21 |
26 |
27 |
我的账号
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
40 |
我的积分
41 |
42 |
43 |
44 |
45 |
46 |
47 |
52 |
积分明细
53 |
54 |
55 |
56 |
57 |
58 |
59 |
64 |
积分变更
65 |
66 |
67 |
68 |
69 |
70 |
71 |
76 |
积分转账
77 |
78 |
79 |
80 |
81 |
82 |
83 |
88 |
89 |
系统管理
90 |
91 |
92 |
93 |
94 |
95 | 退出登录
96 |
97 |
98 |
99 |
100 |
101 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
194 |
195 |
196 |
--------------------------------------------------------------------------------
/src/pages/user/Login.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
13 |
14 |
15 | {{ dialogStore.basicInformations&&dialogStore.basicInformations.websiteName && dialogStore.basicInformations.websiteName.trim().length > 0 ? dialogStore.basicInformations.websiteName : "自动打卡"
16 | }}
17 |
18 |
19 |
20 |
21 |
28 |
36 |
37 |
38 |
39 | 登录
40 |
41 | 还没有账号?点击注册
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
85 |
86 |
88 |
--------------------------------------------------------------------------------
/src/pages/user/Register.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
13 |
14 |
15 | {{
16 | dialogStore.basicInformations&&dialogStore.basicInformations.websiteName && dialogStore.basicInformations.websiteName.trim().length > 0 ? dialogStore.basicInformations.websiteName : "自动打卡"
17 | }}
18 |
19 |
20 |
21 |
22 |
28 |
35 |
43 |
51 |
52 |
53 |
54 | 注册
55 |
56 | 已有账号?点击登录
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
97 |
98 |
99 |
--------------------------------------------------------------------------------
/src/plugins/myAxios.ts:
--------------------------------------------------------------------------------
1 | // Add a request interceptor
2 | import axios from "axios";
3 | import {showFailToast} from "vant";
4 | import router from "../router";
5 |
6 | axios.defaults.withCredentials = true;
7 |
8 | axios.interceptors.request.use(
9 | function (config) {
10 | // Do something before request is sent
11 | return config;
12 | },
13 | function (error) {
14 | // Do something with request error
15 | return Promise.reject(error);
16 | }
17 | );
18 |
19 | axios.interceptors.response.use(
20 | function (response) {
21 | const {data} = response
22 | const {code} = data;
23 | if (data && code === 0) {
24 | return response;
25 | } else {
26 | switch (code) {
27 | case 40001:
28 | case 40100: {
29 | showFailToast(data.message)
30 | router.push('/login')
31 | }
32 | break;
33 | default:
34 | showFailToast(data.message)
35 | break;
36 | }
37 | }
38 | return response;
39 | },
40 |
41 | function (error) {
42 | return Promise.reject(error);
43 | }
44 | )
45 | ;
46 |
47 | // 拦截响应数据,进行个性化处理
48 |
--------------------------------------------------------------------------------
/src/router/index.ts:
--------------------------------------------------------------------------------
1 | import {createRouter, createWebHistory, RouteRecordRaw} from "vue-router";
2 |
3 | const routes: Array = [
4 | {
5 | path: "/",
6 | name: "首页",
7 | component: () => import("../pages/HomeView.vue"),
8 | },
9 | {
10 | path: "/login",
11 | name: "登录",
12 | component: () => import("../pages/user/Login.vue"),
13 | },
14 | {
15 | path: "/clockInfo",
16 | name: "信息中台",
17 | component: () => import("../pages/ClockInfo.vue"),
18 | },
19 | {
20 | path: "/register",
21 | name: "注册",
22 | component: () => import("../pages/user/Register.vue"),
23 | },
24 | {
25 | path: "/mall",
26 | name: "积分商城",
27 | component: () => import("../pages/mall/Mall.vue"),
28 | },
29 | {
30 | path: "/moguding",
31 | name: "工学云",
32 | component: () => import("../pages/platform/gxy/MoGuDing.vue"),
33 | },
34 | {
35 | path: "/zxjy",
36 | name: "职校家园",
37 | component: () => import("../pages/platform/zxjy/ZXJY.vue"),
38 | },
39 | {
40 | path: "/gxy/update",
41 | name: "修改信息-工学云",
42 | component: () => import("../pages/platform/gxy/UpdateMoGuDing.vue"),
43 | },
44 | {
45 | path: "/zxjy/update",
46 | name: "修改信息-职校家园",
47 | component: () => import("../pages/platform/zxjy/UpdateZXJY.vue"),
48 | },
49 | {
50 | path: "/system",
51 | name: "系统管理",
52 | component: () => import("../pages/system/System.vue"),
53 | },
54 | {
55 | path: "/transferCoin",
56 | name: "积分转账",
57 | component: () => import("../pages/coin/TransferCoin.vue"),
58 | },
59 | {
60 | path: "/coinChange",
61 | name: "积分变更",
62 | component: () => import("../pages/coin/CoinChange.vue"),
63 | }, {
64 | path: "/500",
65 | name: "500",
66 | component: () => import("../components/500.vue"),
67 | },
68 | {
69 | path: "/mall_management",
70 | name: "商城管理",
71 | component: () => import("../pages/mall/MallManagement.vue"),
72 | },
73 | {
74 | path: "/platform_management",
75 | name: "平台管理",
76 | component: () => import("../pages/platform/platformSystem/PlatformManagement.vue"),
77 | },
78 | {
79 | path: "/add_platform",
80 | name: "添加平台",
81 | component: () => import("../pages/platform/platformSystem/AddPlatform.vue"),
82 | },
83 | {
84 | path: "/coin_detail",
85 | name: "积分明细",
86 | component: () => import("../pages/coin/CoinDetail.vue"),
87 | },
88 | {
89 | path: "/update_platform",
90 | name: "更新平台",
91 | component: () => import("../pages/platform/platformSystem/UpdatePlatform.vue"),
92 | },
93 | {
94 | path: "/update_mall",
95 | name: "修改积分规格",
96 | component: () => import("../pages/mall/UpdateMall.vue"),
97 | },
98 | {
99 | path: "/add_mall",
100 | name: "增加积分规格",
101 | component: () => import("../pages/mall/AddMall.vue"),
102 | },
103 | {
104 | path: "/notice",
105 | name: "消息通知",
106 | component: () => import("../pages/system/Notice.vue"),
107 | },
108 | {
109 | path: "/about",
110 | name: "我的",
111 | component: () => import("../pages/user/AboutView.vue"),
112 | },
113 | ];
114 |
115 | const router = createRouter({
116 | history: createWebHistory(),
117 | routes,
118 | });
119 |
120 |
121 | export default router;
122 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/core/ApiError.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 | import type { ApiRequestOptions } from './ApiRequestOptions';
6 | import type { ApiResult } from './ApiResult';
7 |
8 | export class ApiError extends Error {
9 | public readonly url: string;
10 | public readonly status: number;
11 | public readonly statusText: string;
12 | public readonly body: any;
13 | public readonly request: ApiRequestOptions;
14 |
15 | constructor(request: ApiRequestOptions, response: ApiResult, message: string) {
16 | super(message);
17 |
18 | this.name = 'ApiError';
19 | this.url = response.url;
20 | this.status = response.status;
21 | this.statusText = response.statusText;
22 | this.body = response.body;
23 | this.request = request;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/core/ApiRequestOptions.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 | export type ApiRequestOptions = {
6 | readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
7 | readonly url: string;
8 | readonly path?: Record;
9 | readonly cookies?: Record;
10 | readonly headers?: Record;
11 | readonly query?: Record;
12 | readonly formData?: Record;
13 | readonly body?: any;
14 | readonly mediaType?: string;
15 | readonly responseHeader?: string;
16 | readonly errors?: Record;
17 | };
18 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/core/ApiResult.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 | export type ApiResult = {
6 | readonly url: string;
7 | readonly ok: boolean;
8 | readonly status: number;
9 | readonly statusText: string;
10 | readonly body: any;
11 | };
12 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/core/CancelablePromise.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 | export class CancelError extends Error {
6 |
7 | constructor(message: string) {
8 | super(message);
9 | this.name = 'CancelError';
10 | }
11 |
12 | public get isCancelled(): boolean {
13 | return true;
14 | }
15 | }
16 |
17 | export interface OnCancel {
18 | readonly isResolved: boolean;
19 | readonly isRejected: boolean;
20 | readonly isCancelled: boolean;
21 |
22 | (cancelHandler: () => void): void;
23 | }
24 |
25 | export class CancelablePromise implements Promise {
26 | #isResolved: boolean;
27 | #isRejected: boolean;
28 | #isCancelled: boolean;
29 | readonly #cancelHandlers: (() => void)[];
30 | readonly #promise: Promise;
31 | #resolve?: (value: T | PromiseLike) => void;
32 | #reject?: (reason?: any) => void;
33 |
34 | constructor(
35 | executor: (
36 | resolve: (value: T | PromiseLike) => void,
37 | reject: (reason?: any) => void,
38 | onCancel: OnCancel
39 | ) => void
40 | ) {
41 | this.#isResolved = false;
42 | this.#isRejected = false;
43 | this.#isCancelled = false;
44 | this.#cancelHandlers = [];
45 | this.#promise = new Promise((resolve, reject) => {
46 | this.#resolve = resolve;
47 | this.#reject = reject;
48 |
49 | const onResolve = (value: T | PromiseLike): void => {
50 | if (this.#isResolved || this.#isRejected || this.#isCancelled) {
51 | return;
52 | }
53 | this.#isResolved = true;
54 | this.#resolve?.(value);
55 | };
56 |
57 | const onReject = (reason?: any): void => {
58 | if (this.#isResolved || this.#isRejected || this.#isCancelled) {
59 | return;
60 | }
61 | this.#isRejected = true;
62 | this.#reject?.(reason);
63 | };
64 |
65 | const onCancel = (cancelHandler: () => void): void => {
66 | if (this.#isResolved || this.#isRejected || this.#isCancelled) {
67 | return;
68 | }
69 | this.#cancelHandlers.push(cancelHandler);
70 | };
71 |
72 | Object.defineProperty(onCancel, 'isResolved', {
73 | get: (): boolean => this.#isResolved,
74 | });
75 |
76 | Object.defineProperty(onCancel, 'isRejected', {
77 | get: (): boolean => this.#isRejected,
78 | });
79 |
80 | Object.defineProperty(onCancel, 'isCancelled', {
81 | get: (): boolean => this.#isCancelled,
82 | });
83 |
84 | return executor(onResolve, onReject, onCancel as OnCancel);
85 | });
86 | }
87 |
88 | get [Symbol.toStringTag]() {
89 | return "Cancellable Promise";
90 | }
91 |
92 | public then(
93 | onFulfilled?: ((value: T) => TResult1 | PromiseLike) | null,
94 | onRejected?: ((reason: any) => TResult2 | PromiseLike) | null
95 | ): Promise {
96 | return this.#promise.then(onFulfilled, onRejected);
97 | }
98 |
99 | public catch(
100 | onRejected?: ((reason: any) => TResult | PromiseLike) | null
101 | ): Promise {
102 | return this.#promise.catch(onRejected);
103 | }
104 |
105 | public finally(onFinally?: (() => void) | null): Promise {
106 | return this.#promise.finally(onFinally);
107 | }
108 |
109 | public cancel(): void {
110 | if (this.#isResolved || this.#isRejected || this.#isCancelled) {
111 | return;
112 | }
113 | this.#isCancelled = true;
114 | if (this.#cancelHandlers.length) {
115 | try {
116 | for (const cancelHandler of this.#cancelHandlers) {
117 | cancelHandler();
118 | }
119 | } catch (error) {
120 | console.warn('Cancellation threw an error', error);
121 | return;
122 | }
123 | }
124 | this.#cancelHandlers.length = 0;
125 | this.#reject?.(new CancelError('Request aborted'));
126 | }
127 |
128 | public get isCancelled(): boolean {
129 | return this.#isCancelled;
130 | }
131 | }
132 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/core/OpenAPI.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 | import type { ApiRequestOptions } from './ApiRequestOptions';
6 |
7 | type Resolver = (options: ApiRequestOptions) => Promise;
8 | type Headers = Record;
9 |
10 | export type OpenAPIConfig = {
11 | BASE: string;
12 | VERSION: string;
13 | WITH_CREDENTIALS: boolean;
14 | CREDENTIALS: 'include' | 'omit' | 'same-origin';
15 | TOKEN?: string | Resolver | undefined;
16 | USERNAME?: string | Resolver | undefined;
17 | PASSWORD?: string | Resolver | undefined;
18 | HEADERS?: Headers | Resolver | undefined;
19 | ENCODE_PATH?: ((path: string) => string) | undefined;
20 | };
21 |
22 | export const OpenAPI: OpenAPIConfig = {
23 | BASE: `${import.meta.env.VITE_API_PREFIX}`,
24 | VERSION: '1.0',
25 | WITH_CREDENTIALS: true,
26 | CREDENTIALS: 'include',
27 | TOKEN: undefined,
28 | USERNAME: undefined,
29 | PASSWORD: undefined,
30 | HEADERS: undefined,
31 | ENCODE_PATH: undefined,
32 | };
33 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/core/request.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 | import axios from 'axios';
6 | import type { AxiosError, AxiosRequestConfig, AxiosResponse, AxiosInstance } from 'axios';
7 | import FormData from 'form-data';
8 |
9 | import { ApiError } from './ApiError';
10 | import type { ApiRequestOptions } from './ApiRequestOptions';
11 | import type { ApiResult } from './ApiResult';
12 | import { CancelablePromise } from './CancelablePromise';
13 | import type { OnCancel } from './CancelablePromise';
14 | import type { OpenAPIConfig } from './OpenAPI';
15 |
16 | export const isDefined = (value: T | null | undefined): value is Exclude => {
17 | return value !== undefined && value !== null;
18 | };
19 |
20 | export const isString = (value: any): value is string => {
21 | return typeof value === 'string';
22 | };
23 |
24 | export const isStringWithValue = (value: any): value is string => {
25 | return isString(value) && value !== '';
26 | };
27 |
28 | export const isBlob = (value: any): value is Blob => {
29 | return (
30 | typeof value === 'object' &&
31 | typeof value.type === 'string' &&
32 | typeof value.stream === 'function' &&
33 | typeof value.arrayBuffer === 'function' &&
34 | typeof value.constructor === 'function' &&
35 | typeof value.constructor.name === 'string' &&
36 | /^(Blob|File)$/.test(value.constructor.name) &&
37 | /^(Blob|File)$/.test(value[Symbol.toStringTag])
38 | );
39 | };
40 |
41 | export const isFormData = (value: any): value is FormData => {
42 | return value instanceof FormData;
43 | };
44 |
45 | export const isSuccess = (status: number): boolean => {
46 | return status >= 200 && status < 300;
47 | };
48 |
49 | export const base64 = (str: string): string => {
50 | try {
51 | return btoa(str);
52 | } catch (err) {
53 | // @ts-ignore
54 | return Buffer.from(str).toString('base64');
55 | }
56 | };
57 |
58 | export const getQueryString = (params: Record): string => {
59 | const qs: string[] = [];
60 |
61 | const append = (key: string, value: any) => {
62 | qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
63 | };
64 |
65 | const process = (key: string, value: any) => {
66 | if (isDefined(value)) {
67 | if (Array.isArray(value)) {
68 | value.forEach(v => {
69 | process(key, v);
70 | });
71 | } else if (typeof value === 'object') {
72 | Object.entries(value).forEach(([k, v]) => {
73 | process(`${key}[${k}]`, v);
74 | });
75 | } else {
76 | append(key, value);
77 | }
78 | }
79 | };
80 |
81 | Object.entries(params).forEach(([key, value]) => {
82 | process(key, value);
83 | });
84 |
85 | if (qs.length > 0) {
86 | return `?${qs.join('&')}`;
87 | }
88 |
89 | return '';
90 | };
91 |
92 | const getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => {
93 | const encoder = config.ENCODE_PATH || encodeURI;
94 |
95 | const path = options.url
96 | .replace('{api-version}', config.VERSION)
97 | .replace(/{(.*?)}/g, (substring: string, group: string) => {
98 | if (options.path?.hasOwnProperty(group)) {
99 | return encoder(String(options.path[group]));
100 | }
101 | return substring;
102 | });
103 |
104 | const url = `${config.BASE}${path}`;
105 | if (options.query) {
106 | return `${url}${getQueryString(options.query)}`;
107 | }
108 | return url;
109 | };
110 |
111 | export const getFormData = (options: ApiRequestOptions): FormData | undefined => {
112 | if (options.formData) {
113 | const formData = new FormData();
114 |
115 | const process = (key: string, value: any) => {
116 | if (isString(value) || isBlob(value)) {
117 | formData.append(key, value);
118 | } else {
119 | formData.append(key, JSON.stringify(value));
120 | }
121 | };
122 |
123 | Object.entries(options.formData)
124 | .filter(([_, value]) => isDefined(value))
125 | .forEach(([key, value]) => {
126 | if (Array.isArray(value)) {
127 | value.forEach(v => process(key, v));
128 | } else {
129 | process(key, value);
130 | }
131 | });
132 |
133 | return formData;
134 | }
135 | return undefined;
136 | };
137 |
138 | type Resolver = (options: ApiRequestOptions) => Promise;
139 |
140 | export const resolve = async (options: ApiRequestOptions, resolver?: T | Resolver): Promise => {
141 | if (typeof resolver === 'function') {
142 | return (resolver as Resolver)(options);
143 | }
144 | return resolver;
145 | };
146 |
147 | export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions, formData?: FormData): Promise> => {
148 | const token = await resolve(options, config.TOKEN);
149 | const username = await resolve(options, config.USERNAME);
150 | const password = await resolve(options, config.PASSWORD);
151 | const additionalHeaders = await resolve(options, config.HEADERS);
152 | const formHeaders = typeof formData?.getHeaders === 'function' && formData?.getHeaders() || {}
153 |
154 | const headers = Object.entries({
155 | Accept: 'application/json',
156 | ...additionalHeaders,
157 | ...options.headers,
158 | ...formHeaders,
159 | })
160 | .filter(([_, value]) => isDefined(value))
161 | .reduce((headers, [key, value]) => ({
162 | ...headers,
163 | [key]: String(value),
164 | }), {} as Record);
165 |
166 | if (isStringWithValue(token)) {
167 | headers['Authorization'] = `Bearer ${token}`;
168 | }
169 |
170 | if (isStringWithValue(username) && isStringWithValue(password)) {
171 | const credentials = base64(`${username}:${password}`);
172 | headers['Authorization'] = `Basic ${credentials}`;
173 | }
174 |
175 | if (options.body) {
176 | if (options.mediaType) {
177 | headers['Content-Type'] = options.mediaType;
178 | } else if (isBlob(options.body)) {
179 | headers['Content-Type'] = options.body.type || 'application/octet-stream';
180 | } else if (isString(options.body)) {
181 | headers['Content-Type'] = 'text/plain';
182 | } else if (!isFormData(options.body)) {
183 | headers['Content-Type'] = 'application/json';
184 | }
185 | }
186 |
187 | return headers;
188 | };
189 |
190 | export const getRequestBody = (options: ApiRequestOptions): any => {
191 | if (options.body) {
192 | return options.body;
193 | }
194 | return undefined;
195 | };
196 |
197 | export const sendRequest = async (
198 | config: OpenAPIConfig,
199 | options: ApiRequestOptions,
200 | url: string,
201 | body: any,
202 | formData: FormData | undefined,
203 | headers: Record,
204 | onCancel: OnCancel,
205 | axiosClient: AxiosInstance
206 | ): Promise> => {
207 | const source = axios.CancelToken.source();
208 |
209 | const requestConfig: AxiosRequestConfig = {
210 | url,
211 | headers,
212 | data: body ?? formData,
213 | method: options.method,
214 | withCredentials: config.WITH_CREDENTIALS,
215 | cancelToken: source.token,
216 | };
217 |
218 | onCancel(() => source.cancel('The user aborted a request.'));
219 |
220 | try {
221 | return await axiosClient.request(requestConfig);
222 | } catch (error) {
223 | location.href='/500'
224 | const axiosError = error as AxiosError;
225 | if (axiosError.response) {
226 | return axiosError.response;
227 | }
228 | throw error;
229 | }
230 | };
231 |
232 | export const getResponseHeader = (response: AxiosResponse, responseHeader?: string): string | undefined => {
233 | if (responseHeader) {
234 | const content = response.headers[responseHeader];
235 | if (isString(content)) {
236 | return content;
237 | }
238 | }
239 | return undefined;
240 | };
241 |
242 | export const getResponseBody = (response: AxiosResponse): any => {
243 | if (response.status !== 204) {
244 | return response.data;
245 | }
246 | return undefined;
247 | };
248 |
249 | export const catchErrorCodes = (options: ApiRequestOptions, result: ApiResult): void => {
250 | const errors: Record = {
251 | 400: 'Bad Request',
252 | 401: 'Unauthorized',
253 | 403: 'Forbidden',
254 | 404: 'Not Found',
255 | 500: 'Internal Server Error',
256 | 502: 'Bad Gateway',
257 | 503: 'Service Unavailable',
258 | ...options.errors,
259 | }
260 |
261 | const error = errors[result.status];
262 | if (error) {
263 | throw new ApiError(options, result, error);
264 | }
265 |
266 | if (!result.ok) {
267 | const errorStatus = result.status ?? 'unknown';
268 | const errorStatusText = result.statusText ?? 'unknown';
269 | const errorBody = (() => {
270 | try {
271 | return JSON.stringify(result.body, null, 2);
272 | } catch (e) {
273 | return undefined;
274 | }
275 | })();
276 |
277 | throw new ApiError(options, result,
278 | `Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}`
279 | );
280 | }
281 | };
282 |
283 | /**
284 | * Request method
285 | * @param config The OpenAPI configuration object
286 | * @param options The request options from the service
287 | * @param axiosClient The axios client instance to use
288 | * @returns CancelablePromise
289 | * @throws ApiError
290 | */
291 | export const request = (config: OpenAPIConfig, options: ApiRequestOptions, axiosClient: AxiosInstance = axios): CancelablePromise => {
292 | return new CancelablePromise(async (resolve, reject, onCancel) => {
293 | try {
294 | const url = getUrl(config, options);
295 | const formData = getFormData(options);
296 | const body = getRequestBody(options);
297 | const headers = await getHeaders(config, options, formData);
298 |
299 | if (!onCancel.isCancelled) {
300 | const response = await sendRequest(config, options, url, body, formData, headers, onCancel, axiosClient);
301 | const responseBody = getResponseBody(response);
302 | const responseHeader = getResponseHeader(response, options.responseHeader);
303 |
304 | const result: ApiResult = {
305 | url,
306 | ok: isSuccess(response.status),
307 | status: response.status,
308 | statusText: response.statusText,
309 | body: responseHeader ?? responseBody,
310 | };
311 |
312 | catchErrorCodes(options, result);
313 |
314 | resolve(result.body);
315 | }
316 | } catch (error) {
317 | reject(error);
318 | }
319 | });
320 | };
321 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/index.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 | export { ApiError } from './core/ApiError';
6 | export { CancelablePromise, CancelError } from './core/CancelablePromise';
7 | export { OpenAPI } from './core/OpenAPI';
8 | export type { OpenAPIConfig } from './core/OpenAPI';
9 |
10 | export type { BaseResponse_BasicInformation_ } from './models/BaseResponse_BasicInformation_';
11 | export type { BaseResponse_boolean_ } from './models/BaseResponse_boolean_';
12 | export type { BaseResponse_ClockInInfoVo_ } from './models/BaseResponse_ClockInInfoVo_';
13 | export type { BaseResponse_ClockReport_ } from './models/BaseResponse_ClockReport_';
14 | export type { BaseResponse_CoinDetail_ } from './models/BaseResponse_CoinDetail_';
15 | export type { BaseResponse_DailyCheckIn_ } from './models/BaseResponse_DailyCheckIn_';
16 | export type { BaseResponse_InitClockInfo_ } from './models/BaseResponse_InitClockInfo_';
17 | export type { BaseResponse_List_BasicInformation_ } from './models/BaseResponse_List_BasicInformation_';
18 | export type { BaseResponse_List_ClockInInfo_ } from './models/BaseResponse_List_ClockInInfo_';
19 | export type { BaseResponse_List_ClockReport_ } from './models/BaseResponse_List_ClockReport_';
20 | export type { BaseResponse_List_PlatformInfo_ } from './models/BaseResponse_List_PlatformInfo_';
21 | export type { BaseResponse_List_ProductInfo_ } from './models/BaseResponse_List_ProductInfo_';
22 | export type { BaseResponse_List_UserVO_ } from './models/BaseResponse_List_UserVO_';
23 | export type { BaseResponse_long_ } from './models/BaseResponse_long_';
24 | export type { BaseResponse_Page_BasicInformation_ } from './models/BaseResponse_Page_BasicInformation_';
25 | export type { BaseResponse_Page_ClockInInfo_ } from './models/BaseResponse_Page_ClockInInfo_';
26 | export type { BaseResponse_Page_ClockReport_ } from './models/BaseResponse_Page_ClockReport_';
27 | export type { BaseResponse_Page_CoinDetail_ } from './models/BaseResponse_Page_CoinDetail_';
28 | export type { BaseResponse_Page_DailyCheckIn_ } from './models/BaseResponse_Page_DailyCheckIn_';
29 | export type { BaseResponse_Page_PlatformInfo_ } from './models/BaseResponse_Page_PlatformInfo_';
30 | export type { BaseResponse_Page_ProductInfo_ } from './models/BaseResponse_Page_ProductInfo_';
31 | export type { BaseResponse_Page_UserVO_ } from './models/BaseResponse_Page_UserVO_';
32 | export type { BaseResponse_PlatformInfo_ } from './models/BaseResponse_PlatformInfo_';
33 | export type { BaseResponse_ProductInfo_ } from './models/BaseResponse_ProductInfo_';
34 | export type { BaseResponse_User_ } from './models/BaseResponse_User_';
35 | export type { BaseResponse_UserVO_ } from './models/BaseResponse_UserVO_';
36 | export type { BasicInformation } from './models/BasicInformation';
37 | export type { BasicInformationAddRequest } from './models/BasicInformationAddRequest';
38 | export type { BasicInformationQueryRequest } from './models/BasicInformationQueryRequest';
39 | export type { BasicInformationUpdateRequest } from './models/BasicInformationUpdateRequest';
40 | export type { ClockInInfo } from './models/ClockInInfo';
41 | export type { ClockInInfoAddRequest } from './models/ClockInInfoAddRequest';
42 | export type { ClockInInfoQueryRequest } from './models/ClockInInfoQueryRequest';
43 | export type { ClockInInfoUpdateRequest } from './models/ClockInInfoUpdateRequest';
44 | export type { ClockInInfoVo } from './models/ClockInInfoVo';
45 | export type { ClockReport } from './models/ClockReport';
46 | export type { ClockReportAddRequest } from './models/ClockReportAddRequest';
47 | export type { ClockReportQueryRequest } from './models/ClockReportQueryRequest';
48 | export type { ClockReportUpdateRequest } from './models/ClockReportUpdateRequest';
49 | export type { CoinDetail } from './models/CoinDetail';
50 | export type { CoinDetailQueryRequest } from './models/CoinDetailQueryRequest';
51 | export type { DailyCheckIn } from './models/DailyCheckIn';
52 | export type { DailyCheckInQueryRequest } from './models/DailyCheckInQueryRequest';
53 | export type { DayReport } from './models/DayReport';
54 | export type { DeleteRequest } from './models/DeleteRequest';
55 | export type { IdRequest } from './models/IdRequest';
56 | export type { InitClockInfo } from './models/InitClockInfo';
57 | export { ModelAndView } from './models/ModelAndView';
58 | export type { MonthReport } from './models/MonthReport';
59 | export type { OrderItem } from './models/OrderItem';
60 | export type { Page_BasicInformation_ } from './models/Page_BasicInformation_';
61 | export type { Page_ClockInInfo_ } from './models/Page_ClockInInfo_';
62 | export type { Page_ClockReport_ } from './models/Page_ClockReport_';
63 | export type { Page_CoinDetail_ } from './models/Page_CoinDetail_';
64 | export type { Page_DailyCheckIn_ } from './models/Page_DailyCheckIn_';
65 | export type { Page_PlatformInfo_ } from './models/Page_PlatformInfo_';
66 | export type { Page_ProductInfo_ } from './models/Page_ProductInfo_';
67 | export type { Page_UserVO_ } from './models/Page_UserVO_';
68 | export type { PlatformInfo } from './models/PlatformInfo';
69 | export type { PlatformInfoAddRequest } from './models/PlatformInfoAddRequest';
70 | export type { PlatformInfoQueryRequest } from './models/PlatformInfoQueryRequest';
71 | export type { PlatformInfoUpdateRequest } from './models/PlatformInfoUpdateRequest';
72 | export type { ProductInfo } from './models/ProductInfo';
73 | export type { ProductInfoAddRequest } from './models/ProductInfoAddRequest';
74 | export type { ProductInfoQueryRequest } from './models/ProductInfoQueryRequest';
75 | export type { ProductInfoUpdateRequest } from './models/ProductInfoUpdateRequest';
76 | export type { Report } from './models/Report';
77 | export type { SupplementaryReportRequest } from './models/SupplementaryReportRequest';
78 | export type { TransferCoinRequest } from './models/TransferCoinRequest';
79 | export type { User } from './models/User';
80 | export type { UserAddRequest } from './models/UserAddRequest';
81 | export type { UserBindEmailRequest } from './models/UserBindEmailRequest';
82 | export type { UserLoginRequest } from './models/UserLoginRequest';
83 | export type { UserRegisterRequest } from './models/UserRegisterRequest';
84 | export type { UserUnBindEmailRequest } from './models/UserUnBindEmailRequest';
85 | export type { UserUpdateRequest } from './models/UserUpdateRequest';
86 | export type { UserVO } from './models/UserVO';
87 | export type { View } from './models/View';
88 | export type { WeekReport } from './models/WeekReport';
89 |
90 | export { BasicErrorControllerService } from './services/BasicErrorControllerService';
91 | export { BasicInformationControllerService } from './services/BasicInformationControllerService';
92 | export { ClockInControllerService } from './services/ClockInControllerService';
93 | export { ClockInInfoControllerService } from './services/ClockInInfoControllerService';
94 | export { ClockReportControllerService } from './services/ClockReportControllerService';
95 | export { CoinDetailControllerService } from './services/CoinDetailControllerService';
96 | export { DailyCheckInControllerService } from './services/DailyCheckInControllerService';
97 | export { PlatformInfoControllerService } from './services/PlatformInfoControllerService';
98 | export { ProductInfoControllerService } from './services/ProductInfoControllerService';
99 | export { UserControllerService } from './services/UserControllerService';
100 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_BasicInformation_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { BasicInformation } from './BasicInformation';
7 |
8 | export type BaseResponse_BasicInformation_ = {
9 | code?: number;
10 | data?: BasicInformation;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_ClockInInfoVo_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { ClockInInfoVo } from './ClockInInfoVo';
7 |
8 | export type BaseResponse_ClockInInfoVo_ = {
9 | code?: number;
10 | data?: ClockInInfoVo;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_ClockReport_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { ClockReport } from './ClockReport';
7 |
8 | export type BaseResponse_ClockReport_ = {
9 | code?: number;
10 | data?: ClockReport;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_CoinDetail_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { CoinDetail } from './CoinDetail';
7 |
8 | export type BaseResponse_CoinDetail_ = {
9 | code?: number;
10 | data?: CoinDetail;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_DailyCheckIn_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { DailyCheckIn } from './DailyCheckIn';
7 |
8 | export type BaseResponse_DailyCheckIn_ = {
9 | code?: number;
10 | data?: DailyCheckIn;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_InitClockInfo_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { InitClockInfo } from './InitClockInfo';
7 |
8 | export type BaseResponse_InitClockInfo_ = {
9 | code?: number;
10 | data?: InitClockInfo;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_List_BasicInformation_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { BasicInformation } from './BasicInformation';
7 |
8 | export type BaseResponse_List_BasicInformation_ = {
9 | code?: number;
10 | data?: Array;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_List_ClockInInfo_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { ClockInInfo } from './ClockInInfo';
7 |
8 | export type BaseResponse_List_ClockInInfo_ = {
9 | code?: number;
10 | data?: Array;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_List_ClockReport_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { ClockReport } from './ClockReport';
7 |
8 | export type BaseResponse_List_ClockReport_ = {
9 | code?: number;
10 | data?: Array;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_List_PlatformInfo_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { PlatformInfo } from './PlatformInfo';
7 |
8 | export type BaseResponse_List_PlatformInfo_ = {
9 | code?: number;
10 | data?: Array;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_List_ProductInfo_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { ProductInfo } from './ProductInfo';
7 |
8 | export type BaseResponse_List_ProductInfo_ = {
9 | code?: number;
10 | data?: Array;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_List_UserVO_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { UserVO } from './UserVO';
7 |
8 | export type BaseResponse_List_UserVO_ = {
9 | code?: number;
10 | data?: Array;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_Page_BasicInformation_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { Page_BasicInformation_ } from './Page_BasicInformation_';
7 |
8 | export type BaseResponse_Page_BasicInformation_ = {
9 | code?: number;
10 | data?: Page_BasicInformation_;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_Page_ClockInInfo_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { Page_ClockInInfo_ } from './Page_ClockInInfo_';
7 |
8 | export type BaseResponse_Page_ClockInInfo_ = {
9 | code?: number;
10 | data?: Page_ClockInInfo_;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_Page_ClockReport_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { Page_ClockReport_ } from './Page_ClockReport_';
7 |
8 | export type BaseResponse_Page_ClockReport_ = {
9 | code?: number;
10 | data?: Page_ClockReport_;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_Page_CoinDetail_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { Page_CoinDetail_ } from './Page_CoinDetail_';
7 |
8 | export type BaseResponse_Page_CoinDetail_ = {
9 | code?: number;
10 | data?: Page_CoinDetail_;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_Page_DailyCheckIn_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { Page_DailyCheckIn_ } from './Page_DailyCheckIn_';
7 |
8 | export type BaseResponse_Page_DailyCheckIn_ = {
9 | code?: number;
10 | data?: Page_DailyCheckIn_;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_Page_PlatformInfo_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { Page_PlatformInfo_ } from './Page_PlatformInfo_';
7 |
8 | export type BaseResponse_Page_PlatformInfo_ = {
9 | code?: number;
10 | data?: Page_PlatformInfo_;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_Page_ProductInfo_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { Page_ProductInfo_ } from './Page_ProductInfo_';
7 |
8 | export type BaseResponse_Page_ProductInfo_ = {
9 | code?: number;
10 | data?: Page_ProductInfo_;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_Page_UserVO_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { Page_UserVO_ } from './Page_UserVO_';
7 |
8 | export type BaseResponse_Page_UserVO_ = {
9 | code?: number;
10 | data?: Page_UserVO_;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_PlatformInfo_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { PlatformInfo } from './PlatformInfo';
7 |
8 | export type BaseResponse_PlatformInfo_ = {
9 | code?: number;
10 | data?: PlatformInfo;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_ProductInfo_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { ProductInfo } from './ProductInfo';
7 |
8 | export type BaseResponse_ProductInfo_ = {
9 | code?: number;
10 | data?: ProductInfo;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_UserVO_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { UserVO } from './UserVO';
7 |
8 | export type BaseResponse_UserVO_ = {
9 | code?: number;
10 | data?: UserVO;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_User_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { User } from './User';
7 |
8 | export type BaseResponse_User_ = {
9 | code?: number;
10 | data?: User;
11 | message?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_boolean_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type BaseResponse_boolean_ = {
7 | code?: number;
8 | data?: boolean;
9 | message?: string;
10 | };
11 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BaseResponse_long_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type BaseResponse_long_ = {
7 | code?: number;
8 | data?: number;
9 | message?: string;
10 | };
11 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BasicInformation.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type BasicInformation = {
7 | announcement?: string;
8 | announcementTitle?: string;
9 | id?: number;
10 | noticeAnnouncement?: string;
11 | noticeAnnouncementTitle?: string;
12 | noticeBar?: string;
13 | pointsNotification?: string;
14 | websiteName?: string;
15 | };
16 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BasicInformationAddRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type BasicInformationAddRequest = {
7 | announcement?: string;
8 | announcementTitle?: string;
9 | noticeAnnouncement?: string;
10 | noticeAnnouncementTitle?: string;
11 | noticeBar?: string;
12 | pointsNotification?: string;
13 | };
14 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BasicInformationQueryRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type BasicInformationQueryRequest = {
7 | addCoin?: number;
8 | amount?: number;
9 | coinName?: string;
10 | current?: number;
11 | id?: number;
12 | noticeBar?: string;
13 | pageSize?: number;
14 | pointsNotification?: string;
15 | sortField?: string;
16 | sortOrder?: string;
17 | status?: number;
18 | userId?: number;
19 | };
20 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/BasicInformationUpdateRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type BasicInformationUpdateRequest = {
7 | announcement?: string;
8 | announcementTitle?: string;
9 | id?: number;
10 | noticeAnnouncement?: string;
11 | noticeAnnouncementTitle?: string;
12 | noticeBar?: string;
13 | pointsNotification?: string;
14 | websiteName?: string;
15 | };
16 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/ClockInInfo.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type ClockInInfo = {
7 | aiReportMessage?: string;
8 | aiReportStatus?: number;
9 | area?: string;
10 | city?: string;
11 | clockAddress?: string;
12 | clockDays?: number;
13 | clockStatus?: number;
14 | clockedSuccessDays?: number;
15 | createTime?: string;
16 | dailyNewspaperStatus?: number;
17 | dayReportId?: number;
18 | device?: string;
19 | email?: string;
20 | endClock?: number;
21 | endTime?: string;
22 | id?: number;
23 | isDelete?: number;
24 | jobAddress?: string;
25 | jobName?: string;
26 | latitude?: string;
27 | longitude?: string;
28 | monthNewspaperStatus?: number;
29 | monthReportId?: number;
30 | nikeName?: string;
31 | nowClockType?: string;
32 | password?: string;
33 | phone?: string;
34 | phoneType?: string;
35 | platformId?: number;
36 | province?: string;
37 | pushToken?: string;
38 | reportAddress?: string;
39 | reportSource?: number;
40 | selectClockDay?: string;
41 | startClock?: number;
42 | startTime?: string;
43 | type?: string;
44 | updateTime?: string;
45 | userId?: number;
46 | weekNewspaperStatus?: number;
47 | weekReportId?: number;
48 | };
49 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/ClockInInfoAddRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type ClockInInfoAddRequest = {
7 | area?: string;
8 | city?: string;
9 | clockAddress?: string;
10 | clockDays?: number;
11 | clockStatus?: number;
12 | dailyNewspaperStatus?: number;
13 | dayReportId?: number;
14 | device?: string;
15 | email?: string;
16 | endTime?: string;
17 | id?: number;
18 | jobAddress?: string;
19 | jobName?: string;
20 | latitude?: string;
21 | longitude?: string;
22 | monthNewspaperStatus?: number;
23 | monthReportId?: number;
24 | nikeName?: string;
25 | password?: string;
26 | phone?: string;
27 | phoneType?: string;
28 | platformId?: number;
29 | province?: string;
30 | pushToken?: string;
31 | reportAddress?: string;
32 | reportContent?: string;
33 | reportSource?: number;
34 | selectClockDay?: string;
35 | startTime?: string;
36 | type?: string;
37 | weekNewspaperStatus?: number;
38 | weekReportId?: number;
39 | };
40 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/ClockInInfoQueryRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type ClockInInfoQueryRequest = {
7 | clockAddress?: string;
8 | clockDays?: number;
9 | clockStatus?: number;
10 | clockType?: string;
11 | clockedSuccessDays?: number;
12 | current?: number;
13 | dailyNewspaperStatus?: number;
14 | device?: string;
15 | email?: string;
16 | id?: number;
17 | jobAddress?: string;
18 | jobName?: string;
19 | latitude?: string;
20 | longitude?: string;
21 | monthNewspaperStatus?: number;
22 | pageSize?: number;
23 | password?: string;
24 | phone?: string;
25 | platformId?: number;
26 | pushToken?: string;
27 | reportSource?: number;
28 | searchText?: string;
29 | selectClockDay?: string;
30 | sortField?: string;
31 | sortOrder?: string;
32 | tagType?: string;
33 | type?: string;
34 | userId?: number;
35 | weekNewspaperStatus?: number;
36 | };
37 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/ClockInInfoUpdateRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type ClockInInfoUpdateRequest = {
7 | area?: string;
8 | city?: string;
9 | clockAddress?: string;
10 | clockDays?: number;
11 | clockStatus?: number;
12 | dailyNewspaperStatus?: number;
13 | dayReportId?: number;
14 | device?: string;
15 | email?: string;
16 | endTime?: string;
17 | id?: number;
18 | jobAddress?: string;
19 | jobName?: string;
20 | latitude?: string;
21 | longitude?: string;
22 | monthNewspaperStatus?: number;
23 | monthReportId?: number;
24 | nikeName?: string;
25 | password?: string;
26 | phone?: string;
27 | phoneType?: string;
28 | platformId?: number;
29 | province?: string;
30 | pushToken?: string;
31 | reportAddress?: string;
32 | reportContent?: string;
33 | reportSource?: number;
34 | selectClockDay?: string;
35 | startTime?: string;
36 | type?: string;
37 | weekNewspaperStatus?: number;
38 | weekReportId?: number;
39 | };
40 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/ClockInInfoVo.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { Report } from './Report';
7 |
8 | export type ClockInInfoVo = {
9 | aiReportMessage?: string;
10 | aiReportStatus?: number;
11 | area?: string;
12 | city?: string;
13 | clockAddress?: string;
14 | clockDays?: number;
15 | clockStatus?: number;
16 | createTime?: string;
17 | dailyNewspaperStatus?: number;
18 | dayReportId?: number;
19 | description?: string;
20 | device?: string;
21 | email?: string;
22 | endClock?: number;
23 | endTime?: string;
24 | id?: number;
25 | jobAddress?: string;
26 | jobName?: string;
27 | latitude?: string;
28 | longitude?: string;
29 | monthNewspaperStatus?: number;
30 | monthReportId?: number;
31 | nikeName?: string;
32 | nowClockType?: string;
33 | password?: string;
34 | phone?: string;
35 | phoneType?: string;
36 | platformId?: number;
37 | province?: string;
38 | pushToken?: string;
39 | report?: Report;
40 | reportAddress?: string;
41 | reportSource?: number;
42 | selectClockDay?: string;
43 | startClock?: number;
44 | startTime?: string;
45 | type?: string;
46 | updateTime?: string;
47 | userId?: number;
48 | weekNewspaperStatus?: number;
49 | weekReportId?: number;
50 | };
51 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/ClockReport.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type ClockReport = {
7 | clockId?: number;
8 | content?: string;
9 | createTime?: string;
10 | dailyNewspaperStatus?: number;
11 | id?: number;
12 | jobName?: string;
13 | monthNewspaperStatus?: number;
14 | reportSource?: number;
15 | title?: string;
16 | type?: string;
17 | updateTime?: string;
18 | userId?: number;
19 | weekNewspaperStatus?: number;
20 | };
21 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/ClockReportAddRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type ClockReportAddRequest = {
7 | content?: string;
8 | createTime?: string;
9 | jobName?: string;
10 | reportSource?: number;
11 | title?: string;
12 | type?: string;
13 | updateTime?: string;
14 | };
15 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/ClockReportQueryRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type ClockReportQueryRequest = {
7 | content?: string;
8 | current?: number;
9 | id?: number;
10 | jobName?: string;
11 | pageSize?: number;
12 | searchText?: string;
13 | sortField?: string;
14 | sortOrder?: string;
15 | tagType?: string;
16 | };
17 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/ClockReportUpdateRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type ClockReportUpdateRequest = {
7 | clockId?: number;
8 | content?: string;
9 | dailyNewspaperStatus?: number;
10 | id?: number;
11 | jobName?: string;
12 | monthNewspaperStatus?: number;
13 | reportSource?: number;
14 | title?: string;
15 | type?: string;
16 | userId?: number;
17 | weekNewspaperStatus?: number;
18 | };
19 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/CoinDetail.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type CoinDetail = {
7 | coinNum?: number;
8 | createTime?: string;
9 | description?: string;
10 | id?: number;
11 | isDelete?: number;
12 | nikeName?: string;
13 | phone?: string;
14 | type?: string;
15 | updateTime?: string;
16 | userId?: number;
17 | };
18 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/CoinDetailQueryRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type CoinDetailQueryRequest = {
7 | coinNum?: number;
8 | createTime?: string;
9 | current?: number;
10 | description?: string;
11 | id?: number;
12 | isDelete?: number;
13 | nikeName?: string;
14 | pageSize?: number;
15 | phone?: string;
16 | sortField?: string;
17 | sortOrder?: string;
18 | type?: string;
19 | updateTime?: string;
20 | userId?: number;
21 | };
22 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/DailyCheckIn.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type DailyCheckIn = {
7 | createTime?: string;
8 | description?: string;
9 | id?: number;
10 | phone?: string;
11 | status?: number;
12 | type?: string;
13 | updateTime?: string;
14 | userId?: number;
15 | };
16 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/DailyCheckInQueryRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type DailyCheckInQueryRequest = {
7 | createTime?: string;
8 | current?: number;
9 | description?: string;
10 | id?: number;
11 | pageSize?: number;
12 | phone?: string;
13 | sortField?: string;
14 | sortOrder?: string;
15 | status?: number;
16 | type?: string;
17 | updateTime?: string;
18 | userId?: number;
19 | };
20 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/DayReport.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type DayReport = {
7 | dayContent?: string;
8 | dayTitle?: string;
9 | id?: number;
10 | type?: string;
11 | };
12 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/DeleteRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type DeleteRequest = {
7 | id?: number;
8 | };
9 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/IdRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type IdRequest = {
7 | id?: number;
8 | };
9 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/InitClockInfo.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type InitClockInfo = {
7 | area?: string;
8 | city?: string;
9 | clockAddress?: string;
10 | jobAddress?: string;
11 | jobName?: string;
12 | latitude?: string;
13 | longitude?: string;
14 | nikeName?: string;
15 | password?: string;
16 | phone?: string;
17 | province?: string;
18 | };
19 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/ModelAndView.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { View } from './View';
7 |
8 | export type ModelAndView = {
9 | empty?: boolean;
10 | model?: Record;
11 | modelMap?: Record>;
12 | reference?: boolean;
13 | status?: ModelAndView.status;
14 | view?: View;
15 | viewName?: string;
16 | };
17 |
18 | export namespace ModelAndView {
19 |
20 | export enum status {
21 | ACCEPTED = 'ACCEPTED',
22 | ALREADY_REPORTED = 'ALREADY_REPORTED',
23 | BAD_GATEWAY = 'BAD_GATEWAY',
24 | BAD_REQUEST = 'BAD_REQUEST',
25 | BANDWIDTH_LIMIT_EXCEEDED = 'BANDWIDTH_LIMIT_EXCEEDED',
26 | CHECKPOINT = 'CHECKPOINT',
27 | CONFLICT = 'CONFLICT',
28 | CONTINUE = 'CONTINUE',
29 | CREATED = 'CREATED',
30 | DESTINATION_LOCKED = 'DESTINATION_LOCKED',
31 | EXPECTATION_FAILED = 'EXPECTATION_FAILED',
32 | FAILED_DEPENDENCY = 'FAILED_DEPENDENCY',
33 | FORBIDDEN = 'FORBIDDEN',
34 | FOUND = 'FOUND',
35 | GATEWAY_TIMEOUT = 'GATEWAY_TIMEOUT',
36 | GONE = 'GONE',
37 | HTTP_VERSION_NOT_SUPPORTED = 'HTTP_VERSION_NOT_SUPPORTED',
38 | IM_USED = 'IM_USED',
39 | INSUFFICIENT_SPACE_ON_RESOURCE = 'INSUFFICIENT_SPACE_ON_RESOURCE',
40 | INSUFFICIENT_STORAGE = 'INSUFFICIENT_STORAGE',
41 | INTERNAL_SERVER_ERROR = 'INTERNAL_SERVER_ERROR',
42 | I_AM_A_TEAPOT = 'I_AM_A_TEAPOT',
43 | LENGTH_REQUIRED = 'LENGTH_REQUIRED',
44 | LOCKED = 'LOCKED',
45 | LOOP_DETECTED = 'LOOP_DETECTED',
46 | METHOD_FAILURE = 'METHOD_FAILURE',
47 | METHOD_NOT_ALLOWED = 'METHOD_NOT_ALLOWED',
48 | MOVED_PERMANENTLY = 'MOVED_PERMANENTLY',
49 | MOVED_TEMPORARILY = 'MOVED_TEMPORARILY',
50 | MULTIPLE_CHOICES = 'MULTIPLE_CHOICES',
51 | MULTI_STATUS = 'MULTI_STATUS',
52 | NETWORK_AUTHENTICATION_REQUIRED = 'NETWORK_AUTHENTICATION_REQUIRED',
53 | NON_AUTHORITATIVE_INFORMATION = 'NON_AUTHORITATIVE_INFORMATION',
54 | NOT_ACCEPTABLE = 'NOT_ACCEPTABLE',
55 | NOT_EXTENDED = 'NOT_EXTENDED',
56 | NOT_FOUND = 'NOT_FOUND',
57 | NOT_IMPLEMENTED = 'NOT_IMPLEMENTED',
58 | NOT_MODIFIED = 'NOT_MODIFIED',
59 | NO_CONTENT = 'NO_CONTENT',
60 | OK = 'OK',
61 | PARTIAL_CONTENT = 'PARTIAL_CONTENT',
62 | PAYLOAD_TOO_LARGE = 'PAYLOAD_TOO_LARGE',
63 | PAYMENT_REQUIRED = 'PAYMENT_REQUIRED',
64 | PERMANENT_REDIRECT = 'PERMANENT_REDIRECT',
65 | PRECONDITION_FAILED = 'PRECONDITION_FAILED',
66 | PRECONDITION_REQUIRED = 'PRECONDITION_REQUIRED',
67 | PROCESSING = 'PROCESSING',
68 | PROXY_AUTHENTICATION_REQUIRED = 'PROXY_AUTHENTICATION_REQUIRED',
69 | REQUESTED_RANGE_NOT_SATISFIABLE = 'REQUESTED_RANGE_NOT_SATISFIABLE',
70 | REQUEST_ENTITY_TOO_LARGE = 'REQUEST_ENTITY_TOO_LARGE',
71 | REQUEST_HEADER_FIELDS_TOO_LARGE = 'REQUEST_HEADER_FIELDS_TOO_LARGE',
72 | REQUEST_TIMEOUT = 'REQUEST_TIMEOUT',
73 | REQUEST_URI_TOO_LONG = 'REQUEST_URI_TOO_LONG',
74 | RESET_CONTENT = 'RESET_CONTENT',
75 | SEE_OTHER = 'SEE_OTHER',
76 | SERVICE_UNAVAILABLE = 'SERVICE_UNAVAILABLE',
77 | SWITCHING_PROTOCOLS = 'SWITCHING_PROTOCOLS',
78 | TEMPORARY_REDIRECT = 'TEMPORARY_REDIRECT',
79 | TOO_EARLY = 'TOO_EARLY',
80 | TOO_MANY_REQUESTS = 'TOO_MANY_REQUESTS',
81 | UNAUTHORIZED = 'UNAUTHORIZED',
82 | UNAVAILABLE_FOR_LEGAL_REASONS = 'UNAVAILABLE_FOR_LEGAL_REASONS',
83 | UNPROCESSABLE_ENTITY = 'UNPROCESSABLE_ENTITY',
84 | UNSUPPORTED_MEDIA_TYPE = 'UNSUPPORTED_MEDIA_TYPE',
85 | UPGRADE_REQUIRED = 'UPGRADE_REQUIRED',
86 | URI_TOO_LONG = 'URI_TOO_LONG',
87 | USE_PROXY = 'USE_PROXY',
88 | VARIANT_ALSO_NEGOTIATES = 'VARIANT_ALSO_NEGOTIATES',
89 | }
90 |
91 |
92 | }
93 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/MonthReport.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type MonthReport = {
7 | id?: number;
8 | monthContent?: string;
9 | monthTitle?: string;
10 | type?: string;
11 | };
12 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/OrderItem.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type OrderItem = {
7 | asc?: boolean;
8 | column?: string;
9 | };
10 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/Page_BasicInformation_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { BasicInformation } from './BasicInformation';
7 | import type { OrderItem } from './OrderItem';
8 |
9 | export type Page_BasicInformation_ = {
10 | countId?: string;
11 | current?: number;
12 | maxLimit?: number;
13 | optimizeCountSql?: boolean;
14 | orders?: Array;
15 | pages?: number;
16 | records?: Array;
17 | searchCount?: boolean;
18 | size?: number;
19 | total?: number;
20 | };
21 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/Page_ClockInInfo_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { ClockInInfo } from './ClockInInfo';
7 | import type { OrderItem } from './OrderItem';
8 |
9 | export type Page_ClockInInfo_ = {
10 | countId?: string;
11 | current?: number;
12 | maxLimit?: number;
13 | optimizeCountSql?: boolean;
14 | orders?: Array;
15 | pages?: number;
16 | records?: Array;
17 | searchCount?: boolean;
18 | size?: number;
19 | total?: number;
20 | };
21 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/Page_ClockReport_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { ClockReport } from './ClockReport';
7 | import type { OrderItem } from './OrderItem';
8 |
9 | export type Page_ClockReport_ = {
10 | countId?: string;
11 | current?: number;
12 | maxLimit?: number;
13 | optimizeCountSql?: boolean;
14 | orders?: Array;
15 | pages?: number;
16 | records?: Array;
17 | searchCount?: boolean;
18 | size?: number;
19 | total?: number;
20 | };
21 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/Page_CoinDetail_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { CoinDetail } from './CoinDetail';
7 | import type { OrderItem } from './OrderItem';
8 |
9 | export type Page_CoinDetail_ = {
10 | countId?: string;
11 | current?: number;
12 | maxLimit?: number;
13 | optimizeCountSql?: boolean;
14 | orders?: Array;
15 | pages?: number;
16 | records?: Array;
17 | searchCount?: boolean;
18 | size?: number;
19 | total?: number;
20 | };
21 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/Page_DailyCheckIn_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { DailyCheckIn } from './DailyCheckIn';
7 | import type { OrderItem } from './OrderItem';
8 |
9 | export type Page_DailyCheckIn_ = {
10 | countId?: string;
11 | current?: number;
12 | maxLimit?: number;
13 | optimizeCountSql?: boolean;
14 | orders?: Array;
15 | pages?: number;
16 | records?: Array;
17 | searchCount?: boolean;
18 | size?: number;
19 | total?: number;
20 | };
21 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/Page_PlatformInfo_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { OrderItem } from './OrderItem';
7 | import type { PlatformInfo } from './PlatformInfo';
8 |
9 | export type Page_PlatformInfo_ = {
10 | countId?: string;
11 | current?: number;
12 | maxLimit?: number;
13 | optimizeCountSql?: boolean;
14 | orders?: Array;
15 | pages?: number;
16 | records?: Array;
17 | searchCount?: boolean;
18 | size?: number;
19 | total?: number;
20 | };
21 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/Page_ProductInfo_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { OrderItem } from './OrderItem';
7 | import type { ProductInfo } from './ProductInfo';
8 |
9 | export type Page_ProductInfo_ = {
10 | countId?: string;
11 | current?: number;
12 | maxLimit?: number;
13 | optimizeCountSql?: boolean;
14 | orders?: Array;
15 | pages?: number;
16 | records?: Array;
17 | searchCount?: boolean;
18 | size?: number;
19 | total?: number;
20 | };
21 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/Page_UserVO_.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { OrderItem } from './OrderItem';
7 | import type { UserVO } from './UserVO';
8 |
9 | export type Page_UserVO_ = {
10 | countId?: string;
11 | current?: number;
12 | maxLimit?: number;
13 | optimizeCountSql?: boolean;
14 | orders?: Array;
15 | pages?: number;
16 | records?: Array;
17 | searchCount?: boolean;
18 | size?: number;
19 | total?: number;
20 | };
21 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/PlatformInfo.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type PlatformInfo = {
7 | clockType?: string;
8 | coin?: number;
9 | createTime?: string;
10 | id?: number;
11 | isDelete?: number;
12 | name?: string;
13 | settleDown?: number;
14 | status?: number;
15 | timeType?: string;
16 | updateTime?: string;
17 | url?: string;
18 | userId?: number;
19 | };
20 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/PlatformInfoAddRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type PlatformInfoAddRequest = {
7 | clockType?: string;
8 | coin?: number;
9 | name?: string;
10 | status?: number;
11 | timeType?: string;
12 | url?: string;
13 | };
14 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/PlatformInfoQueryRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type PlatformInfoQueryRequest = {
7 | clockType?: string;
8 | current?: number;
9 | id?: number;
10 | name?: string;
11 | pageSize?: number;
12 | sortField?: string;
13 | sortOrder?: string;
14 | };
15 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/PlatformInfoUpdateRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type PlatformInfoUpdateRequest = {
7 | clockType?: string;
8 | coin?: number;
9 | id?: number;
10 | name?: string;
11 | status?: number;
12 | timeType?: string;
13 | url?: string;
14 | };
15 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/ProductInfo.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type ProductInfo = {
7 | addCoin?: number;
8 | amount?: number;
9 | coinName?: string;
10 | createTime?: string;
11 | id?: number;
12 | isDelete?: number;
13 | status?: number;
14 | updateTime?: string;
15 | userId?: number;
16 | };
17 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/ProductInfoAddRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type ProductInfoAddRequest = {
7 | addCoin?: number;
8 | amount?: number;
9 | coinName?: string;
10 | status?: number;
11 | };
12 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/ProductInfoQueryRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type ProductInfoQueryRequest = {
7 | addCoin?: number;
8 | amount?: number;
9 | coinName?: string;
10 | current?: number;
11 | id?: number;
12 | pageSize?: number;
13 | sortField?: string;
14 | sortOrder?: string;
15 | status?: number;
16 | userId?: number;
17 | };
18 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/ProductInfoUpdateRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type ProductInfoUpdateRequest = {
7 | addCoin?: number;
8 | amount?: number;
9 | coinName?: string;
10 | id?: number;
11 | status?: number;
12 | userId?: number;
13 | };
14 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/Report.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | import type { DayReport } from './DayReport';
7 | import type { MonthReport } from './MonthReport';
8 | import type { WeekReport } from './WeekReport';
9 |
10 | export type Report = {
11 | dayReport?: DayReport;
12 | monthReport?: MonthReport;
13 | weekReport?: WeekReport;
14 | };
15 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/SupplementaryReportRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type SupplementaryReportRequest = {
7 | endTime?: string;
8 | id?: string;
9 | platformType?: string;
10 | reportAddress?: string;
11 | startTime?: string;
12 | type?: string;
13 | };
14 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/TransferCoinRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type TransferCoinRequest = {
7 | coin?: number;
8 | userAccount?: string;
9 | };
10 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/User.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type User = {
7 | coin?: number;
8 | createTime?: string;
9 | email?: string;
10 | id?: number;
11 | isDelete?: number;
12 | updateTime?: string;
13 | userAccount?: string;
14 | userName?: string;
15 | userPassword?: string;
16 | userRole?: string;
17 | };
18 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/UserAddRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type UserAddRequest = {
7 | coin?: number;
8 | userAccount?: string;
9 | userName?: string;
10 | userPassword?: string;
11 | userRole?: string;
12 | };
13 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/UserBindEmailRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type UserBindEmailRequest = {
7 | captcha?: string;
8 | emailAccount?: string;
9 | };
10 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/UserLoginRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type UserLoginRequest = {
7 | userAccount?: string;
8 | userPassword?: string;
9 | };
10 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/UserRegisterRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type UserRegisterRequest = {
7 | checkPassword?: string;
8 | userAccount?: string;
9 | userName?: string;
10 | userPassword?: string;
11 | };
12 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/UserUnBindEmailRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type UserUnBindEmailRequest = {
7 | captcha?: string;
8 | emailAccount?: string;
9 | };
10 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/UserUpdateRequest.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type UserUpdateRequest = {
7 | coin?: number;
8 | id?: number;
9 | userAccount?: string;
10 | userName?: string;
11 | userPassword?: string;
12 | userRole?: string;
13 | };
14 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/UserVO.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type UserVO = {
7 | coin?: number;
8 | createTime?: string;
9 | email?: string;
10 | id?: number;
11 | updateTime?: string;
12 | userAccount?: string;
13 | userName?: string;
14 | userRole?: string;
15 | };
16 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/View.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type View = {
7 | contentType?: string;
8 | };
9 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/models/WeekReport.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 |
6 | export type WeekReport = {
7 | id?: number;
8 | type?: string;
9 | weekContent?: string;
10 | weekTitle?: string;
11 | };
12 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/services/BasicErrorControllerService.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 | import type { CancelablePromise } from '../core/CancelablePromise';
6 | import { OpenAPI } from '../core/OpenAPI';
7 | import { request as __request } from '../core/request';
8 |
9 | export class BasicErrorControllerService {
10 |
11 | /**
12 | * error
13 | * @returns any OK
14 | * @throws ApiError
15 | */
16 | public static errorUsingGet(): CancelablePromise>> {
17 | return __request(OpenAPI, {
18 | method: 'GET',
19 | url: '/api/error',
20 | errors: {
21 | 401: `Unauthorized`,
22 | 403: `Forbidden`,
23 | 404: `Not Found`,
24 | },
25 | });
26 | }
27 |
28 | /**
29 | * error
30 | * @returns any OK
31 | * @throws ApiError
32 | */
33 | public static errorUsingPut(): CancelablePromise>> {
34 | return __request(OpenAPI, {
35 | method: 'PUT',
36 | url: '/api/error',
37 | errors: {
38 | 401: `Unauthorized`,
39 | 403: `Forbidden`,
40 | 404: `Not Found`,
41 | },
42 | });
43 | }
44 |
45 | /**
46 | * error
47 | * @returns any OK
48 | * @throws ApiError
49 | */
50 | public static errorUsingPost(): CancelablePromise>> {
51 | return __request(OpenAPI, {
52 | method: 'POST',
53 | url: '/api/error',
54 | errors: {
55 | 401: `Unauthorized`,
56 | 403: `Forbidden`,
57 | 404: `Not Found`,
58 | },
59 | });
60 | }
61 |
62 | /**
63 | * error
64 | * @returns any OK
65 | * @throws ApiError
66 | */
67 | public static errorUsingDelete(): CancelablePromise>> {
68 | return __request(OpenAPI, {
69 | method: 'DELETE',
70 | url: '/api/error',
71 | errors: {
72 | 401: `Unauthorized`,
73 | 403: `Forbidden`,
74 | },
75 | });
76 | }
77 |
78 | /**
79 | * error
80 | * @returns any OK
81 | * @throws ApiError
82 | */
83 | public static errorUsingOptions(): CancelablePromise>> {
84 | return __request(OpenAPI, {
85 | method: 'OPTIONS',
86 | url: '/api/error',
87 | errors: {
88 | 401: `Unauthorized`,
89 | 403: `Forbidden`,
90 | },
91 | });
92 | }
93 |
94 | /**
95 | * error
96 | * @returns any OK
97 | * @throws ApiError
98 | */
99 | public static errorUsingHead(): CancelablePromise>> {
100 | return __request(OpenAPI, {
101 | method: 'HEAD',
102 | url: '/api/error',
103 | errors: {
104 | 401: `Unauthorized`,
105 | 403: `Forbidden`,
106 | },
107 | });
108 | }
109 |
110 | /**
111 | * error
112 | * @returns any OK
113 | * @throws ApiError
114 | */
115 | public static errorUsingPatch(): CancelablePromise>> {
116 | return __request(OpenAPI, {
117 | method: 'PATCH',
118 | url: '/api/error',
119 | errors: {
120 | 401: `Unauthorized`,
121 | 403: `Forbidden`,
122 | },
123 | });
124 | }
125 |
126 | }
127 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/services/BasicInformationControllerService.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 | import type { BaseResponse_BasicInformation_ } from '../models/BaseResponse_BasicInformation_';
6 | import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_';
7 | import type { BaseResponse_List_BasicInformation_ } from '../models/BaseResponse_List_BasicInformation_';
8 | import type { BaseResponse_long_ } from '../models/BaseResponse_long_';
9 | import type { BaseResponse_Page_BasicInformation_ } from '../models/BaseResponse_Page_BasicInformation_';
10 | import type { BasicInformationAddRequest } from '../models/BasicInformationAddRequest';
11 | import type { BasicInformationQueryRequest } from '../models/BasicInformationQueryRequest';
12 | import type { BasicInformationUpdateRequest } from '../models/BasicInformationUpdateRequest';
13 | import type { DeleteRequest } from '../models/DeleteRequest';
14 |
15 | import type { CancelablePromise } from '../core/CancelablePromise';
16 | import { OpenAPI } from '../core/OpenAPI';
17 | import { request as __request } from '../core/request';
18 |
19 | export class BasicInformationControllerService {
20 |
21 | /**
22 | * addBasicInformation
23 | * @param requestBody
24 | * @returns BaseResponse_long_ OK
25 | * @returns any Created
26 | * @throws ApiError
27 | */
28 | public static addBasicInformationUsingPost(
29 | requestBody?: BasicInformationAddRequest,
30 | ): CancelablePromise {
31 | return __request(OpenAPI, {
32 | method: 'POST',
33 | url: '/api/basicInformation/add',
34 | body: requestBody,
35 | mediaType: 'application/json',
36 | errors: {
37 | 401: `Unauthorized`,
38 | 403: `Forbidden`,
39 | 404: `Not Found`,
40 | },
41 | });
42 | }
43 |
44 | /**
45 | * deleteBasicInformation
46 | * @param requestBody
47 | * @returns BaseResponse_boolean_ OK
48 | * @returns any Created
49 | * @throws ApiError
50 | */
51 | public static deleteBasicInformationUsingPost(
52 | requestBody?: DeleteRequest,
53 | ): CancelablePromise {
54 | return __request(OpenAPI, {
55 | method: 'POST',
56 | url: '/api/basicInformation/delete',
57 | body: requestBody,
58 | mediaType: 'application/json',
59 | errors: {
60 | 401: `Unauthorized`,
61 | 403: `Forbidden`,
62 | 404: `Not Found`,
63 | },
64 | });
65 | }
66 |
67 | /**
68 | * getBasicInformationById
69 | * @param id id
70 | * @returns BaseResponse_BasicInformation_ OK
71 | * @throws ApiError
72 | */
73 | public static getBasicInformationByIdUsingGet(
74 | id?: string,
75 | ): CancelablePromise {
76 | return __request(OpenAPI, {
77 | method: 'GET',
78 | url: '/api/basicInformation/get',
79 | query: {
80 | 'id': id,
81 | },
82 | errors: {
83 | 401: `Unauthorized`,
84 | 403: `Forbidden`,
85 | 404: `Not Found`,
86 | },
87 | });
88 | }
89 |
90 | /**
91 | * listBasicInformation
92 | * @param addCoin
93 | * @param amount
94 | * @param coinName
95 | * @param current
96 | * @param id
97 | * @param noticeBar
98 | * @param pageSize
99 | * @param pointsNotification
100 | * @param sortField
101 | * @param sortOrder
102 | * @param status
103 | * @param userId
104 | * @returns BaseResponse_List_BasicInformation_ OK
105 | * @throws ApiError
106 | */
107 | public static listBasicInformationUsingGet(
108 | addCoin?: number,
109 | amount?: number,
110 | coinName?: string,
111 | current?: number,
112 | id?: number,
113 | noticeBar?: string,
114 | pageSize?: number,
115 | pointsNotification?: string,
116 | sortField?: string,
117 | sortOrder?: string,
118 | status?: number,
119 | userId?: number,
120 | ): CancelablePromise {
121 | return __request(OpenAPI, {
122 | method: 'GET',
123 | url: '/api/basicInformation/list',
124 | query: {
125 | 'addCoin': addCoin,
126 | 'amount': amount,
127 | 'coinName': coinName,
128 | 'current': current,
129 | 'id': id,
130 | 'noticeBar': noticeBar,
131 | 'pageSize': pageSize,
132 | 'pointsNotification': pointsNotification,
133 | 'sortField': sortField,
134 | 'sortOrder': sortOrder,
135 | 'status': status,
136 | 'userId': userId,
137 | },
138 | errors: {
139 | 401: `Unauthorized`,
140 | 403: `Forbidden`,
141 | 404: `Not Found`,
142 | },
143 | });
144 | }
145 |
146 | /**
147 | * listBasicInformationByPage
148 | * @param requestBody
149 | * @returns BaseResponse_Page_BasicInformation_ OK
150 | * @returns any Created
151 | * @throws ApiError
152 | */
153 | public static listBasicInformationByPageUsingPost(
154 | requestBody?: BasicInformationQueryRequest,
155 | ): CancelablePromise {
156 | return __request(OpenAPI, {
157 | method: 'POST',
158 | url: '/api/basicInformation/list/page',
159 | body: requestBody,
160 | mediaType: 'application/json',
161 | errors: {
162 | 401: `Unauthorized`,
163 | 403: `Forbidden`,
164 | 404: `Not Found`,
165 | },
166 | });
167 | }
168 |
169 | /**
170 | * updateBasicInformation
171 | * @param requestBody
172 | * @returns BaseResponse_BasicInformation_ OK
173 | * @returns any Created
174 | * @throws ApiError
175 | */
176 | public static updateBasicInformationUsingPost(
177 | requestBody?: BasicInformationUpdateRequest,
178 | ): CancelablePromise {
179 | return __request(OpenAPI, {
180 | method: 'POST',
181 | url: '/api/basicInformation/update',
182 | body: requestBody,
183 | mediaType: 'application/json',
184 | errors: {
185 | 401: `Unauthorized`,
186 | 403: `Forbidden`,
187 | 404: `Not Found`,
188 | },
189 | });
190 | }
191 |
192 | }
193 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/services/ClockInControllerService.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 | import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_';
6 | import type { BaseResponse_ClockInInfoVo_ } from '../models/BaseResponse_ClockInInfoVo_';
7 | import type { BaseResponse_InitClockInfo_ } from '../models/BaseResponse_InitClockInfo_';
8 | import type { IdRequest } from '../models/IdRequest';
9 | import type { SupplementaryReportRequest } from '../models/SupplementaryReportRequest';
10 |
11 | import type { CancelablePromise } from '../core/CancelablePromise';
12 | import { OpenAPI } from '../core/OpenAPI';
13 | import { request as __request } from '../core/request';
14 |
15 | export class ClockInControllerService {
16 |
17 | /**
18 | * doSupplementaryReport
19 | * @param requestBody
20 | * @returns BaseResponse_boolean_ OK
21 | * @returns any Created
22 | * @throws ApiError
23 | */
24 | public static doSupplementaryReportUsingPost(
25 | requestBody?: SupplementaryReportRequest,
26 | ): CancelablePromise {
27 | return __request(OpenAPI, {
28 | method: 'POST',
29 | url: '/api/ClockIn/doSupplementaryReport',
30 | body: requestBody,
31 | mediaType: 'application/json',
32 | errors: {
33 | 401: `Unauthorized`,
34 | 403: `Forbidden`,
35 | 404: `Not Found`,
36 | },
37 | });
38 | }
39 |
40 | /**
41 | * getChangeClonkAddressInfo
42 | * @param address address
43 | * @param type type
44 | * @returns BaseResponse_ClockInInfoVo_ OK
45 | * @returns any Created
46 | * @throws ApiError
47 | */
48 | public static getChangeClonkAddressInfoUsingPost(
49 | address?: string,
50 | type?: string,
51 | ): CancelablePromise {
52 | return __request(OpenAPI, {
53 | method: 'POST',
54 | url: '/api/ClockIn/get/change/clonkAddressInfo',
55 | query: {
56 | 'address': address,
57 | 'type': type,
58 | },
59 | errors: {
60 | 401: `Unauthorized`,
61 | 403: `Forbidden`,
62 | 404: `Not Found`,
63 | },
64 | });
65 | }
66 |
67 | /**
68 | * initClockInfo
69 | * @param password
70 | * @param phone
71 | * @param phoneType
72 | * @param type
73 | * @returns BaseResponse_InitClockInfo_ OK
74 | * @returns any Created
75 | * @throws ApiError
76 | */
77 | public static initClockInfoUsingPost(
78 | password?: string,
79 | phone?: string,
80 | phoneType?: string,
81 | type?: string,
82 | ): CancelablePromise {
83 | return __request(OpenAPI, {
84 | method: 'POST',
85 | url: '/api/ClockIn/get/init/clockInfo',
86 | query: {
87 | 'password': password,
88 | 'phone': phone,
89 | 'phoneType': phoneType,
90 | 'type': type,
91 | },
92 | errors: {
93 | 401: `Unauthorized`,
94 | 403: `Forbidden`,
95 | 404: `Not Found`,
96 | },
97 | });
98 | }
99 |
100 | /**
101 | * startingClockIn
102 | * @param requestBody
103 | * @returns BaseResponse_boolean_ OK
104 | * @returns any Created
105 | * @throws ApiError
106 | */
107 | public static startingClockInUsingPost(
108 | requestBody?: IdRequest,
109 | ): CancelablePromise {
110 | return __request(OpenAPI, {
111 | method: 'POST',
112 | url: '/api/ClockIn/starting',
113 | body: requestBody,
114 | mediaType: 'application/json',
115 | errors: {
116 | 401: `Unauthorized`,
117 | 403: `Forbidden`,
118 | 404: `Not Found`,
119 | },
120 | });
121 | }
122 |
123 | /**
124 | * stopClockIn
125 | * @param requestBody
126 | * @returns BaseResponse_boolean_ OK
127 | * @returns any Created
128 | * @throws ApiError
129 | */
130 | public static stopClockInUsingPost(
131 | requestBody?: IdRequest,
132 | ): CancelablePromise {
133 | return __request(OpenAPI, {
134 | method: 'POST',
135 | url: '/api/ClockIn/stop',
136 | body: requestBody,
137 | mediaType: 'application/json',
138 | errors: {
139 | 401: `Unauthorized`,
140 | 403: `Forbidden`,
141 | 404: `Not Found`,
142 | },
143 | });
144 | }
145 |
146 | /**
147 | * supplementClockIn
148 | * @param requestBody
149 | * @returns BaseResponse_boolean_ OK
150 | * @returns any Created
151 | * @throws ApiError
152 | */
153 | public static supplementClockInUsingPost(
154 | requestBody?: IdRequest,
155 | ): CancelablePromise {
156 | return __request(OpenAPI, {
157 | method: 'POST',
158 | url: '/api/ClockIn/supplementClockIn',
159 | body: requestBody,
160 | mediaType: 'application/json',
161 | errors: {
162 | 401: `Unauthorized`,
163 | 403: `Forbidden`,
164 | 404: `Not Found`,
165 | },
166 | });
167 | }
168 |
169 | }
170 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/services/ClockInInfoControllerService.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 | import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_';
6 | import type { BaseResponse_ClockInInfoVo_ } from '../models/BaseResponse_ClockInInfoVo_';
7 | import type { BaseResponse_List_ClockInInfo_ } from '../models/BaseResponse_List_ClockInInfo_';
8 | import type { BaseResponse_long_ } from '../models/BaseResponse_long_';
9 | import type { BaseResponse_Page_ClockInInfo_ } from '../models/BaseResponse_Page_ClockInInfo_';
10 | import type { ClockInInfoAddRequest } from '../models/ClockInInfoAddRequest';
11 | import type { ClockInInfoQueryRequest } from '../models/ClockInInfoQueryRequest';
12 | import type { ClockInInfoUpdateRequest } from '../models/ClockInInfoUpdateRequest';
13 | import type { DeleteRequest } from '../models/DeleteRequest';
14 |
15 | import type { CancelablePromise } from '../core/CancelablePromise';
16 | import { OpenAPI } from '../core/OpenAPI';
17 | import { request as __request } from '../core/request';
18 |
19 | export class ClockInInfoControllerService {
20 |
21 | /**
22 | * addClockInInfo
23 | * @param requestBody
24 | * @returns BaseResponse_long_ OK
25 | * @returns any Created
26 | * @throws ApiError
27 | */
28 | public static addClockInInfoUsingPost(
29 | requestBody?: ClockInInfoAddRequest,
30 | ): CancelablePromise {
31 | return __request(OpenAPI, {
32 | method: 'POST',
33 | url: '/api/clockInInfo/add',
34 | body: requestBody,
35 | mediaType: 'application/json',
36 | errors: {
37 | 401: `Unauthorized`,
38 | 403: `Forbidden`,
39 | 404: `Not Found`,
40 | },
41 | });
42 | }
43 |
44 | /**
45 | * deleteClockInInfo
46 | * @param requestBody
47 | * @returns BaseResponse_boolean_ OK
48 | * @returns any Created
49 | * @throws ApiError
50 | */
51 | public static deleteClockInInfoUsingPost(
52 | requestBody?: DeleteRequest,
53 | ): CancelablePromise {
54 | return __request(OpenAPI, {
55 | method: 'POST',
56 | url: '/api/clockInInfo/delete',
57 | body: requestBody,
58 | mediaType: 'application/json',
59 | errors: {
60 | 401: `Unauthorized`,
61 | 403: `Forbidden`,
62 | 404: `Not Found`,
63 | },
64 | });
65 | }
66 |
67 | /**
68 | * getClockInInfoById
69 | * @param id id
70 | * @returns BaseResponse_ClockInInfoVo_ OK
71 | * @throws ApiError
72 | */
73 | public static getClockInInfoByIdUsingGet(
74 | id?: string,
75 | ): CancelablePromise {
76 | return __request(OpenAPI, {
77 | method: 'GET',
78 | url: '/api/clockInInfo/get',
79 | query: {
80 | 'id': id,
81 | },
82 | errors: {
83 | 401: `Unauthorized`,
84 | 403: `Forbidden`,
85 | 404: `Not Found`,
86 | },
87 | });
88 | }
89 |
90 | /**
91 | * listClockInInfo
92 | * @param clockAddress
93 | * @param clockDays
94 | * @param clockStatus
95 | * @param clockType
96 | * @param clockedSuccessDays
97 | * @param current
98 | * @param dailyNewspaperStatus
99 | * @param device
100 | * @param email
101 | * @param id
102 | * @param jobAddress
103 | * @param jobName
104 | * @param latitude
105 | * @param longitude
106 | * @param monthNewspaperStatus
107 | * @param pageSize
108 | * @param password
109 | * @param phone
110 | * @param platformId
111 | * @param pushToken
112 | * @param reportSource
113 | * @param searchText
114 | * @param selectClockDay
115 | * @param sortField
116 | * @param sortOrder
117 | * @param tagType
118 | * @param type
119 | * @param userId
120 | * @param weekNewspaperStatus
121 | * @returns BaseResponse_List_ClockInInfo_ OK
122 | * @throws ApiError
123 | */
124 | public static listClockInInfoUsingGet(
125 | clockAddress?: string,
126 | clockDays?: number,
127 | clockStatus?: number,
128 | clockType?: string,
129 | clockedSuccessDays?: number,
130 | current?: number,
131 | dailyNewspaperStatus?: number,
132 | device?: string,
133 | email?: string,
134 | id?: number,
135 | jobAddress?: string,
136 | jobName?: string,
137 | latitude?: string,
138 | longitude?: string,
139 | monthNewspaperStatus?: number,
140 | pageSize?: number,
141 | password?: string,
142 | phone?: string,
143 | platformId?: number,
144 | pushToken?: string,
145 | reportSource?: number,
146 | searchText?: string,
147 | selectClockDay?: string,
148 | sortField?: string,
149 | sortOrder?: string,
150 | tagType?: string,
151 | type?: string,
152 | userId?: number,
153 | weekNewspaperStatus?: number,
154 | ): CancelablePromise {
155 | return __request(OpenAPI, {
156 | method: 'GET',
157 | url: '/api/clockInInfo/list',
158 | query: {
159 | 'clockAddress': clockAddress,
160 | 'clockDays': clockDays,
161 | 'clockStatus': clockStatus,
162 | 'clockType': clockType,
163 | 'clockedSuccessDays': clockedSuccessDays,
164 | 'current': current,
165 | 'dailyNewspaperStatus': dailyNewspaperStatus,
166 | 'device': device,
167 | 'email': email,
168 | 'id': id,
169 | 'jobAddress': jobAddress,
170 | 'jobName': jobName,
171 | 'latitude': latitude,
172 | 'longitude': longitude,
173 | 'monthNewspaperStatus': monthNewspaperStatus,
174 | 'pageSize': pageSize,
175 | 'password': password,
176 | 'phone': phone,
177 | 'platformId': platformId,
178 | 'pushToken': pushToken,
179 | 'reportSource': reportSource,
180 | 'searchText': searchText,
181 | 'selectClockDay': selectClockDay,
182 | 'sortField': sortField,
183 | 'sortOrder': sortOrder,
184 | 'tagType': tagType,
185 | 'type': type,
186 | 'userId': userId,
187 | 'weekNewspaperStatus': weekNewspaperStatus,
188 | },
189 | errors: {
190 | 401: `Unauthorized`,
191 | 403: `Forbidden`,
192 | 404: `Not Found`,
193 | },
194 | });
195 | }
196 |
197 | /**
198 | * listMyClockInInfoByPage
199 | * @param clockAddress
200 | * @param clockDays
201 | * @param clockStatus
202 | * @param clockType
203 | * @param clockedSuccessDays
204 | * @param current
205 | * @param dailyNewspaperStatus
206 | * @param device
207 | * @param email
208 | * @param id
209 | * @param jobAddress
210 | * @param jobName
211 | * @param latitude
212 | * @param longitude
213 | * @param monthNewspaperStatus
214 | * @param pageSize
215 | * @param password
216 | * @param phone
217 | * @param platformId
218 | * @param pushToken
219 | * @param reportSource
220 | * @param searchText
221 | * @param selectClockDay
222 | * @param sortField
223 | * @param sortOrder
224 | * @param tagType
225 | * @param type
226 | * @param userId
227 | * @param weekNewspaperStatus
228 | * @returns BaseResponse_Page_ClockInInfo_ OK
229 | * @throws ApiError
230 | */
231 | public static listMyClockInInfoByPageUsingGet(
232 | clockAddress?: string,
233 | clockDays?: number,
234 | clockStatus?: number,
235 | clockType?: string,
236 | clockedSuccessDays?: number,
237 | current?: number,
238 | dailyNewspaperStatus?: number,
239 | device?: string,
240 | email?: string,
241 | id?: number,
242 | jobAddress?: string,
243 | jobName?: string,
244 | latitude?: string,
245 | longitude?: string,
246 | monthNewspaperStatus?: number,
247 | pageSize?: number,
248 | password?: string,
249 | phone?: string,
250 | platformId?: number,
251 | pushToken?: string,
252 | reportSource?: number,
253 | searchText?: string,
254 | selectClockDay?: string,
255 | sortField?: string,
256 | sortOrder?: string,
257 | tagType?: string,
258 | type?: string,
259 | userId?: number,
260 | weekNewspaperStatus?: number,
261 | ): CancelablePromise {
262 | return __request(OpenAPI, {
263 | method: 'GET',
264 | url: '/api/clockInInfo/list/myClockInInfo',
265 | query: {
266 | 'clockAddress': clockAddress,
267 | 'clockDays': clockDays,
268 | 'clockStatus': clockStatus,
269 | 'clockType': clockType,
270 | 'clockedSuccessDays': clockedSuccessDays,
271 | 'current': current,
272 | 'dailyNewspaperStatus': dailyNewspaperStatus,
273 | 'device': device,
274 | 'email': email,
275 | 'id': id,
276 | 'jobAddress': jobAddress,
277 | 'jobName': jobName,
278 | 'latitude': latitude,
279 | 'longitude': longitude,
280 | 'monthNewspaperStatus': monthNewspaperStatus,
281 | 'pageSize': pageSize,
282 | 'password': password,
283 | 'phone': phone,
284 | 'platformId': platformId,
285 | 'pushToken': pushToken,
286 | 'reportSource': reportSource,
287 | 'searchText': searchText,
288 | 'selectClockDay': selectClockDay,
289 | 'sortField': sortField,
290 | 'sortOrder': sortOrder,
291 | 'tagType': tagType,
292 | 'type': type,
293 | 'userId': userId,
294 | 'weekNewspaperStatus': weekNewspaperStatus,
295 | },
296 | errors: {
297 | 401: `Unauthorized`,
298 | 403: `Forbidden`,
299 | 404: `Not Found`,
300 | },
301 | });
302 | }
303 |
304 | /**
305 | * listClockInInfoByPage
306 | * @param requestBody
307 | * @returns BaseResponse_Page_ClockInInfo_ OK
308 | * @returns any Created
309 | * @throws ApiError
310 | */
311 | public static listClockInInfoByPageUsingPost(
312 | requestBody?: ClockInInfoQueryRequest,
313 | ): CancelablePromise {
314 | return __request(OpenAPI, {
315 | method: 'POST',
316 | url: '/api/clockInInfo/list/page',
317 | body: requestBody,
318 | mediaType: 'application/json',
319 | errors: {
320 | 401: `Unauthorized`,
321 | 403: `Forbidden`,
322 | 404: `Not Found`,
323 | },
324 | });
325 | }
326 |
327 | /**
328 | * getClockInInfoByLoginUserId
329 | * @returns BaseResponse_ClockInInfoVo_ OK
330 | * @throws ApiError
331 | */
332 | public static getClockInInfoByLoginUserIdUsingGet(): CancelablePromise {
333 | return __request(OpenAPI, {
334 | method: 'GET',
335 | url: '/api/clockInInfo/login/get',
336 | errors: {
337 | 401: `Unauthorized`,
338 | 403: `Forbidden`,
339 | 404: `Not Found`,
340 | },
341 | });
342 | }
343 |
344 | /**
345 | * updateClockInInfo
346 | * @param requestBody
347 | * @returns BaseResponse_boolean_ OK
348 | * @returns any Created
349 | * @throws ApiError
350 | */
351 | public static updateClockInInfoUsingPost(
352 | requestBody?: ClockInInfoUpdateRequest,
353 | ): CancelablePromise {
354 | return __request(OpenAPI, {
355 | method: 'POST',
356 | url: '/api/clockInInfo/update',
357 | body: requestBody,
358 | mediaType: 'application/json',
359 | errors: {
360 | 401: `Unauthorized`,
361 | 403: `Forbidden`,
362 | 404: `Not Found`,
363 | },
364 | });
365 | }
366 |
367 | }
368 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/services/ClockReportControllerService.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 | import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_';
6 | import type { BaseResponse_ClockReport_ } from '../models/BaseResponse_ClockReport_';
7 | import type { BaseResponse_List_ClockReport_ } from '../models/BaseResponse_List_ClockReport_';
8 | import type { BaseResponse_long_ } from '../models/BaseResponse_long_';
9 | import type { BaseResponse_Page_ClockReport_ } from '../models/BaseResponse_Page_ClockReport_';
10 | import type { ClockReportAddRequest } from '../models/ClockReportAddRequest';
11 | import type { ClockReportQueryRequest } from '../models/ClockReportQueryRequest';
12 | import type { ClockReportUpdateRequest } from '../models/ClockReportUpdateRequest';
13 | import type { DeleteRequest } from '../models/DeleteRequest';
14 |
15 | import type { CancelablePromise } from '../core/CancelablePromise';
16 | import { OpenAPI } from '../core/OpenAPI';
17 | import { request as __request } from '../core/request';
18 |
19 | export class ClockReportControllerService {
20 |
21 | /**
22 | * addClockReport
23 | * @param requestBody
24 | * @returns BaseResponse_long_ OK
25 | * @returns any Created
26 | * @throws ApiError
27 | */
28 | public static addClockReportUsingPost(
29 | requestBody?: ClockReportAddRequest,
30 | ): CancelablePromise {
31 | return __request(OpenAPI, {
32 | method: 'POST',
33 | url: '/api/clockReport/add',
34 | body: requestBody,
35 | mediaType: 'application/json',
36 | errors: {
37 | 401: `Unauthorized`,
38 | 403: `Forbidden`,
39 | 404: `Not Found`,
40 | },
41 | });
42 | }
43 |
44 | /**
45 | * deleteClockReport
46 | * @param requestBody
47 | * @returns BaseResponse_boolean_ OK
48 | * @returns any Created
49 | * @throws ApiError
50 | */
51 | public static deleteClockReportUsingPost(
52 | requestBody?: DeleteRequest,
53 | ): CancelablePromise {
54 | return __request(OpenAPI, {
55 | method: 'POST',
56 | url: '/api/clockReport/delete',
57 | body: requestBody,
58 | mediaType: 'application/json',
59 | errors: {
60 | 401: `Unauthorized`,
61 | 403: `Forbidden`,
62 | 404: `Not Found`,
63 | },
64 | });
65 | }
66 |
67 | /**
68 | * getClockReportById
69 | * @param id id
70 | * @returns BaseResponse_ClockReport_ OK
71 | * @throws ApiError
72 | */
73 | public static getClockReportByIdUsingGet(
74 | id?: string,
75 | ): CancelablePromise {
76 | return __request(OpenAPI, {
77 | method: 'GET',
78 | url: '/api/clockReport/get',
79 | query: {
80 | 'id': id,
81 | },
82 | errors: {
83 | 401: `Unauthorized`,
84 | 403: `Forbidden`,
85 | 404: `Not Found`,
86 | },
87 | });
88 | }
89 |
90 | /**
91 | * listClockReport
92 | * @param content
93 | * @param current
94 | * @param id
95 | * @param jobName
96 | * @param pageSize
97 | * @param searchText
98 | * @param sortField
99 | * @param sortOrder
100 | * @param tagType
101 | * @returns BaseResponse_List_ClockReport_ OK
102 | * @throws ApiError
103 | */
104 | public static listClockReportUsingGet(
105 | content?: string,
106 | current?: number,
107 | id?: number,
108 | jobName?: string,
109 | pageSize?: number,
110 | searchText?: string,
111 | sortField?: string,
112 | sortOrder?: string,
113 | tagType?: string,
114 | ): CancelablePromise {
115 | return __request(OpenAPI, {
116 | method: 'GET',
117 | url: '/api/clockReport/list',
118 | query: {
119 | 'content': content,
120 | 'current': current,
121 | 'id': id,
122 | 'jobName': jobName,
123 | 'pageSize': pageSize,
124 | 'searchText': searchText,
125 | 'sortField': sortField,
126 | 'sortOrder': sortOrder,
127 | 'tagType': tagType,
128 | },
129 | errors: {
130 | 401: `Unauthorized`,
131 | 403: `Forbidden`,
132 | 404: `Not Found`,
133 | },
134 | });
135 | }
136 |
137 | /**
138 | * listClockReportByPage
139 | * @param requestBody
140 | * @returns BaseResponse_Page_ClockReport_ OK
141 | * @returns any Created
142 | * @throws ApiError
143 | */
144 | public static listClockReportByPageUsingPost(
145 | requestBody?: ClockReportQueryRequest,
146 | ): CancelablePromise {
147 | return __request(OpenAPI, {
148 | method: 'POST',
149 | url: '/api/clockReport/list/page',
150 | body: requestBody,
151 | mediaType: 'application/json',
152 | errors: {
153 | 401: `Unauthorized`,
154 | 403: `Forbidden`,
155 | 404: `Not Found`,
156 | },
157 | });
158 | }
159 |
160 | /**
161 | * updateClockReport
162 | * @param requestBody
163 | * @returns BaseResponse_boolean_ OK
164 | * @returns any Created
165 | * @throws ApiError
166 | */
167 | public static updateClockReportUsingPost(
168 | requestBody?: ClockReportUpdateRequest,
169 | ): CancelablePromise {
170 | return __request(OpenAPI, {
171 | method: 'POST',
172 | url: '/api/clockReport/update',
173 | body: requestBody,
174 | mediaType: 'application/json',
175 | errors: {
176 | 401: `Unauthorized`,
177 | 403: `Forbidden`,
178 | 404: `Not Found`,
179 | },
180 | });
181 | }
182 |
183 | }
184 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/services/CoinDetailControllerService.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 | import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_';
6 | import type { BaseResponse_CoinDetail_ } from '../models/BaseResponse_CoinDetail_';
7 | import type { BaseResponse_Page_CoinDetail_ } from '../models/BaseResponse_Page_CoinDetail_';
8 | import type { CoinDetailQueryRequest } from '../models/CoinDetailQueryRequest';
9 | import type { DeleteRequest } from '../models/DeleteRequest';
10 |
11 | import type { CancelablePromise } from '../core/CancelablePromise';
12 | import { OpenAPI } from '../core/OpenAPI';
13 | import { request as __request } from '../core/request';
14 |
15 | export class CoinDetailControllerService {
16 |
17 | /**
18 | * deleteCoinDetail
19 | * @param requestBody
20 | * @returns BaseResponse_boolean_ OK
21 | * @returns any Created
22 | * @throws ApiError
23 | */
24 | public static deleteCoinDetailUsingPost(
25 | requestBody?: DeleteRequest,
26 | ): CancelablePromise {
27 | return __request(OpenAPI, {
28 | method: 'POST',
29 | url: '/api/coinDetail/delete',
30 | body: requestBody,
31 | mediaType: 'application/json',
32 | errors: {
33 | 401: `Unauthorized`,
34 | 403: `Forbidden`,
35 | 404: `Not Found`,
36 | },
37 | });
38 | }
39 |
40 | /**
41 | * getCoinDetailById
42 | * @param id id
43 | * @returns BaseResponse_CoinDetail_ OK
44 | * @throws ApiError
45 | */
46 | public static getCoinDetailByIdUsingGet(
47 | id?: string,
48 | ): CancelablePromise {
49 | return __request(OpenAPI, {
50 | method: 'GET',
51 | url: '/api/coinDetail/get',
52 | query: {
53 | 'id': id,
54 | },
55 | errors: {
56 | 401: `Unauthorized`,
57 | 403: `Forbidden`,
58 | 404: `Not Found`,
59 | },
60 | });
61 | }
62 |
63 | /**
64 | * listCoinDetailByPage
65 | * @param requestBody
66 | * @returns BaseResponse_Page_CoinDetail_ OK
67 | * @returns any Created
68 | * @throws ApiError
69 | */
70 | public static listCoinDetailByPageUsingPost(
71 | requestBody?: CoinDetailQueryRequest,
72 | ): CancelablePromise {
73 | return __request(OpenAPI, {
74 | method: 'POST',
75 | url: '/api/coinDetail/list/page',
76 | body: requestBody,
77 | mediaType: 'application/json',
78 | errors: {
79 | 401: `Unauthorized`,
80 | 403: `Forbidden`,
81 | 404: `Not Found`,
82 | },
83 | });
84 | }
85 |
86 | }
87 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/services/DailyCheckInControllerService.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 | import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_';
6 | import type { BaseResponse_DailyCheckIn_ } from '../models/BaseResponse_DailyCheckIn_';
7 | import type { BaseResponse_Page_DailyCheckIn_ } from '../models/BaseResponse_Page_DailyCheckIn_';
8 | import type { DailyCheckInQueryRequest } from '../models/DailyCheckInQueryRequest';
9 | import type { DeleteRequest } from '../models/DeleteRequest';
10 |
11 | import type { CancelablePromise } from '../core/CancelablePromise';
12 | import { OpenAPI } from '../core/OpenAPI';
13 | import { request as __request } from '../core/request';
14 |
15 | export class DailyCheckInControllerService {
16 |
17 | /**
18 | * deleteDailyCheckIn
19 | * @param requestBody
20 | * @returns BaseResponse_boolean_ OK
21 | * @returns any Created
22 | * @throws ApiError
23 | */
24 | public static deleteDailyCheckInUsingPost(
25 | requestBody?: DeleteRequest,
26 | ): CancelablePromise {
27 | return __request(OpenAPI, {
28 | method: 'POST',
29 | url: '/api/dailyCheckIn/delete',
30 | body: requestBody,
31 | mediaType: 'application/json',
32 | errors: {
33 | 401: `Unauthorized`,
34 | 403: `Forbidden`,
35 | 404: `Not Found`,
36 | },
37 | });
38 | }
39 |
40 | /**
41 | * getDailyCheckInById
42 | * @param id id
43 | * @returns BaseResponse_DailyCheckIn_ OK
44 | * @throws ApiError
45 | */
46 | public static getDailyCheckInByIdUsingGet(
47 | id?: string,
48 | ): CancelablePromise {
49 | return __request(OpenAPI, {
50 | method: 'GET',
51 | url: '/api/dailyCheckIn/get',
52 | query: {
53 | 'id': id,
54 | },
55 | errors: {
56 | 401: `Unauthorized`,
57 | 403: `Forbidden`,
58 | 404: `Not Found`,
59 | },
60 | });
61 | }
62 |
63 | /**
64 | * listDailyCheckInByPage
65 | * @param requestBody
66 | * @returns BaseResponse_Page_DailyCheckIn_ OK
67 | * @returns any Created
68 | * @throws ApiError
69 | */
70 | public static listDailyCheckInByPageUsingPost(
71 | requestBody?: DailyCheckInQueryRequest,
72 | ): CancelablePromise {
73 | return __request(OpenAPI, {
74 | method: 'POST',
75 | url: '/api/dailyCheckIn/list/page',
76 | body: requestBody,
77 | mediaType: 'application/json',
78 | errors: {
79 | 401: `Unauthorized`,
80 | 403: `Forbidden`,
81 | 404: `Not Found`,
82 | },
83 | });
84 | }
85 |
86 | }
87 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/services/PlatformInfoControllerService.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 | import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_';
6 | import type { BaseResponse_List_PlatformInfo_ } from '../models/BaseResponse_List_PlatformInfo_';
7 | import type { BaseResponse_long_ } from '../models/BaseResponse_long_';
8 | import type { BaseResponse_Page_PlatformInfo_ } from '../models/BaseResponse_Page_PlatformInfo_';
9 | import type { BaseResponse_PlatformInfo_ } from '../models/BaseResponse_PlatformInfo_';
10 | import type { DeleteRequest } from '../models/DeleteRequest';
11 | import type { IdRequest } from '../models/IdRequest';
12 | import type { PlatformInfoAddRequest } from '../models/PlatformInfoAddRequest';
13 | import type { PlatformInfoQueryRequest } from '../models/PlatformInfoQueryRequest';
14 | import type { PlatformInfoUpdateRequest } from '../models/PlatformInfoUpdateRequest';
15 |
16 | import type { CancelablePromise } from '../core/CancelablePromise';
17 | import { OpenAPI } from '../core/OpenAPI';
18 | import { request as __request } from '../core/request';
19 |
20 | export class PlatformInfoControllerService {
21 |
22 | /**
23 | * addPlatformInfo
24 | * @param requestBody
25 | * @returns BaseResponse_long_ OK
26 | * @returns any Created
27 | * @throws ApiError
28 | */
29 | public static addPlatformInfoUsingPost(
30 | requestBody?: PlatformInfoAddRequest,
31 | ): CancelablePromise {
32 | return __request(OpenAPI, {
33 | method: 'POST',
34 | url: '/api/platformInfo/add',
35 | body: requestBody,
36 | mediaType: 'application/json',
37 | errors: {
38 | 401: `Unauthorized`,
39 | 403: `Forbidden`,
40 | 404: `Not Found`,
41 | },
42 | });
43 | }
44 |
45 | /**
46 | * deletePlatformInfo
47 | * @param requestBody
48 | * @returns BaseResponse_boolean_ OK
49 | * @returns any Created
50 | * @throws ApiError
51 | */
52 | public static deletePlatformInfoUsingPost(
53 | requestBody?: DeleteRequest,
54 | ): CancelablePromise {
55 | return __request(OpenAPI, {
56 | method: 'POST',
57 | url: '/api/platformInfo/delete',
58 | body: requestBody,
59 | mediaType: 'application/json',
60 | errors: {
61 | 401: `Unauthorized`,
62 | 403: `Forbidden`,
63 | 404: `Not Found`,
64 | },
65 | });
66 | }
67 |
68 | /**
69 | * getPlatformInfoById
70 | * @param id id
71 | * @returns BaseResponse_PlatformInfo_ OK
72 | * @throws ApiError
73 | */
74 | public static getPlatformInfoByIdUsingGet(
75 | id?: string,
76 | ): CancelablePromise {
77 | return __request(OpenAPI, {
78 | method: 'GET',
79 | url: '/api/platformInfo/get',
80 | query: {
81 | 'id': id,
82 | },
83 | errors: {
84 | 401: `Unauthorized`,
85 | 403: `Forbidden`,
86 | 404: `Not Found`,
87 | },
88 | });
89 | }
90 |
91 | /**
92 | * listPlatformInfo
93 | * @param clockType
94 | * @param current
95 | * @param id
96 | * @param name
97 | * @param pageSize
98 | * @param sortField
99 | * @param sortOrder
100 | * @returns BaseResponse_List_PlatformInfo_ OK
101 | * @throws ApiError
102 | */
103 | public static listPlatformInfoUsingGet(
104 | clockType?: string,
105 | current?: number,
106 | id?: number,
107 | name?: string,
108 | pageSize?: number,
109 | sortField?: string,
110 | sortOrder?: string,
111 | ): CancelablePromise {
112 | return __request(OpenAPI, {
113 | method: 'GET',
114 | url: '/api/platformInfo/list',
115 | query: {
116 | 'clockType': clockType,
117 | 'current': current,
118 | 'id': id,
119 | 'name': name,
120 | 'pageSize': pageSize,
121 | 'sortField': sortField,
122 | 'sortOrder': sortOrder,
123 | },
124 | errors: {
125 | 401: `Unauthorized`,
126 | 403: `Forbidden`,
127 | 404: `Not Found`,
128 | },
129 | });
130 | }
131 |
132 | /**
133 | * listMyPlatformInfoByPage
134 | * @param clockType
135 | * @param current
136 | * @param id
137 | * @param name
138 | * @param pageSize
139 | * @param sortField
140 | * @param sortOrder
141 | * @returns BaseResponse_Page_PlatformInfo_ OK
142 | * @throws ApiError
143 | */
144 | public static listMyPlatformInfoByPageUsingGet(
145 | clockType?: string,
146 | current?: number,
147 | id?: number,
148 | name?: string,
149 | pageSize?: number,
150 | sortField?: string,
151 | sortOrder?: string,
152 | ): CancelablePromise {
153 | return __request(OpenAPI, {
154 | method: 'GET',
155 | url: '/api/platformInfo/list/myPlatformInfo',
156 | query: {
157 | 'clockType': clockType,
158 | 'current': current,
159 | 'id': id,
160 | 'name': name,
161 | 'pageSize': pageSize,
162 | 'sortField': sortField,
163 | 'sortOrder': sortOrder,
164 | },
165 | errors: {
166 | 401: `Unauthorized`,
167 | 403: `Forbidden`,
168 | 404: `Not Found`,
169 | },
170 | });
171 | }
172 |
173 | /**
174 | * listPlatformInfoByPage
175 | * @param requestBody
176 | * @returns BaseResponse_Page_PlatformInfo_ OK
177 | * @returns any Created
178 | * @throws ApiError
179 | */
180 | public static listPlatformInfoByPageUsingPost(
181 | requestBody?: PlatformInfoQueryRequest,
182 | ): CancelablePromise {
183 | return __request(OpenAPI, {
184 | method: 'POST',
185 | url: '/api/platformInfo/list/page',
186 | body: requestBody,
187 | mediaType: 'application/json',
188 | errors: {
189 | 401: `Unauthorized`,
190 | 403: `Forbidden`,
191 | 404: `Not Found`,
192 | },
193 | });
194 | }
195 |
196 | /**
197 | * offlinePlatformInfo
198 | * @param requestBody
199 | * @returns BaseResponse_boolean_ OK
200 | * @returns any Created
201 | * @throws ApiError
202 | */
203 | public static offlinePlatformInfoUsingPost(
204 | requestBody?: IdRequest,
205 | ): CancelablePromise {
206 | return __request(OpenAPI, {
207 | method: 'POST',
208 | url: '/api/platformInfo/offline',
209 | body: requestBody,
210 | mediaType: 'application/json',
211 | errors: {
212 | 401: `Unauthorized`,
213 | 403: `Forbidden`,
214 | 404: `Not Found`,
215 | },
216 | });
217 | }
218 |
219 | /**
220 | * onlinePlatformInfo
221 | * @param requestBody
222 | * @returns BaseResponse_boolean_ OK
223 | * @returns any Created
224 | * @throws ApiError
225 | */
226 | public static onlinePlatformInfoUsingPost(
227 | requestBody?: IdRequest,
228 | ): CancelablePromise {
229 | return __request(OpenAPI, {
230 | method: 'POST',
231 | url: '/api/platformInfo/online',
232 | body: requestBody,
233 | mediaType: 'application/json',
234 | errors: {
235 | 401: `Unauthorized`,
236 | 403: `Forbidden`,
237 | 404: `Not Found`,
238 | },
239 | });
240 | }
241 |
242 | /**
243 | * updatePlatformInfo
244 | * @param requestBody
245 | * @returns BaseResponse_boolean_ OK
246 | * @returns any Created
247 | * @throws ApiError
248 | */
249 | public static updatePlatformInfoUsingPost(
250 | requestBody?: PlatformInfoUpdateRequest,
251 | ): CancelablePromise {
252 | return __request(OpenAPI, {
253 | method: 'POST',
254 | url: '/api/platformInfo/update',
255 | body: requestBody,
256 | mediaType: 'application/json',
257 | errors: {
258 | 401: `Unauthorized`,
259 | 403: `Forbidden`,
260 | 404: `Not Found`,
261 | },
262 | });
263 | }
264 |
265 | }
266 |
--------------------------------------------------------------------------------
/src/services/moguding-backend/services/ProductInfoControllerService.ts:
--------------------------------------------------------------------------------
1 | /* generated using openapi-typescript-codegen -- do no edit */
2 | /* istanbul ignore file */
3 | /* tslint:disable */
4 | /* eslint-disable */
5 | import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_';
6 | import type { BaseResponse_List_ProductInfo_ } from '../models/BaseResponse_List_ProductInfo_';
7 | import type { BaseResponse_long_ } from '../models/BaseResponse_long_';
8 | import type { BaseResponse_Page_ProductInfo_ } from '../models/BaseResponse_Page_ProductInfo_';
9 | import type { BaseResponse_ProductInfo_ } from '../models/BaseResponse_ProductInfo_';
10 | import type { DeleteRequest } from '../models/DeleteRequest';
11 | import type { IdRequest } from '../models/IdRequest';
12 | import type { ProductInfoAddRequest } from '../models/ProductInfoAddRequest';
13 | import type { ProductInfoQueryRequest } from '../models/ProductInfoQueryRequest';
14 | import type { ProductInfoUpdateRequest } from '../models/ProductInfoUpdateRequest';
15 |
16 | import type { CancelablePromise } from '../core/CancelablePromise';
17 | import { OpenAPI } from '../core/OpenAPI';
18 | import { request as __request } from '../core/request';
19 |
20 | export class ProductInfoControllerService {
21 |
22 | /**
23 | * addProductInfo
24 | * @param requestBody
25 | * @returns BaseResponse_long_ OK
26 | * @returns any Created
27 | * @throws ApiError
28 | */
29 | public static addProductInfoUsingPost(
30 | requestBody?: ProductInfoAddRequest,
31 | ): CancelablePromise {
32 | return __request(OpenAPI, {
33 | method: 'POST',
34 | url: '/api/productInfo/add',
35 | body: requestBody,
36 | mediaType: 'application/json',
37 | errors: {
38 | 401: `Unauthorized`,
39 | 403: `Forbidden`,
40 | 404: `Not Found`,
41 | },
42 | });
43 | }
44 |
45 | /**
46 | * deleteProductInfo
47 | * @param requestBody
48 | * @returns BaseResponse_boolean_ OK
49 | * @returns any Created
50 | * @throws ApiError
51 | */
52 | public static deleteProductInfoUsingPost(
53 | requestBody?: DeleteRequest,
54 | ): CancelablePromise {
55 | return __request(OpenAPI, {
56 | method: 'POST',
57 | url: '/api/productInfo/delete',
58 | body: requestBody,
59 | mediaType: 'application/json',
60 | errors: {
61 | 401: `Unauthorized`,
62 | 403: `Forbidden`,
63 | 404: `Not Found`,
64 | },
65 | });
66 | }
67 |
68 | /**
69 | * getProductInfoById
70 | * @param id id
71 | * @returns BaseResponse_ProductInfo_ OK
72 | * @throws ApiError
73 | */
74 | public static getProductInfoByIdUsingGet(
75 | id?: string,
76 | ): CancelablePromise {
77 | return __request(OpenAPI, {
78 | method: 'GET',
79 | url: '/api/productInfo/get',
80 | query: {
81 | 'id': id,
82 | },
83 | errors: {
84 | 401: `Unauthorized`,
85 | 403: `Forbidden`,
86 | 404: `Not Found`,
87 | },
88 | });
89 | }
90 |
91 | /**
92 | * listProductInfo
93 | * @param addCoin
94 | * @param amount
95 | * @param coinName
96 | * @param current
97 | * @param id
98 | * @param pageSize
99 | * @param sortField
100 | * @param sortOrder
101 | * @param status
102 | * @param userId
103 | * @returns BaseResponse_List_ProductInfo_ OK
104 | * @throws ApiError
105 | */
106 | public static listProductInfoUsingGet(
107 | addCoin?: number,
108 | amount?: number,
109 | coinName?: string,
110 | current?: number,
111 | id?: number,
112 | pageSize?: number,
113 | sortField?: string,
114 | sortOrder?: string,
115 | status?: number,
116 | userId?: number,
117 | ): CancelablePromise {
118 | return __request(OpenAPI, {
119 | method: 'GET',
120 | url: '/api/productInfo/list',
121 | query: {
122 | 'addCoin': addCoin,
123 | 'amount': amount,
124 | 'coinName': coinName,
125 | 'current': current,
126 | 'id': id,
127 | 'pageSize': pageSize,
128 | 'sortField': sortField,
129 | 'sortOrder': sortOrder,
130 | 'status': status,
131 | 'userId': userId,
132 | },
133 | errors: {
134 | 401: `Unauthorized`,
135 | 403: `Forbidden`,
136 | 404: `Not Found`,
137 | },
138 | });
139 | }
140 |
141 | /**
142 | * listProductInfoByPage
143 | * @param requestBody
144 | * @returns BaseResponse_Page_ProductInfo_ OK
145 | * @returns any Created
146 | * @throws ApiError
147 | */
148 | public static listProductInfoByPageUsingPost(
149 | requestBody?: ProductInfoQueryRequest,
150 | ): CancelablePromise {
151 | return __request(OpenAPI, {
152 | method: 'POST',
153 | url: '/api/productInfo/list/page',
154 | body: requestBody,
155 | mediaType: 'application/json',
156 | errors: {
157 | 401: `Unauthorized`,
158 | 403: `Forbidden`,
159 | 404: `Not Found`,
160 | },
161 | });
162 | }
163 |
164 | /**
165 | * offlineProductInfo
166 | * @param requestBody
167 | * @returns BaseResponse_boolean_ OK
168 | * @returns any Created
169 | * @throws ApiError
170 | */
171 | public static offlineProductInfoUsingPost(
172 | requestBody?: IdRequest,
173 | ): CancelablePromise {
174 | return __request(OpenAPI, {
175 | method: 'POST',
176 | url: '/api/productInfo/offline',
177 | body: requestBody,
178 | mediaType: 'application/json',
179 | errors: {
180 | 401: `Unauthorized`,
181 | 403: `Forbidden`,
182 | 404: `Not Found`,
183 | },
184 | });
185 | }
186 |
187 | /**
188 | * onlineProductInfo
189 | * @param requestBody
190 | * @returns BaseResponse_boolean_ OK
191 | * @returns any Created
192 | * @throws ApiError
193 | */
194 | public static onlineProductInfoUsingPost(
195 | requestBody?: IdRequest,
196 | ): CancelablePromise {
197 | return __request(OpenAPI, {
198 | method: 'POST',
199 | url: '/api/productInfo/online',
200 | body: requestBody,
201 | mediaType: 'application/json',
202 | errors: {
203 | 401: `Unauthorized`,
204 | 403: `Forbidden`,
205 | 404: `Not Found`,
206 | },
207 | });
208 | }
209 |
210 | /**
211 | * updateProductInfo
212 | * @param requestBody
213 | * @returns BaseResponse_boolean_ OK
214 | * @returns any Created
215 | * @throws ApiError
216 | */
217 | public static updateProductInfoUsingPost(
218 | requestBody?: ProductInfoUpdateRequest,
219 | ): CancelablePromise {
220 | return __request(OpenAPI, {
221 | method: 'POST',
222 | url: '/api/productInfo/update',
223 | body: requestBody,
224 | mediaType: 'application/json',
225 | errors: {
226 | 401: `Unauthorized`,
227 | 403: `Forbidden`,
228 | 404: `Not Found`,
229 | },
230 | });
231 | }
232 |
233 | }
234 |
--------------------------------------------------------------------------------
/src/stores/backupClockInfo.ts:
--------------------------------------------------------------------------------
1 | // @ts-check
2 | import {acceptHMRUpdate, defineStore} from 'pinia'
3 |
4 | /**
5 | * Simulate a login
6 | */
7 |
8 | export const useBackClockInfoStore = defineStore({
9 | id: 'clockInfo',
10 | state: () => ({
11 | clockList: [],
12 | backClockInfo: []
13 | })
14 | })
15 |
16 | if (import.meta.hot) {
17 | import.meta.hot.accept(acceptHMRUpdate(useBackClockInfoStore, import.meta.hot))
18 | }
19 |
--------------------------------------------------------------------------------
/src/stores/dialogRead.ts:
--------------------------------------------------------------------------------
1 | // @ts-check
2 | import {acceptHMRUpdate, defineStore} from 'pinia'
3 |
4 | /**
5 | * Simulate a login
6 | */
7 |
8 | export const useDialogStore = defineStore({
9 | id: 'dialog',
10 | state: () => ({
11 | isRead: false,
12 | mallRead: false,
13 | basicInformations:{}
14 | }), persist: {
15 | key: 'dialog',
16 | storage: sessionStorage,
17 | paths: ['isRead', 'mallRead'],
18 | },
19 | })
20 |
21 | if (import.meta.hot) {
22 | import.meta.hot.accept(acceptHMRUpdate(useDialogStore, import.meta.hot))
23 | }
24 |
--------------------------------------------------------------------------------
/src/stores/user.ts:
--------------------------------------------------------------------------------
1 | // @ts-check
2 | import {acceptHMRUpdate, defineStore} from 'pinia'
3 | import {UserControllerService, UserVO} from "../services/moguding-backend";
4 |
5 | export const useUserStore = defineStore({
6 | id: 'user',
7 | state: (): { loginUser: UserVO } => ({
8 | loginUser: {userName: null,}
9 | }),
10 |
11 | actions: {
12 | /**
13 | * Attempt to login a user
14 | */
15 | async login(userAccount: string, password: string) {
16 | const res = await UserControllerService.userLoginUsingPost(
17 | {userPassword: password, userAccount: userAccount}
18 | )
19 | if (res && res.code === 0) {
20 | this.$patch({
21 | loginUser: {
22 | ...res.data,
23 | }
24 | })
25 | } else {
26 | this.$patch({
27 | loginUser: {userRole: "notLogin"}
28 | })
29 | }
30 | return res
31 | },
32 | async getLoginUser() {
33 | const res = await UserControllerService.getLoginUserUsingGet();
34 | if (res && res.code === 0) {
35 | this.$patch({
36 | loginUser: {
37 | ...res.data,
38 | }
39 | })
40 | } else {
41 | this.$patch({
42 | loginUser: {
43 | userRole: "notLogin"
44 | }
45 | })
46 | }
47 | return res
48 | },
49 | },
50 | })
51 |
52 | if (import.meta.hot) {
53 | import.meta.hot.accept(acceptHMRUpdate(useUserStore, import.meta.hot))
54 | }
55 |
--------------------------------------------------------------------------------
/src/style.css:
--------------------------------------------------------------------------------
1 | @tailwind base;
2 | @tailwind components;
3 | @tailwind utilities;
4 |
--------------------------------------------------------------------------------
/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/tailwind.config.cjs:
--------------------------------------------------------------------------------
1 | /** @type {import('tailwindcss').Config} */
2 | module.exports = {
3 | content: ["./src/**/*.{html,js,vue}"],
4 | theme: {
5 | extend: {},
6 | },
7 | plugins: [],
8 | }
9 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "ES2020",
4 | "useDefineForClassFields": true,
5 | "module": "ESNext",
6 | "lib": ["ES2020", "DOM", "DOM.Iterable"],
7 | "skipLibCheck": true,
8 |
9 | /* Bundler mode */
10 | "moduleResolution": "bundler",
11 | "allowImportingTsExtensions": true,
12 | "resolveJsonModule": true,
13 | "isolatedModules": true,
14 | "noEmit": true,
15 | "jsx": "preserve",
16 |
17 | /* Linting */
18 | "strict": true,
19 | "noUnusedLocals": true,
20 | "noUnusedParameters": true,
21 | "noFallthroughCasesInSwitch": true
22 | },
23 | "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"],
24 | "references": [{ "path": "./tsconfig.node.json" }]
25 | }
26 |
--------------------------------------------------------------------------------
/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "skipLibCheck": true,
5 | "module": "ESNext",
6 | "moduleResolution": "bundler",
7 | "allowSyntheticDefaultImports": true
8 | },
9 | "include": ["vite.config.ts"]
10 | }
11 |
--------------------------------------------------------------------------------
/vite.config.ts:
--------------------------------------------------------------------------------
1 | import {defineConfig} from 'vite'
2 | import vue from '@vitejs/plugin-vue'
3 | import Components from 'unplugin-vue-components/vite';
4 | import {VantResolver} from '@vant/auto-import-resolver';
5 | import banner from 'vite-plugin-banner'
6 | import colors from 'picocolors'
7 | // https://vitejs.dev/config/
8 | export default defineConfig({
9 | plugins: [vue(), Components({
10 | resolvers: [VantResolver()],
11 | }), banner(`2222222`)
12 | ,
13 | {
14 |
15 | apply: 'serve',
16 | enforce: 'pre',
17 | configureServer(server) {
18 | const print = server.printUrls;
19 | server.printUrls = () => {
20 | console.info(colors.red(` ➜ 代码出处信息`))
21 | console.info(colors.red(` ➜ 作者By:qimu`))
22 | console.info(colors.red(` ➜ 作者Wx:aqimu66`))
23 | console.info(colors.red(` ➜ Github主页:https://github.com/qimu666`))
24 | console.info(colors.red(` ➜ 项目Github:https://github.com/qimu666/Auto-Clock`))
25 | console.info(colors.green(``))
26 | print();
27 | }
28 | }
29 | }]
30 |
31 | })
32 |
33 |
--------------------------------------------------------------------------------