refactor: jar名称

This commit is contained in:
pengsz 2025-12-09 15:05:15 +08:00
parent b399e7f0b4
commit 5057f69b0e
6 changed files with 62 additions and 61 deletions

View File

@ -9,7 +9,7 @@
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</parent> </parent>
<artifactId>fightwine-admin</artifactId> <artifactId>zp-fightwine-admin</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<properties> <properties>
@ -21,7 +21,7 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.yzt.fightwine</groupId> <groupId>com.yzt.fightwine</groupId>
<artifactId>fightwine-service</artifactId> <artifactId>zp-fightwine-service</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</dependency> </dependency>
@ -57,7 +57,7 @@
<build> <build>
<!--打包配置--> <!--打包配置-->
<finalName>fightwine-admin</finalName> <finalName>zp-fightwine-admin</finalName>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>

View File

@ -57,21 +57,21 @@ public class UserController {
return CommonResult.success(userCommonPage); return CommonResult.success(userCommonPage);
} }
@ApiOperation(value = "指定用户(uid)的被推广人列表") // @ApiOperation(value = "指定用户(uid)的被推广人列表")
@RequestMapping(value = "/promoted", method = RequestMethod.GET) // @RequestMapping(value = "/promoted", method = RequestMethod.GET)
public CommonResult<CommonPage<UserResponse>> getPromotedUserList(@ModelAttribute @Validated UserSearchRequest request, // public CommonResult<CommonPage<UserResponse>> getPromotedUserList(@ModelAttribute @Validated UserSearchRequest request,
@ModelAttribute PageParamRequest pageParamRequest) { // @ModelAttribute PageParamRequest pageParamRequest) {
CommonPage<UserResponse> userCommonPage = CommonPage.restPage(userService.getPromotedUserList(request, pageParamRequest)); // CommonPage<UserResponse> userCommonPage = CommonPage.restPage(userService.getPromotedUserList(request, pageParamRequest));
return CommonResult.success(userCommonPage); // return CommonResult.success(userCommonPage);
} // }
//
@ApiOperation(value = "获取指定用户的奖励记录列表") // @ApiOperation(value = "获取指定用户的奖励记录列表")
@RequestMapping(value = "/brokerage/{uid}", method = RequestMethod.GET) // @RequestMapping(value = "/brokerage/{uid}", method = RequestMethod.GET)
public CommonResult<CommonPage<UserBrokerageRecordResponse>> getUserBrokerageRecords(@PathVariable Integer uid,String customerName, String phone, // public CommonResult<CommonPage<UserBrokerageRecordResponse>> getUserBrokerageRecords(@PathVariable Integer uid,String customerName, String phone,
@ModelAttribute PageParamRequest pageParamRequest) { // @ModelAttribute PageParamRequest pageParamRequest) {
CommonPage<UserBrokerageRecordResponse> userCommonPage = CommonPage.restPage(userBrokerageRecordService.getUserBrokerageRecords(uid, customerName,phone,pageParamRequest)); // CommonPage<UserBrokerageRecordResponse> userCommonPage = CommonPage.restPage(userBrokerageRecordService.getUserBrokerageRecords(uid, customerName,phone,pageParamRequest));
return CommonResult.success(userCommonPage); // return CommonResult.success(userCommonPage);
} // }
/** /**
* 创建用户表 * 创建用户表
* @param userRequest 创建参数 * @param userRequest 创建参数
@ -167,18 +167,18 @@ public class UserController {
return CommonResult.success(userService.getTopDetail(userId)); return CommonResult.success(userService.getTopDetail(userId));
} }
/** // /**
* 操作积分 // * 操作积分
*/ // */
@PreAuthorize("hasAuthority('admin:user:operate:founds')") // @PreAuthorize("hasAuthority('admin:user:operate:founds')")
@ApiOperation(value = "积分余额") // @ApiOperation(value = "积分余额")
@RequestMapping(value = "/operate/founds", method = RequestMethod.GET) // @RequestMapping(value = "/operate/founds", method = RequestMethod.GET)
public CommonResult<Object> founds(@Validated UserOperateIntegralMoneyRequest request) { // public CommonResult<Object> founds(@Validated UserOperateIntegralMoneyRequest request) {
if (userService.updateIntegralMoney(request)) { // if (userService.updateIntegralMoney(request)) {
return CommonResult.success(); // return CommonResult.success();
} // }
return CommonResult.failed(); // return CommonResult.failed();
} // }
/** /**
* 会员分组 * 会员分组
@ -210,31 +210,31 @@ public class UserController {
return CommonResult.failed(); return CommonResult.failed();
} }
/** // /**
* 修改上级推广人 // * 修改上级推广人
*/ // */
@PreAuthorize("hasAuthority('admin:user:update:spread')") // @PreAuthorize("hasAuthority('admin:user:update:spread')")
@ApiOperation(value = "修改上级推广人") // @ApiOperation(value = "修改上级推广人")
@RequestMapping(value = "/update/spread", method = RequestMethod.POST) // @RequestMapping(value = "/update/spread", method = RequestMethod.POST)
public CommonResult<String> editSpread(@Validated @RequestBody UserUpdateSpreadRequest request) { // public CommonResult<String> editSpread(@Validated @RequestBody UserUpdateSpreadRequest request) {
if (userService.editSpread(request)) { // if (userService.editSpread(request)) {
return CommonResult.success("修改成功"); // return CommonResult.success("修改成功");
} // }
return CommonResult.failed("修改失败"); // return CommonResult.failed("修改失败");
} // }
/** // /**
* 更新用户会员等级 // * 更新用户会员等级
*/ // */
@PreAuthorize("hasAuthority('admin:user:update:level')") // @PreAuthorize("hasAuthority('admin:user:update:level')")
@ApiOperation(value = "更新用户会员等级") // @ApiOperation(value = "更新用户会员等级")
@RequestMapping(value = "/update/level", method = RequestMethod.POST) // @RequestMapping(value = "/update/level", method = RequestMethod.POST)
public CommonResult<Object> updateUserLevel(@Validated @RequestBody UpdateUserLevelRequest request) { // public CommonResult<Object> updateUserLevel(@Validated @RequestBody UpdateUserLevelRequest request) {
if (userService.updateUserLevel(request)) { // if (userService.updateUserLevel(request)) {
return CommonResult.success("更新成功"); // return CommonResult.success("更新成功");
} // }
return CommonResult.failed("更新失败"); // return CommonResult.failed("更新失败");
} // }
/** /**
* 后台管理用户搜索:通过手机号或企业名称模糊查询 * 后台管理用户搜索:通过手机号或企业名称模糊查询

View File

@ -9,8 +9,8 @@
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</parent> </parent>
<artifactId>fightwine-common</artifactId> <artifactId>zp-fightwine-common</artifactId>
<name>fightwine-common</name> <name>zp-fightwine-common</name>
<properties> <properties>
<maven.compiler.source>21</maven.compiler.source> <maven.compiler.source>21</maven.compiler.source>

View File

@ -21,6 +21,7 @@ public class RegisterRequest {
private String name; private String name;
@ApiModelProperty("用户公司名称") @ApiModelProperty("用户公司名称")
@NotBlank(message = "企业不能为空")
private String companyName; private String companyName;
@NotBlank(message = "登录密码不能为空") @NotBlank(message = "登录密码不能为空")

View File

@ -9,7 +9,7 @@
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</parent> </parent>
<artifactId>fightwine-front</artifactId> <artifactId>zp-fightwine-front</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<properties> <properties>
@ -21,7 +21,7 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.yzt.fightwine</groupId> <groupId>com.yzt.fightwine</groupId>
<artifactId>fightwine-service</artifactId> <artifactId>zp-fightwine-service</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</dependency> </dependency>
<!--代码自动生成工具--> <!--代码自动生成工具-->
@ -33,7 +33,7 @@
<build> <build>
<!--打包配置--> <!--打包配置-->
<finalName>fightwine-front</finalName> <finalName>zp-fightwine-front</finalName>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>

View File

@ -9,7 +9,7 @@
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</parent> </parent>
<artifactId>fightwine-service</artifactId> <artifactId>zp-fightwine-service</artifactId>
<properties> <properties>
<maven.compiler.source>21</maven.compiler.source> <maven.compiler.source>21</maven.compiler.source>
@ -20,7 +20,7 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.yzt.fightwine</groupId> <groupId>com.yzt.fightwine</groupId>
<artifactId>fightwine-common</artifactId> <artifactId>zp-fightwine-common</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</dependency> </dependency>