Browse Source

后台配置完成 以及打包配置更新

xudm 2 months ago
parent
commit
a5f8232302
46 changed files with 776 additions and 157 deletions
  1. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/mapper/AirdropRecordMapper.java
  2. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/mapper/CoinSpeedUpgradesRulesMapper.java
  3. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/mapper/InviteRewardsRuleMapper.java
  4. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/mapper/TaskInfoMapper.java
  5. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/mapper/TeamInviteConfigMapper.java
  6. 16 1
      continew-module-system/src/main/java/top/continew/admin/business/mapper/TgUserMapper.java
  7. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/model/entity/AirdropRecord.java
  8. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/model/entity/CoinSpeedUpgradesRules.java
  9. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/model/entity/InviteRewardsRule.java
  10. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/model/entity/TaskInfo.java
  11. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/model/entity/TeamInviteConfig.java
  12. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/model/entity/TgUser.java
  13. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/model/query/CoinSpeedUpgradesRulesQuery.java
  14. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/model/query/InviteRewardsRuleQuery.java
  15. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/model/query/TaskInfoQuery.java
  16. 16 1
      continew-module-system/src/main/java/top/continew/admin/business/model/query/TeamInviteConfigQuery.java
  17. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/model/query/TgUserQuery.java
  18. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/model/query/TgUserTeamQuery.java
  19. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/model/req/AirdropManagerReq.java
  20. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/model/req/CoinSpeedUpgradesRulesReq.java
  21. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/model/req/InviteRewardsRuleReq.java
  22. 16 10
      continew-module-system/src/main/java/top/continew/admin/business/model/req/TaskInfoReq.java
  23. 16 8
      continew-module-system/src/main/java/top/continew/admin/business/model/req/TeamInviteConfigReq.java
  24. 27 14
      continew-module-system/src/main/java/top/continew/admin/business/model/req/TgUserReq.java
  25. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/service/AirdropManagerService.java
  26. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/service/IAirdropRecordService.java
  27. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/service/ICoinSpeedUpgradesRulesService.java
  28. 16 3
      continew-module-system/src/main/java/top/continew/admin/business/service/IInviteRewardsRuleService.java
  29. 16 1
      continew-module-system/src/main/java/top/continew/admin/business/service/ITaskInfoService.java
  30. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/service/ITeamInviteConfigService.java
  31. 16 2
      continew-module-system/src/main/java/top/continew/admin/business/service/ITgUserService.java
  32. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/service/Impl/AirdropManagerServiceImpl.java
  33. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/service/Impl/AirdropRecordServiceImpl.java
  34. 18 3
      continew-module-system/src/main/java/top/continew/admin/business/service/Impl/CoinSpeedUpgradesRulesServiceImpl.java
  35. 19 3
      continew-module-system/src/main/java/top/continew/admin/business/service/Impl/InviteRewardsRuleServiceImpl.java
  36. 18 3
      continew-module-system/src/main/java/top/continew/admin/business/service/Impl/TaskInfoServiceImpl.java
  37. 16 1
      continew-module-system/src/main/java/top/continew/admin/business/service/Impl/TeamInviteConfigServiceImpl.java
  38. 16 0
      continew-module-system/src/main/java/top/continew/admin/business/service/Impl/TgUserServiceImpl.java
  39. 30 9
      continew-webapi/pom.xml
  40. 16 0
      continew-webapi/src/main/java/top/continew/admin/controller/business/AirdropManagerController.java
  41. 18 17
      continew-webapi/src/main/java/top/continew/admin/controller/business/CoinSpeedUpgradesRulesController.java
  42. 20 23
      continew-webapi/src/main/java/top/continew/admin/controller/business/InviteRewardsRulesController.java
  43. 20 23
      continew-webapi/src/main/java/top/continew/admin/controller/business/TaskInfoController.java
  44. 20 23
      continew-webapi/src/main/java/top/continew/admin/controller/business/TeamInviteConfigController.java
  45. 16 1
      continew-webapi/src/main/java/top/continew/admin/controller/business/TgUserController.java
  46. 10 11
      continew-webapi/src/main/resources/config/application-prod.yml

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/mapper/AirdropRecordMapper.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.mapper;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/mapper/CoinSpeedUpgradesRulesMapper.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.mapper;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/mapper/InviteRewardsRuleMapper.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.mapper;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/mapper/TaskInfoMapper.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.mapper;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/mapper/TeamInviteConfigMapper.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.mapper;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;

+ 16 - 1
continew-module-system/src/main/java/top/continew/admin/business/mapper/TgUserMapper.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.mapper;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@@ -6,7 +22,6 @@ import org.apache.ibatis.annotations.Param;
 import top.continew.admin.business.model.entity.TgUser;
 import top.continew.admin.business.model.query.TgUserQuery;
 import top.continew.admin.business.model.query.TgUserTeamQuery;
-import top.continew.admin.business.model.req.TgUserReq;
 
 import java.util.List;
 

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/model/entity/AirdropRecord.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.model.entity;
 
 import com.baomidou.mybatisplus.annotation.TableField;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/model/entity/CoinSpeedUpgradesRules.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.model.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/model/entity/InviteRewardsRule.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.model.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/model/entity/TaskInfo.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.model.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/model/entity/TeamInviteConfig.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.model.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/model/entity/TgUser.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.model.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/model/query/CoinSpeedUpgradesRulesQuery.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.model.query;
 
 import io.swagger.v3.oas.annotations.media.Schema;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/model/query/InviteRewardsRuleQuery.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.model.query;
 
 import io.swagger.v3.oas.annotations.media.Schema;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/model/query/TaskInfoQuery.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.model.query;
 
 import io.swagger.v3.oas.annotations.media.Schema;

+ 16 - 1
continew-module-system/src/main/java/top/continew/admin/business/model/query/TeamInviteConfigQuery.java

@@ -1,6 +1,21 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.model.query;
 
-import com.baomidou.mybatisplus.annotation.TableName;
 import io.swagger.v3.oas.annotations.media.Schema;
 import lombok.Getter;
 import lombok.Setter;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/model/query/TgUserQuery.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.model.query;
 
 import cn.hutool.core.date.DatePattern;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/model/query/TgUserTeamQuery.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.model.query;
 
 import cn.hutool.core.date.DatePattern;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/model/req/AirdropManagerReq.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.model.req;
 
 import io.swagger.v3.oas.annotations.media.Schema;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/model/req/CoinSpeedUpgradesRulesReq.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.model.req;
 
 import io.swagger.v3.oas.annotations.media.Schema;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/model/req/InviteRewardsRuleReq.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.model.req;
 
 import io.swagger.v3.oas.annotations.media.Schema;

+ 16 - 10
continew-module-system/src/main/java/top/continew/admin/business/model/req/TaskInfoReq.java

@@ -1,15 +1,25 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.model.req;
 
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableName;
-import com.baomidou.mybatisplus.extension.activerecord.Model;
 import io.swagger.v3.oas.annotations.media.Schema;
 import lombok.Data;
-import lombok.Getter;
-import lombok.Setter;
 
 import java.io.Serializable;
-import java.time.LocalDateTime;
 
 /**
  * <p>
@@ -59,19 +69,15 @@ public class TaskInfoReq implements Serializable {
     @Schema(description = "任务图标")
     private String taskIcon;
 
-
     @Schema(description = "任务链接")
     private String taskLink;
 
-
     @Schema(description = "任务分类编码")
     private String categoryCode;
 
-
     @Schema(description = "1开启0关闭")
     private Integer status;
 
-
     @Schema(description = "金币数量")
     private Integer goldCoin;
 

+ 16 - 8
continew-module-system/src/main/java/top/continew/admin/business/model/req/TeamInviteConfigReq.java

@@ -1,17 +1,25 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.model.req;
 
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
-import com.baomidou.mybatisplus.extension.activerecord.Model;
 import io.swagger.v3.oas.annotations.media.Schema;
 import lombok.Getter;
 import lombok.Setter;
 
-import java.io.Serializable;
-import java.time.LocalDateTime;
-
 /**
  * <p>
  * 团队邀请配置

+ 27 - 14
continew-module-system/src/main/java/top/continew/admin/business/model/req/TgUserReq.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.model.req;
 
 import com.baomidou.mybatisplus.annotation.TableField;
@@ -10,17 +26,17 @@ import java.math.BigDecimal;
 @Data
 @Schema(description = "tg用户信息修改参数")
 public class TgUserReq implements Serializable {
-//    /**
-//     * tg小程序id
-//     */
-//    @TableField("tg小程序id")
-//    private String tgId;
-//
-//    /**
-//     * tg账号
-//     */
-//    @TableField("tg账号")
-//    private String tgAccount;
+    //    /**
+    //     * tg小程序id
+    //     */
+    //    @TableField("tg小程序id")
+    //    private String tgId;
+    //
+    //    /**
+    //     * tg账号
+    //     */
+    //    @TableField("tg账号")
+    //    private String tgAccount;
 
     /**
      * 名
@@ -64,7 +80,6 @@ public class TgUserReq implements Serializable {
     @TableField("钱包地址")
     private String walletAddress;
 
-
     /**
      * 币账户进入的唯一标识地址
      */
@@ -83,7 +98,6 @@ public class TgUserReq implements Serializable {
     @TableField("用户性别")
     private String sex;
 
-
     /**
      * 空投数量
      */
@@ -102,7 +116,6 @@ public class TgUserReq implements Serializable {
     @TableField("金币总数量")
     private BigDecimal goldCoinTotalHis;
 
-
     /**
      * 用户余额
      */

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/service/AirdropManagerService.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.service;
 
 import top.continew.admin.business.model.req.AirdropManagerReq;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/service/IAirdropRecordService.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.service;
 
 import com.baomidou.mybatisplus.extension.service.IService;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/service/ICoinSpeedUpgradesRulesService.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.service;
 
 import com.baomidou.mybatisplus.extension.service.IService;

+ 16 - 3
continew-module-system/src/main/java/top/continew/admin/business/service/IInviteRewardsRuleService.java

@@ -1,11 +1,25 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.service;
 
 import com.baomidou.mybatisplus.extension.service.IService;
-import org.springframework.web.bind.annotation.GetMapping;
 import top.continew.admin.business.model.entity.InviteRewardsRule;
 import top.continew.admin.business.model.query.InviteRewardsRuleQuery;
 import top.continew.admin.business.model.req.InviteRewardsRuleReq;
-import top.continew.starter.extension.crud.model.resp.BaseIdResp;
 import top.continew.starter.extension.crud.model.resp.BasePageResp;
 
 import java.util.List;
@@ -36,7 +50,6 @@ public interface IInviteRewardsRuleService extends IService<InviteRewardsRule> {
 
     List<InviteRewardsRule> getByIds(List<Long> ids);
 
-
     int getMaxLevel();
 
 }

+ 16 - 1
continew-module-system/src/main/java/top/continew/admin/business/service/ITaskInfoService.java

@@ -1,7 +1,22 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.service;
 
 import com.baomidou.mybatisplus.extension.service.IService;
-import top.continew.admin.business.model.entity.InviteRewardsRule;
 import top.continew.admin.business.model.entity.TaskInfo;
 import top.continew.admin.business.model.query.TaskInfoQuery;
 import top.continew.admin.business.model.req.TaskInfoReq;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/service/ITeamInviteConfigService.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.service;
 
 import com.baomidou.mybatisplus.extension.service.IService;

+ 16 - 2
continew-module-system/src/main/java/top/continew/admin/business/service/ITgUserService.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.service;
 
 import com.baomidou.mybatisplus.extension.service.IService;
@@ -10,7 +26,6 @@ import top.continew.starter.extension.crud.model.resp.PageResp;
 
 import java.util.List;
 
-
 /**
  * <p>
  * tg用户 服务类
@@ -28,7 +43,6 @@ public interface ITgUserService extends IService<TgUser> {
      */
     PageResp<TgUser> pageQuery(TgUserQuery query);
 
-
     void disableTgUserByIds(List<Long> ids);
 
     /**

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/service/Impl/AirdropManagerServiceImpl.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.service.Impl;
 
 import cn.dev33.satoken.stp.StpUtil;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/service/Impl/AirdropRecordServiceImpl.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.service.Impl;
 
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

+ 18 - 3
continew-module-system/src/main/java/top/continew/admin/business/service/Impl/CoinSpeedUpgradesRulesServiceImpl.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.service.Impl;
 
 import cn.dev33.satoken.stp.StpUtil;
@@ -8,7 +24,6 @@ import org.springframework.beans.BeanUtils;
 import org.springframework.stereotype.Service;
 import top.continew.admin.business.mapper.CoinSpeedUpgradesRulesMapper;
 import top.continew.admin.business.model.entity.CoinSpeedUpgradesRules;
-import top.continew.admin.business.model.entity.TaskInfo;
 import top.continew.admin.business.model.query.CoinSpeedUpgradesRulesQuery;
 import top.continew.admin.business.model.req.CoinSpeedUpgradesRulesReq;
 import top.continew.admin.business.service.ICoinSpeedUpgradesRulesService;
@@ -33,10 +48,10 @@ public class CoinSpeedUpgradesRulesServiceImpl extends ServiceImpl<CoinSpeedUpgr
         Object loginId = StpUtil.getLoginId();
         CoinSpeedUpgradesRules rules = new CoinSpeedUpgradesRules();
         BeanUtils.copyProperties(req, rules);
-        rules.setCreatedBy((String) loginId);
+        rules.setCreatedBy((String)loginId);
         rules.setCreatedTime(LocalDateTime.now());
         rules.setUpdatedTime(LocalDateTime.now());
-        rules.setUpdatedBy((String) loginId);
+        rules.setUpdatedBy((String)loginId);
         save(rules);
         return rules.getId();
     }

+ 19 - 3
continew-module-system/src/main/java/top/continew/admin/business/service/Impl/InviteRewardsRuleServiceImpl.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.service.Impl;
 
 import cn.dev33.satoken.stp.StpUtil;
@@ -69,8 +85,8 @@ public class InviteRewardsRuleServiceImpl extends ServiceImpl<InviteRewardsRuleM
         InviteRewardsRule rule = new InviteRewardsRule();
         BeanUtils.copyProperties(req, rule);
         rule.setRewardsLevel(maxLevel + 1);
-        rule.setCreatedBy((String) loginId);
-        rule.setUpdatedBy((String) loginId);
+        rule.setCreatedBy((String)loginId);
+        rule.setUpdatedBy((String)loginId);
         rule.setUpdatedTime(LocalDateTime.now());
         rule.setCreatedTime(LocalDateTime.now());
         save(rule);
@@ -83,7 +99,7 @@ public class InviteRewardsRuleServiceImpl extends ServiceImpl<InviteRewardsRuleM
         InviteRewardsRule byId = getById(id);
         CheckUtils.throwIfNull(byId, "查询的规则为空");
         BeanUtils.copyProperties(req, byId, "id");
-        byId.setUpdatedBy((String) loginId);
+        byId.setUpdatedBy((String)loginId);
         byId.setUpdatedTime(LocalDateTime.now());
         updateById(byId);
     }

+ 18 - 3
continew-module-system/src/main/java/top/continew/admin/business/service/Impl/TaskInfoServiceImpl.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.service.Impl;
 
 import cn.dev33.satoken.stp.StpUtil;
@@ -8,7 +24,6 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import org.springframework.beans.BeanUtils;
 import org.springframework.stereotype.Service;
 import top.continew.admin.business.mapper.TaskInfoMapper;
-import top.continew.admin.business.model.entity.InviteRewardsRule;
 import top.continew.admin.business.model.entity.TaskInfo;
 import top.continew.admin.business.model.query.TaskInfoQuery;
 import top.continew.admin.business.model.req.TaskInfoReq;
@@ -63,10 +78,10 @@ public class TaskInfoServiceImpl extends ServiceImpl<TaskInfoMapper, TaskInfo> i
         Object loginId = StpUtil.getLoginId();
         TaskInfo taskInfo = new TaskInfo();
         BeanUtils.copyProperties(req, taskInfo);
-        taskInfo.setCreateBy((String) loginId);
+        taskInfo.setCreateBy((String)loginId);
         taskInfo.setCreateTime(LocalDateTime.now());
         taskInfo.setUpdatedTime(LocalDateTime.now());
-        taskInfo.setUpdateBy((String) loginId);
+        taskInfo.setUpdateBy((String)loginId);
         save(taskInfo);
         return taskInfo.getId();
     }

+ 16 - 1
continew-module-system/src/main/java/top/continew/admin/business/service/Impl/TeamInviteConfigServiceImpl.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.service.Impl;
 
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
@@ -6,7 +22,6 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import org.springframework.beans.BeanUtils;
 import org.springframework.stereotype.Service;
 import top.continew.admin.business.mapper.TeamInviteConfigMapper;
-import top.continew.admin.business.model.entity.TaskInfo;
 import top.continew.admin.business.model.entity.TeamInviteConfig;
 import top.continew.admin.business.model.query.TeamInviteConfigQuery;
 import top.continew.admin.business.model.req.TeamInviteConfigReq;

+ 16 - 0
continew-module-system/src/main/java/top/continew/admin/business/service/Impl/TgUserServiceImpl.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.business.service.Impl;
 
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

+ 30 - 9
continew-webapi/pom.xml

@@ -69,15 +69,36 @@
     </dependencies>
 
     <build>
-        <!-- 设置构建的 jar 包名 -->
+        <finalName>tg-game-admin</finalName>
+        <plugins>
+            <!-- Spring Boot 打包插件(将 Spring Boot Maven 应用打包为可执行的 jar 包) -->
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+                <configuration>
+                    <includeSystemScope>true</includeSystemScope>
+                </configuration>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>repackage</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+    <!--<build>
+        &lt;!&ndash; 设置构建的 jar 包名 &ndash;&gt;
         <finalName>${project.parent.name}</finalName>
         <plugins>
-            <!-- Maven 打包插件 -->
+            &lt;!&ndash; Maven 打包插件 &ndash;&gt;
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-jar-plugin</artifactId>
                 <configuration>
-                    <!-- 排除配置文件 -->
+                    &lt;!&ndash; 排除配置文件 &ndash;&gt;
                     <excludes>
                         <exclude>${config-path}</exclude>
                         <exclude>db/</exclude>
@@ -87,21 +108,21 @@
                     <archive>
                         <manifest>
                             <mainClass>${main-class}</mainClass>
-                            <!-- 为 MANIFEST.MF 中的 Class-Path 加入依赖 jar 目录前缀 -->
+                            &lt;!&ndash; 为 MANIFEST.MF 中的 Class-Path 加入依赖 jar 目录前缀 &ndash;&gt;
                             <classpathPrefix>../${lib-path}</classpathPrefix>
                             <addClasspath>true</addClasspath>
-                            <!-- jar 包不包含唯一版本标识 -->
+                            &lt;!&ndash; jar 包不包含唯一版本标识 &ndash;&gt;
                             <useUniqueVersions>false</useUniqueVersions>
                         </manifest>
                         <manifestEntries>
-                            <!--为 MANIFEST.MF 中的 Class-Path 加入配置文件目录前缀 -->
+                            &lt;!&ndash;为 MANIFEST.MF 中的 Class-Path 加入配置文件目录前缀 &ndash;&gt;
                             <Class-Path>../${config-path}</Class-Path>
                         </manifestEntries>
                     </archive>
                     <outputDirectory>${project.build.directory}/app/${bin-path}</outputDirectory>
                 </configuration>
             </plugin>
-            <!-- 拷贝依赖 jar -->
+            &lt;!&ndash; 拷贝依赖 jar &ndash;&gt;
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-dependency-plugin</artifactId>
@@ -118,7 +139,7 @@
                     </execution>
                 </executions>
             </plugin>
-            <!-- 拷贝配置文件 -->
+            &lt;!&ndash; 拷贝配置文件 &ndash;&gt;
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-resources-plugin</artifactId>
@@ -149,5 +170,5 @@
                 </executions>
             </plugin>
         </plugins>
-    </build>
+    </build>-->
 </project>

+ 16 - 0
continew-webapi/src/main/java/top/continew/admin/controller/business/AirdropManagerController.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.controller.business;
 
 import io.swagger.v3.oas.annotations.tags.Tag;

+ 18 - 17
continew-webapi/src/main/java/top/continew/admin/controller/business/CoinSpeedUpgradesRulesController.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.controller.business;
 
 import io.swagger.v3.oas.annotations.Operation;
@@ -5,11 +21,9 @@ import io.swagger.v3.oas.annotations.Parameter;
 import io.swagger.v3.oas.annotations.enums.ParameterIn;
 import io.swagger.v3.oas.annotations.tags.Tag;
 import lombok.AllArgsConstructor;
-import org.apache.poi.ss.formula.functions.Na;
 import org.springframework.web.bind.annotation.*;
 import top.continew.admin.business.model.entity.CoinSpeedUpgradesRules;
 import top.continew.admin.business.model.query.CoinSpeedUpgradesRulesQuery;
-import top.continew.admin.business.model.query.TaskInfoQuery;
 import top.continew.admin.business.model.req.CoinSpeedUpgradesRulesReq;
 import top.continew.admin.business.service.ICoinSpeedUpgradesRulesService;
 import top.continew.starter.extension.crud.model.resp.BaseIdResp;
@@ -30,27 +44,15 @@ public class CoinSpeedUpgradesRulesController {
         return rulesService.getCoinSpeedUpgradesRulesPage(query);
     }
 
-
     @Operation(summary = "查询详情", description = "查询详情")
     @GetMapping("/{ids}")
-    @Parameter(
-            name = "ids",
-            description = "ids",
-            example = "1,2,3,4",
-            in = ParameterIn.PATH
-    )
+    @Parameter(name = "ids", description = "ids", example = "1,2,3,4", in = ParameterIn.PATH)
     List<CoinSpeedUpgradesRules> getCoinSpeedUpgradesRulesByIds(@PathVariable("ids") List<Long> ids) {
         return rulesService.listByIds(ids);
     }
 
-
     @Operation(summary = "修改数据", description = "修改数据")
-    @Parameter(
-            name = "id",
-            description = "ID",
-            example = "1",
-            in = ParameterIn.PATH
-    )
+    @Parameter(name = "id", description = "ID", example = "1", in = ParameterIn.PATH)
     @PutMapping({"/{id}"})
     //@Validated({CrudValidationGroup.Update.class})
     public void update(@RequestBody CoinSpeedUpgradesRulesReq req, @PathVariable("id") Long id) {
@@ -63,7 +65,6 @@ public class CoinSpeedUpgradesRulesController {
         this.rulesService.removeByIds(ids);
     }
 
-
     @Operation(summary = "新增数据", description = "新增数据")
     @PostMapping
     public BaseIdResp<Long> add(@RequestBody CoinSpeedUpgradesRulesReq req) {

+ 20 - 23
continew-webapi/src/main/java/top/continew/admin/controller/business/InviteRewardsRulesController.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.controller.business;
 
 import io.swagger.v3.oas.annotations.Operation;
@@ -28,47 +44,28 @@ public class InviteRewardsRulesController {
         return ruleService.InviteRewardsRulePage(query);
     }
 
-
     @Operation(summary = "查询规则数据", description = "查询规则数据")
     @GetMapping("/{ids}")
-    @Parameter(
-            name = "ids",
-            description = "ids",
-            example = "1,2,3,4",
-            in = ParameterIn.PATH
-    )
+    @Parameter(name = "ids", description = "ids", example = "1,2,3,4", in = ParameterIn.PATH)
     List<InviteRewardsRule> getInviteRewardsRuleByIds(@PathVariable("ids") List<Long> ids) {
         return ruleService.getByIds(ids);
     }
 
-
     @Operation(summary = "修改数据", description = "修改数据")
-    @Parameter(
-            name = "id",
-            description = "ID",
-            example = "1",
-            in = ParameterIn.PATH
-    )
+    @Parameter(name = "id", description = "ID", example = "1", in = ParameterIn.PATH)
     @PutMapping({"/{id}"})
     //@Validated({CrudValidationGroup.Update.class})
     public void update(@RequestBody InviteRewardsRuleReq req, @PathVariable("id") Long id) {
         this.ruleService.updateRules(id, req);
     }
 
-    @Operation(
-            summary = "删除数据",
-            description = "删除数据"
-    )
+    @Operation(summary = "删除数据", description = "删除数据")
     @DeleteMapping({"/{ids}"})
     public void delete(@PathVariable("ids") List<Long> ids) {
         this.ruleService.delete(ids);
     }
 
-
-    @Operation(
-            summary = "新增奖励规则数据",
-            description = "新增奖励规则数据"
-    )
+    @Operation(summary = "新增奖励规则数据", description = "新增奖励规则数据")
     @PostMapping
     public BaseIdResp<Long> add(@RequestBody InviteRewardsRuleReq req) {
         return new BaseIdResp<>(ruleService.addRulesByLevel(req));

+ 20 - 23
continew-webapi/src/main/java/top/continew/admin/controller/business/TaskInfoController.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.controller.business;
 
 import io.swagger.v3.oas.annotations.Operation;
@@ -29,47 +45,28 @@ public class TaskInfoController {
         return taskInfoService.getTaskInfoPage(query);
     }
 
-
     @Operation(summary = "查询详情", description = "查询详情")
     @GetMapping("/{ids}")
-    @Parameter(
-            name = "ids",
-            description = "ids",
-            example = "1,2,3,4",
-            in = ParameterIn.PATH
-    )
+    @Parameter(name = "ids", description = "ids", example = "1,2,3,4", in = ParameterIn.PATH)
     public List<TaskInfo> getInviteRewardsRuleByIds(@PathVariable("ids") List<Long> ids) {
         return taskInfoService.listByIds(ids);
     }
 
-
     @Operation(summary = "修改数据", description = "修改数据")
-    @Parameter(
-            name = "id",
-            description = "ID",
-            example = "1",
-            in = ParameterIn.PATH
-    )
+    @Parameter(name = "id", description = "ID", example = "1", in = ParameterIn.PATH)
     @PutMapping({"/{id}"})
     //@Validated({CrudValidationGroup.Update.class})
     public void update(@RequestBody TaskInfoReq req, @PathVariable("id") Long id) {
         this.taskInfoService.updatetaskInfo(id, req);
     }
 
-    @Operation(
-            summary = "删除数据",
-            description = "删除数据"
-    )
+    @Operation(summary = "删除数据", description = "删除数据")
     @DeleteMapping({"/{ids}"})
     public void delete(@PathVariable("ids") List<Long> ids) {
         this.taskInfoService.removeByIds(ids);
     }
 
-
-    @Operation(
-            summary = "新增数据",
-            description = "新增数据"
-    )
+    @Operation(summary = "新增数据", description = "新增数据")
     @PostMapping
     public BaseIdResp<Long> add(@RequestBody TaskInfoReq req) {
         return new BaseIdResp<>(taskInfoService.addTaskInfo(req));

+ 20 - 23
continew-webapi/src/main/java/top/continew/admin/controller/business/TeamInviteConfigController.java

@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.controller.business;
 
 import io.swagger.v3.oas.annotations.Operation;
@@ -28,47 +44,28 @@ public class TeamInviteConfigController {
         return teamInviteConfigService.getTeamInviteConfigPage(query);
     }
 
-
     @Operation(summary = "查询详情", description = "查询详情")
     @GetMapping("/{ids}")
-    @Parameter(
-            name = "ids",
-            description = "ids",
-            example = "1,2,3,4",
-            in = ParameterIn.PATH
-    )
+    @Parameter(name = "ids", description = "ids", example = "1,2,3,4", in = ParameterIn.PATH)
     List<TeamInviteConfig> getInviteRewardsRuleByIds(@PathVariable("ids") List<Long> ids) {
         return teamInviteConfigService.listByIds(ids);
     }
 
-
     @Operation(summary = "修改数据", description = "修改数据")
-    @Parameter(
-            name = "id",
-            description = "ID",
-            example = "1",
-            in = ParameterIn.PATH
-    )
+    @Parameter(name = "id", description = "ID", example = "1", in = ParameterIn.PATH)
     @PutMapping({"/{id}"})
     //@Validated({CrudValidationGroup.Update.class})
     public void update(@RequestBody TeamInviteConfigReq req, @PathVariable("id") Long id) {
         this.teamInviteConfigService.updateTeamInviteConfig(id, req);
     }
 
-    @Operation(
-            summary = "删除数据",
-            description = "删除数据"
-    )
+    @Operation(summary = "删除数据", description = "删除数据")
     @DeleteMapping({"/{ids}"})
     public void delete(@PathVariable("ids") List<Long> ids) {
         this.teamInviteConfigService.removeByIds(ids);
     }
 
-
-    @Operation(
-            summary = "新增数据",
-            description = "新增数据"
-    )
+    @Operation(summary = "新增数据", description = "新增数据")
     @PostMapping
     public BaseIdResp<Long> add(@RequestBody TeamInviteConfigReq req) {
         return new BaseIdResp<>(teamInviteConfigService.addTeamInviteConfig(req));

+ 16 - 1
continew-webapi/src/main/java/top/continew/admin/controller/business/TgUserController.java

@@ -1,8 +1,23 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package top.continew.admin.controller.business;
 
 import io.swagger.v3.oas.annotations.Operation;
 import io.swagger.v3.oas.annotations.Parameter;
-import io.swagger.v3.oas.annotations.Parameters;
 import io.swagger.v3.oas.annotations.enums.ParameterIn;
 import io.swagger.v3.oas.annotations.tags.Tag;
 import lombok.AllArgsConstructor;

+ 10 - 11
continew-webapi/src/main/resources/config/application-prod.yml

@@ -1,7 +1,7 @@
 --- ### 项目配置
 project:
   # URL(跨域配置默认放行此 URL,第三方登录回调默认使用此 URL 为前缀,请注意更改为你实际的前端 URL)
-  url: https://admin.continew.top
+  url: http://localhost:5173
   # 是否为生产环境
   production: true
 
@@ -13,9 +13,9 @@ server:
 --- ### 数据源配置
 spring.datasource:
   type: com.zaxxer.hikari.HikariDataSource
-  url: jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_NAME:continew_admin}?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true&autoReconnect=true&maxReconnects=10&failOverReadOnly=false
-  username: ${DB_USER:root}
-  password: ${DB_PWD:123456}
+  url: jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_NAME:tg-game}?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true&autoReconnect=true&maxReconnects=10&failOverReadOnly=false
+  username: ${DB_USER:tg-game}
+  password: ${DB_PWD:tg-game123456}
   driver-class-name: com.mysql.cj.jdbc.Driver
 #  # PostgreSQL 配置
 #  postgresql:
@@ -52,9 +52,9 @@ spring.data:
     # 端口(默认 6379)
     port: ${REDIS_PORT:6379}
     # 密码(未设置密码时请注释掉)
-    password: ${REDIS_PWD:123456}
+    password: ${REDIS_PWD:hbcoin123}
     # 数据库索引
-    database: ${REDIS_DB:0}
+    database: ${REDIS_DB:5}
     # 连接超时时间
     timeout: 10s
     # 是否开启 SSL
@@ -145,14 +145,13 @@ logging:
     top.continew.admin: INFO
     top.continew.starter: INFO
   file:
-    path: ../logs
+    path: ./logs
 
 --- ### 跨域配置
 continew-starter.web.cors:
   enabled: true
   # 配置允许跨域的域名
-  allowed-origins:
-    - ${project.url}
+  allowed-origins: '*'
   # 配置允许跨域的请求方式
   allowed-methods: '*'
   # 配置允许跨域的请求头
@@ -171,8 +170,7 @@ continew-starter.messaging.websocket:
   enabled: true
   path: /websocket
   # 配置允许跨域的域名
-  allowed-origins:
-    - ${project.url}
+  allowed-origins: '*'
 
 --- ### 短信配置
 sms:
@@ -266,6 +264,7 @@ avatar:
 
 --- ### Snail Job 配置
 snail-job:
+  enabled: false
   # 客户端地址(默认自动获取本机 IP)
   #host: 127.0.0.1
   # 客户端端口(默认:1789)