Compare commits
96 Commits
master
...
feature-1.
| Author | SHA1 | Date |
|---|---|---|
|
|
7097e2a09e | 3 years ago |
|
|
51522890f2 | 3 years ago |
|
|
7458924268 | 3 years ago |
|
|
b613917622 | 3 years ago |
|
|
d33e625894 | 3 years ago |
|
|
23fe25f7de | 3 years ago |
|
|
d4069cb405 | 3 years ago |
|
|
8f1dfc6ef8 | 3 years ago |
|
|
670376791f | 3 years ago |
|
|
39accc3768 | 3 years ago |
|
|
91f70af88d | 3 years ago |
|
|
7745b3576e | 3 years ago |
|
|
ccc5a821e4 | 3 years ago |
|
|
7998cb7641 | 3 years ago |
|
|
015112154f | 3 years ago |
|
|
f347c1eb0e | 3 years ago |
|
|
54fe592e98 | 3 years ago |
|
|
2451a20227 | 3 years ago |
|
|
0daed41a6e | 3 years ago |
|
|
e8118d72cc | 3 years ago |
|
|
34be8a486c | 3 years ago |
|
|
64b5032641 | 3 years ago |
|
|
5b6bbf4c52 | 3 years ago |
|
|
130bc8276f | 3 years ago |
|
|
87ffcd5701 | 3 years ago |
|
|
4a336cfef5 | 3 years ago |
|
|
f8c1dca3e7 | 3 years ago |
|
|
b2e0738045 | 3 years ago |
|
|
17a5233ca2 | 3 years ago |
|
|
58859d13d1 | 3 years ago |
|
|
5e814f6fb8 | 3 years ago |
|
|
df3473c242 | 3 years ago |
|
|
40b496f93c | 3 years ago |
|
|
a177d428e3 | 3 years ago |
|
|
474884b31d | 3 years ago |
|
|
55d57d4508 | 3 years ago |
|
|
49075b5a7b | 3 years ago |
|
|
827789f64d | 3 years ago |
|
|
06a2952db8 | 3 years ago |
|
|
30087de916 | 3 years ago |
|
|
51b34f4227 | 3 years ago |
|
|
a1d79d8101 | 3 years ago |
|
|
93ff4d1726 | 3 years ago |
|
|
05b04218b9 | 3 years ago |
|
|
5f3d052b4a | 3 years ago |
|
|
5080c2db90 | 3 years ago |
|
|
e50f6070f3 | 3 years ago |
|
|
4070c12934 | 3 years ago |
|
|
aca679d7bc | 3 years ago |
|
|
5d4cf63e35 | 3 years ago |
|
|
707becfc39 | 3 years ago |
|
|
d64064318f | 3 years ago |
|
|
9a4c576d57 | 3 years ago |
|
|
c344c946bc | 3 years ago |
|
|
463504ab36 | 3 years ago |
|
|
70f675f47a | 3 years ago |
|
|
e1274a2621 | 3 years ago |
|
|
4f7e18a080 | 3 years ago |
|
|
e26a8c5ed1 | 3 years ago |
|
|
1400ca38b6 | 3 years ago |
|
|
9929538e51 | 3 years ago |
|
|
864e38ab5f | 3 years ago |
|
|
c04e8ceb3f | 3 years ago |
|
|
1cb257dab5 | 3 years ago |
|
|
2541a2873e | 3 years ago |
|
|
cb8403b20c | 3 years ago |
|
|
051e156afc | 3 years ago |
|
|
db338af92c | 3 years ago |
|
|
d48b0e15b5 | 3 years ago |
|
|
149ba404d5 | 3 years ago |
|
|
dfe7295b26 | 3 years ago |
|
|
6f25ef54e4 | 3 years ago |
|
|
3bfaaa6a5c | 3 years ago |
|
|
133cd56564 | 3 years ago |
|
|
c175874522 | 3 years ago |
|
|
b941ad440f | 3 years ago |
|
|
3a8b1f39e4 | 3 years ago |
|
|
34654e83f5 | 3 years ago |
|
|
1ae110efb7 | 3 years ago |
|
|
6bd84e9226 | 3 years ago |
|
|
94bdb9282f | 3 years ago |
|
|
fefc9503a8 | 3 years ago |
|
|
d18fda470e | 3 years ago |
|
|
7e85281205 | 3 years ago |
|
|
b38da16520 | 3 years ago |
|
|
959c0d137b | 3 years ago |
|
|
c0da69c21a | 3 years ago |
|
|
a02db2e7c1 | 3 years ago |
|
|
bf7a78b680 | 3 years ago |
|
|
d2151461c7 | 3 years ago |
|
|
86fbb507df | 3 years ago |
|
|
a803227125 | 4 years ago |
|
|
fb08179727 | 4 years ago |
|
|
ba3758897d | 4 years ago |
|
|
a5b2154104 | 4 years ago |
|
|
c4e7966ea0 | 4 years ago |
559 changed files with 15861 additions and 3763 deletions
@ -0,0 +1,26 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" |
|||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|||
<parent> |
|||
<artifactId>bnyer-api</artifactId> |
|||
<groupId>com.dimensionalnode</groupId> |
|||
<version>1.0.0</version> |
|||
</parent> |
|||
<modelVersion>4.0.0</modelVersion> |
|||
|
|||
<artifactId>bnyer-api-file</artifactId> |
|||
|
|||
<description> |
|||
bnyer-api-file文件服务接口模块 |
|||
</description> |
|||
|
|||
<dependencies> |
|||
<!-- bnyer Common Core--> |
|||
<dependency> |
|||
<groupId>com.dimensionalnode</groupId> |
|||
<artifactId>bnyer-common-core</artifactId> |
|||
</dependency> |
|||
</dependencies> |
|||
|
|||
</project> |
|||
@ -0,0 +1,40 @@ |
|||
package com.bnyer.file.api; |
|||
|
|||
import com.bnyer.common.core.constant.ServiceNameConstants; |
|||
import com.bnyer.common.core.domain.R; |
|||
import com.bnyer.file.api.factory.RemoteFileFallbackFactory; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.http.MediaType; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestPart; |
|||
import org.springframework.web.multipart.MultipartFile; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 文件服务 |
|||
* |
|||
* @author penny |
|||
* @date 2023/04/15 11:03 |
|||
*/ |
|||
@FeignClient(contextId = "remoteFileService", value = ServiceNameConstants.FILE_SERVICE, fallbackFactory = RemoteFileFallbackFactory.class) |
|||
public interface RemoteFileService { |
|||
|
|||
|
|||
/** |
|||
* 上传文件到minio |
|||
* @param file 文件 |
|||
* @return - |
|||
*/ |
|||
@PostMapping(value = "/upload",consumes = MediaType.MULTIPART_FORM_DATA_VALUE) |
|||
R<String> uploadBanner(@RequestPart(name = "file") MultipartFile file); |
|||
|
|||
/** |
|||
* 批量上传文件到七牛云 |
|||
* @param files 文件 |
|||
* @return - |
|||
*/ |
|||
@PostMapping("/uploadBatch") |
|||
R<List<String>> uploadBatch(MultipartFile[] files); |
|||
|
|||
} |
|||
@ -0,0 +1,40 @@ |
|||
package com.bnyer.file.api.factory; |
|||
|
|||
import com.bnyer.common.core.domain.R; |
|||
import com.bnyer.file.api.RemoteFileService; |
|||
import org.slf4j.Logger; |
|||
import org.slf4j.LoggerFactory; |
|||
import org.springframework.cloud.openfeign.FallbackFactory; |
|||
import org.springframework.stereotype.Component; |
|||
import org.springframework.web.multipart.MultipartFile; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 文件服务降级处理 |
|||
* |
|||
* @author penny |
|||
*/ |
|||
@Component |
|||
public class RemoteFileFallbackFactory implements FallbackFactory<RemoteFileService> |
|||
{ |
|||
private static final Logger log = LoggerFactory.getLogger(RemoteFileFallbackFactory.class); |
|||
|
|||
|
|||
@Override |
|||
public RemoteFileService create(Throwable throwable) { |
|||
log.error("api文件服务调用失败:{}", throwable.getMessage()); |
|||
return new RemoteFileService() |
|||
{ |
|||
@Override |
|||
public R<String> uploadBanner(MultipartFile file) { |
|||
return R.fail("远程调用minio文件上传失败:" + throwable.getMessage()); |
|||
} |
|||
|
|||
@Override |
|||
public R<List<String>> uploadBatch(MultipartFile[] files) { |
|||
return R.fail("远程调用七牛云批量文件上传失败:" + throwable.getMessage()); |
|||
} |
|||
}; |
|||
} |
|||
} |
|||
@ -0,0 +1,2 @@ |
|||
org.springframework.boot.autoconfigure.EnableAutoConfiguration = com.bnyer.file.api.factory.RemoteFileFallbackFactory |
|||
|
|||
@ -0,0 +1,59 @@ |
|||
package com.bnyer.img.api.model; |
|||
|
|||
import com.bnyer.common.core.vo.CreatorLoginVo; |
|||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
|||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @author chengkun |
|||
* @date 2022/5/30 16:25 |
|||
*/ |
|||
|
|||
/** |
|||
* 艺术家信息 |
|||
*/ |
|||
@Data |
|||
public class LoginCreator implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 艺术家唯一标识 |
|||
*/ |
|||
private String token; |
|||
|
|||
/** |
|||
* 主键id |
|||
*/ |
|||
private Long creatorId; |
|||
|
|||
/** |
|||
* 艺术家手机号 |
|||
*/ |
|||
private String creatorPhone; |
|||
|
|||
/** |
|||
* 登录时间 |
|||
*/ |
|||
private Long loginTime; |
|||
|
|||
/** |
|||
* 过期时间 |
|||
*/ |
|||
private Long expireTime; |
|||
|
|||
/** |
|||
* 登录IP地址 |
|||
*/ |
|||
private String ipaddr; |
|||
|
|||
/** |
|||
* 艺术家信息 |
|||
*/ |
|||
private CreatorLoginVo creator; |
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,60 @@ |
|||
package com.bnyer.img.api.model; |
|||
|
|||
import com.bnyer.common.core.vo.FhUserLoginVo; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @author chengkun |
|||
* @date 2022/5/30 16:25 |
|||
*/ |
|||
|
|||
/** |
|||
* 快手小程序用户信息 |
|||
*/ |
|||
@Data |
|||
public class LoginFhUser implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 快手小程序用户唯一标识 |
|||
*/ |
|||
private String token; |
|||
|
|||
/** |
|||
* 主键id |
|||
*/ |
|||
private Long fhUserId; |
|||
|
|||
/** |
|||
* 快手小程序用户开放Id |
|||
*/ |
|||
private String fhUserOpenId; |
|||
|
|||
/** |
|||
* 快手小程序用户昵称 |
|||
*/ |
|||
private String fhUserName; |
|||
|
|||
/** |
|||
* 登录时间 |
|||
*/ |
|||
private Long loginTime; |
|||
|
|||
/** |
|||
* 过期时间 |
|||
*/ |
|||
private Long expireTime; |
|||
|
|||
/** |
|||
* 登录IP地址 |
|||
*/ |
|||
private String ipaddr; |
|||
|
|||
/** |
|||
* 快手小程序用户信息 |
|||
*/ |
|||
private FhUserLoginVo fhUser; |
|||
} |
|||
@ -0,0 +1,60 @@ |
|||
package com.bnyer.img.api.model; |
|||
|
|||
import com.bnyer.common.core.vo.TiktokUserLoginVo; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @author chengkun |
|||
* @date 2022/5/30 16:25 |
|||
*/ |
|||
|
|||
/** |
|||
* 抖音小程序用户信息 |
|||
*/ |
|||
@Data |
|||
public class LoginTiktokUser implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 抖音小程序用户唯一标识 |
|||
*/ |
|||
private String token; |
|||
|
|||
/** |
|||
* 主键id |
|||
*/ |
|||
private Long tiktokUserId; |
|||
|
|||
/** |
|||
* 抖音小程序用户开放Id |
|||
*/ |
|||
private String tiktokUserOpenId; |
|||
|
|||
/** |
|||
* 抖音小程序用户昵称 |
|||
*/ |
|||
private String tiktokUserName; |
|||
|
|||
/** |
|||
* 登录时间 |
|||
*/ |
|||
private Long loginTime; |
|||
|
|||
/** |
|||
* 过期时间 |
|||
*/ |
|||
private Long expireTime; |
|||
|
|||
/** |
|||
* 登录IP地址 |
|||
*/ |
|||
private String ipaddr; |
|||
|
|||
/** |
|||
* 抖音小程序用户信息 |
|||
*/ |
|||
private TiktokUserLoginVo tiktokUser; |
|||
} |
|||
@ -0,0 +1,60 @@ |
|||
package com.bnyer.img.api.model; |
|||
|
|||
import com.bnyer.common.core.vo.WxUserLoginVo; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @author chengkun |
|||
* @date 2022/5/30 16:25 |
|||
*/ |
|||
|
|||
/** |
|||
* 微信小程序用户信息 |
|||
*/ |
|||
@Data |
|||
public class LoginWechatUser implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 微信小程序用户唯一标识 |
|||
*/ |
|||
private String token; |
|||
|
|||
/** |
|||
* 主键id |
|||
*/ |
|||
private Long wxUserId; |
|||
|
|||
/** |
|||
* 微信小程序用户开放Id |
|||
*/ |
|||
private String wxUserOpenId; |
|||
|
|||
/** |
|||
* 微信小程序用户昵称 |
|||
*/ |
|||
private String wxUserName; |
|||
|
|||
/** |
|||
* 登录时间 |
|||
*/ |
|||
private Long loginTime; |
|||
|
|||
/** |
|||
* 过期时间 |
|||
*/ |
|||
private Long expireTime; |
|||
|
|||
/** |
|||
* 登录IP地址 |
|||
*/ |
|||
private String ipaddr; |
|||
|
|||
/** |
|||
* 微信小程序用户信息 |
|||
*/ |
|||
private WxUserLoginVo wxUser; |
|||
} |
|||
@ -0,0 +1,51 @@ |
|||
package com.bnyer.auth.controller; |
|||
|
|||
import com.bnyer.auth.service.CreatorLoginService; |
|||
import com.bnyer.common.core.domain.R; |
|||
import com.bnyer.common.core.dto.CreatorLoginDto; |
|||
import com.bnyer.common.security.service.CreatorTokenService; |
|||
import com.bnyer.common.security.utils.SecurityUtils; |
|||
import com.bnyer.img.api.model.LoginCreator; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.servlet.http.HttpServletRequest; |
|||
|
|||
/** |
|||
* 艺术家token 控制 |
|||
* |
|||
* @author penny |
|||
*/ |
|||
@RestController |
|||
public class CreatorController |
|||
{ |
|||
@Autowired |
|||
private CreatorTokenService creatorTokenService; |
|||
|
|||
@Autowired |
|||
private CreatorLoginService creatorService; |
|||
|
|||
|
|||
@PostMapping("/creatorLogin") |
|||
@ApiOperation("小程序艺术家登录") |
|||
public R<?> login(@Validated @ApiParam("艺术家数据") @RequestBody CreatorLoginDto param) |
|||
{ |
|||
// 用户登录
|
|||
LoginCreator login = creatorService.login(param); |
|||
// 获取登录token
|
|||
return R.ok(creatorTokenService.createToken(login)); |
|||
} |
|||
|
|||
@PostMapping("/creatorLogout") |
|||
public R<?> logout(HttpServletRequest request) |
|||
{ |
|||
String token = SecurityUtils.getCreatorToken(request); |
|||
creatorTokenService.delLoginCreator(token); |
|||
return R.ok(); |
|||
} |
|||
} |
|||
@ -0,0 +1,49 @@ |
|||
package com.bnyer.auth.controller; |
|||
|
|||
import com.bnyer.auth.service.FhUserLoginService; |
|||
import com.bnyer.common.core.domain.R; |
|||
import com.bnyer.common.core.dto.FhLoginDto; |
|||
import com.bnyer.common.security.service.FhUserTokenService; |
|||
import com.bnyer.common.security.utils.SecurityUtils; |
|||
import com.bnyer.img.api.model.LoginFhUser; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.servlet.http.HttpServletRequest; |
|||
|
|||
/** |
|||
* 快手小程序token 控制 |
|||
* |
|||
* @author penny |
|||
*/ |
|||
@RestController |
|||
public class FhUserController |
|||
{ |
|||
@Autowired |
|||
private FhUserLoginService fhUserLoginService; |
|||
|
|||
@Autowired |
|||
private FhUserTokenService fUserTokenService; |
|||
|
|||
@ApiOperation(value="快手小程序用户登录") |
|||
@PostMapping(value = "/fhUserLogin") |
|||
public R<?> loginFh(@Validated @RequestBody @ApiParam("登录对象") FhLoginDto dto){ |
|||
LoginFhUser loginFhUser = fhUserLoginService.login(dto); |
|||
return R.ok(fUserTokenService.createToken(loginFhUser)); |
|||
} |
|||
|
|||
@PostMapping("/fhUserLogout") |
|||
@ApiOperation("快手小程序用户注销") |
|||
public R<?> logout(HttpServletRequest request) |
|||
{ |
|||
String token = SecurityUtils.getFhToken(request); |
|||
//删除快手用户缓存
|
|||
fUserTokenService.delLoginFhUser(token); |
|||
return R.ok(); |
|||
} |
|||
} |
|||
@ -0,0 +1,49 @@ |
|||
package com.bnyer.auth.controller; |
|||
|
|||
import com.bnyer.auth.service.TiktokUserLoginService; |
|||
import com.bnyer.common.core.domain.R; |
|||
import com.bnyer.common.core.dto.TiktokLoginDto; |
|||
import com.bnyer.common.security.service.TiktokUserTokenService; |
|||
import com.bnyer.common.security.utils.SecurityUtils; |
|||
import com.bnyer.img.api.model.LoginTiktokUser; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.servlet.http.HttpServletRequest; |
|||
|
|||
/** |
|||
* 抖音小程序token 控制 |
|||
* |
|||
* @author penny |
|||
*/ |
|||
@RestController |
|||
public class TiktokUserController |
|||
{ |
|||
@Autowired |
|||
private TiktokUserLoginService tiktokUserLoginService; |
|||
|
|||
@Autowired |
|||
private TiktokUserTokenService tiktokUserTokenService; |
|||
|
|||
@ApiOperation(value="抖音小程序用户登录") |
|||
@PostMapping(value = "/tiktokUserLogin") |
|||
public R<?> loginFh(@Validated @RequestBody @ApiParam("登录对象") TiktokLoginDto dto){ |
|||
LoginTiktokUser loginTiktokUser = tiktokUserLoginService.login(dto); |
|||
return R.ok(tiktokUserTokenService.createToken(loginTiktokUser)); |
|||
} |
|||
|
|||
@PostMapping("/tiktokUserLogout") |
|||
@ApiOperation("抖音小程序用户注销") |
|||
public R<?> logout(HttpServletRequest request) |
|||
{ |
|||
String token = SecurityUtils.getTiktokToken(request); |
|||
//删除抖音用户缓存
|
|||
tiktokUserTokenService.delLoginFhUser(token); |
|||
return R.ok(); |
|||
} |
|||
} |
|||
@ -0,0 +1,49 @@ |
|||
package com.bnyer.auth.controller; |
|||
|
|||
import com.bnyer.auth.service.WxUserLoginService; |
|||
import com.bnyer.common.core.domain.R; |
|||
import com.bnyer.common.core.dto.WxLoginDto; |
|||
import com.bnyer.common.security.service.WxUserTokenService; |
|||
import com.bnyer.common.security.utils.SecurityUtils; |
|||
import com.bnyer.img.api.model.LoginWechatUser; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.servlet.http.HttpServletRequest; |
|||
|
|||
/** |
|||
* 微信小程序token 控制 |
|||
* |
|||
* @author penny |
|||
*/ |
|||
@RestController |
|||
public class WxUserController |
|||
{ |
|||
@Autowired |
|||
private WxUserLoginService wxUserLoginService; |
|||
|
|||
@Autowired |
|||
private WxUserTokenService WxUserTokenService; |
|||
|
|||
@ApiOperation(value="微信小程序用户登录") |
|||
@PostMapping(value = "/wxUserLogin") |
|||
public R<?> loginWx(@Validated @RequestBody @ApiParam("登录对象") WxLoginDto dto){ |
|||
LoginWechatUser loginWxUser = wxUserLoginService.login(dto); |
|||
return R.ok(WxUserTokenService.createToken(loginWxUser)); |
|||
} |
|||
|
|||
@PostMapping("/wxUserLogout") |
|||
@ApiOperation("微信小程序用户注销") |
|||
public R<?> logout(HttpServletRequest request) |
|||
{ |
|||
String token = SecurityUtils.getWechatToken(request); |
|||
//删除微信用户缓存
|
|||
WxUserTokenService.delLoginFhUser(token); |
|||
return R.ok(); |
|||
} |
|||
} |
|||
@ -0,0 +1,39 @@ |
|||
package com.bnyer.auth.service; |
|||
|
|||
import com.bnyer.common.core.constant.TiktokConstant; |
|||
import com.bnyer.common.core.domain.R; |
|||
import com.bnyer.common.core.dto.CreatorLoginDto; |
|||
import com.bnyer.common.core.exception.ServiceException; |
|||
import com.bnyer.img.api.RemoteImgService; |
|||
import com.bnyer.img.api.model.LoginCreator; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* 艺术家端登录校验方法 |
|||
* |
|||
* @author penny |
|||
*/ |
|||
@Component |
|||
public class CreatorLoginService { |
|||
|
|||
@Autowired |
|||
private RemoteImgService remoteImgService; |
|||
|
|||
public LoginCreator login(CreatorLoginDto dto) { |
|||
R<LoginCreator> creatorInfo = remoteImgService.getCreatorInfo(dto); |
|||
if(creatorInfo.getData() == null){ |
|||
throw new ServiceException("手机号或密码不正确!", TiktokConstant.TIKTOK_CREATOR_PWD_ERROR); |
|||
} |
|||
if(creatorInfo.getData().getCreator().getStatus().equals("0")){ |
|||
throw new ServiceException("当前艺术家暂未审核,请耐心等待或联系客服!",TiktokConstant.TIKTOK_CREATOR_NOT_PASS_ERROR); |
|||
} |
|||
if(creatorInfo.getData().getCreator().getStatus().equals("2")){ |
|||
throw new ServiceException("当前艺术家被封禁,请联系客服处理!",TiktokConstant.TIKTOK_CREATOR_BANED_ERROR); |
|||
} |
|||
//更新登录时间
|
|||
remoteImgService.updateLoginTime(creatorInfo.getData().getCreator().getId()); |
|||
return creatorInfo.getData(); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,24 @@ |
|||
package com.bnyer.auth.service; |
|||
|
|||
import com.bnyer.common.core.dto.FhLoginDto; |
|||
import com.bnyer.img.api.RemoteImgService; |
|||
import com.bnyer.img.api.model.LoginFhUser; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* 快手小程序端用户登录校验方法 |
|||
* |
|||
* @author penny |
|||
*/ |
|||
@Component |
|||
public class FhUserLoginService { |
|||
|
|||
@Autowired |
|||
private RemoteImgService remoteImgService; |
|||
|
|||
public LoginFhUser login(FhLoginDto dto) { |
|||
return remoteImgService.getFhLoginUserByLoginParam(dto).getData(); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,24 @@ |
|||
package com.bnyer.auth.service; |
|||
|
|||
import com.bnyer.common.core.dto.TiktokLoginDto; |
|||
import com.bnyer.img.api.RemoteImgService; |
|||
import com.bnyer.img.api.model.LoginTiktokUser; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* 抖音小程序端用户登录校验方法 |
|||
* |
|||
* @author penny |
|||
*/ |
|||
@Component |
|||
public class TiktokUserLoginService { |
|||
|
|||
@Autowired |
|||
private RemoteImgService remoteImgService; |
|||
|
|||
public LoginTiktokUser login(TiktokLoginDto dto) { |
|||
return remoteImgService.getTiktokLoginUserByLoginParam(dto).getData(); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,26 @@ |
|||
package com.bnyer.auth.service; |
|||
|
|||
import com.bnyer.common.core.dto.FhLoginDto; |
|||
import com.bnyer.common.core.dto.WxLoginDto; |
|||
import com.bnyer.img.api.RemoteImgService; |
|||
import com.bnyer.img.api.model.LoginFhUser; |
|||
import com.bnyer.img.api.model.LoginWechatUser; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* 微信小程序端用户登录校验方法 |
|||
* |
|||
* @author penny |
|||
*/ |
|||
@Component |
|||
public class WxUserLoginService { |
|||
|
|||
@Autowired |
|||
private RemoteImgService remoteImgService; |
|||
|
|||
public LoginWechatUser login(WxLoginDto dto) { |
|||
return remoteImgService.getWxLoginUserByLoginParam(dto).getData(); |
|||
} |
|||
|
|||
} |
|||
@ -1,18 +0,0 @@ |
|||
package com.bnyer.common.core.annotation; |
|||
|
|||
import java.lang.annotation.ElementType; |
|||
import java.lang.annotation.Retention; |
|||
import java.lang.annotation.RetentionPolicy; |
|||
import java.lang.annotation.Target; |
|||
|
|||
/** |
|||
* 小程序用户token检测注解 |
|||
* |
|||
* @author chengkun |
|||
*/ |
|||
@Target(ElementType.METHOD) |
|||
@Retention(RetentionPolicy.RUNTIME) |
|||
public @interface TokenCheck |
|||
{ |
|||
|
|||
} |
|||
@ -1,4 +1,4 @@ |
|||
package com.bnyer.img.constants; |
|||
package com.bnyer.common.core.constant; |
|||
|
|||
/** |
|||
* @author chengkun |
|||
@ -1,4 +1,4 @@ |
|||
package com.bnyer.img.constants; |
|||
package com.bnyer.common.core.constant; |
|||
|
|||
/** |
|||
* @author chengkun |
|||
@ -0,0 +1,124 @@ |
|||
package com.bnyer.common.core.domain; |
|||
|
|||
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.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
|||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.Getter; |
|||
import lombok.NoArgsConstructor; |
|||
import lombok.Setter; |
|||
import lombok.ToString; |
|||
|
|||
/** |
|||
* ai绘画内容表 |
|||
*/ |
|||
@ApiModel(value="com-bnyer-common-core-domain-AiPaint") |
|||
@Getter |
|||
@Setter |
|||
@ToString |
|||
@AllArgsConstructor |
|||
@NoArgsConstructor |
|||
@TableName(value = "img_ai_paint") |
|||
public class AiPaint implements Serializable { |
|||
/** |
|||
* 主键Id |
|||
*/ |
|||
@ApiModelProperty(value="主键Id") |
|||
@TableId(value = "id", type = IdType.ASSIGN_ID) |
|||
private Long id; |
|||
|
|||
/** |
|||
* 作品编号 |
|||
*/ |
|||
@TableField(value = "paint_id") |
|||
@ApiModelProperty(value="作品编号") |
|||
private String paintId; |
|||
|
|||
/** |
|||
* 绘图者id |
|||
*/ |
|||
@ApiModelProperty(value="绘图者id") |
|||
@TableField(value = "painter_id") |
|||
private Long painterId; |
|||
|
|||
/** |
|||
* 绘图者昵称 |
|||
*/ |
|||
@TableField(value = "painter_name") |
|||
@ApiModelProperty(value="绘图者昵称") |
|||
private String painterName; |
|||
|
|||
/** |
|||
* 图片 |
|||
*/ |
|||
@TableField(value = "img_url") |
|||
@ApiModelProperty(value="图片") |
|||
private String imgUrl; |
|||
|
|||
/** |
|||
* 关键词 |
|||
*/ |
|||
@TableField(value = "prompt") |
|||
@ApiModelProperty(value="关键词") |
|||
private String prompt; |
|||
|
|||
/** |
|||
* 模型名称 |
|||
*/ |
|||
@TableField(value = "model") |
|||
@ApiModelProperty(value="模型风格名称") |
|||
private String model; |
|||
|
|||
/** |
|||
* 风格名称 |
|||
*/ |
|||
@TableField(value = "style_name") |
|||
@ApiModelProperty(value="风格名称") |
|||
private String styleName; |
|||
|
|||
/** |
|||
* 图片高度 |
|||
*/ |
|||
@TableField(value = "height") |
|||
@ApiModelProperty(value="图片高度") |
|||
private String height; |
|||
|
|||
/** |
|||
* 图片宽度 |
|||
*/ |
|||
@TableField(value = "width") |
|||
@ApiModelProperty(value="图片宽度") |
|||
private String width; |
|||
|
|||
/** |
|||
* 是否显示 (0->隐藏;1->显示) |
|||
*/ |
|||
@TableField(value = "is_show") |
|||
@ApiModelProperty(value="是否显示 (0->隐藏;1->显示)") |
|||
private String isShow; |
|||
|
|||
/** |
|||
* 平台(0->Hub;1->抖音;2->快手;3->微信) |
|||
*/ |
|||
@TableField(value = "`source`") |
|||
@ApiModelProperty(value="平台(0->Hub;1->抖音;2->快手;3->微信)") |
|||
private String source; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
@TableField(value = "create_time") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@ApiModelProperty(value="创建时间") |
|||
private Date createTime; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
} |
|||
@ -0,0 +1,77 @@ |
|||
package com.bnyer.common.core.domain; |
|||
|
|||
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.fasterxml.jackson.databind.annotation.JsonSerialize; |
|||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.Getter; |
|||
import lombok.NoArgsConstructor; |
|||
import lombok.Setter; |
|||
import lombok.ToString; |
|||
|
|||
@ApiModel(value="com-bnyer-common-core-domain-CdkLog") |
|||
@Getter |
|||
@Setter |
|||
@ToString |
|||
@AllArgsConstructor |
|||
@NoArgsConstructor |
|||
@TableName(value = "img_cdk_log") |
|||
public class CdkLog implements Serializable { |
|||
/** |
|||
* 主键id |
|||
*/ |
|||
@ApiModelProperty(value="主键id") |
|||
@TableId(value = "id", type = IdType.ASSIGN_ID) |
|||
private Long id; |
|||
|
|||
/** |
|||
* 兑换码 |
|||
*/ |
|||
@TableField(value = "cdk") |
|||
@ApiModelProperty(value="兑换码") |
|||
private String cdk; |
|||
|
|||
/** |
|||
* 兑换次数 |
|||
*/ |
|||
@TableField(value = "paint_num") |
|||
@ApiModelProperty(value="兑换次数") |
|||
private int paintNum; |
|||
|
|||
/** |
|||
* 用户id |
|||
*/ |
|||
@ApiModelProperty(value="用户id") |
|||
@TableField(value = "user_id") |
|||
private Long userId; |
|||
|
|||
/** |
|||
* 平台(0->Hub;1->抖音;2->快手;3->微信) |
|||
*/ |
|||
@TableField(value = "`source`") |
|||
@ApiModelProperty(value="平台(0->Hub;1->抖音;2->快手;3->微信)") |
|||
private String source; |
|||
|
|||
/** |
|||
* 是否显示 (0->隐藏;1->显示) |
|||
*/ |
|||
@TableField(value = "is_show") |
|||
@ApiModelProperty(value="是否显示 (0->隐藏;1->显示)") |
|||
private String isShow; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
@TableField(value = "create_time") |
|||
@ApiModelProperty(value="创建时间") |
|||
private Date createTime; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
} |
|||
@ -0,0 +1,35 @@ |
|||
package com.bnyer.common.core.domain; |
|||
|
|||
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 io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.*; |
|||
|
|||
@ApiModel(value="com-bnyer-common-core-domain-CommonImgs") |
|||
@Getter |
|||
@Setter |
|||
@ToString |
|||
@AllArgsConstructor |
|||
@NoArgsConstructor |
|||
@TableName(value = "img_common_imgs") |
|||
public class CommonImgs extends BaseDomain { |
|||
|
|||
/** |
|||
* 图片地址 |
|||
*/ |
|||
@TableField(value = "img_url") |
|||
@ApiModelProperty(value="图片地址") |
|||
private String imgUrl; |
|||
|
|||
/** |
|||
* 图片类型(0->头像;1->壁纸;2->插画) |
|||
*/ |
|||
@TableField(value = "type") |
|||
@ApiModelProperty(value="图片类型(0->头像;1->壁纸;2->插画)") |
|||
private String type; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
} |
|||
@ -0,0 +1,56 @@ |
|||
package com.bnyer.common.core.domain; |
|||
|
|||
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 io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.*; |
|||
|
|||
@ApiModel(value="com-bnyer-common-core-domain-LevelInfo") |
|||
@Getter |
|||
@Setter |
|||
@ToString |
|||
@AllArgsConstructor |
|||
@NoArgsConstructor |
|||
@TableName(value = "img_level_info") |
|||
public class LevelInfo extends BaseDomain { |
|||
|
|||
/** |
|||
* 等级头衔名称 |
|||
*/ |
|||
@TableField(value = "title") |
|||
@ApiModelProperty(value="等级头衔名称") |
|||
private String title; |
|||
|
|||
/** |
|||
* 头衔图标 |
|||
*/ |
|||
@TableField(value = "title_icon") |
|||
@ApiModelProperty(value="头衔图标") |
|||
private String titleIcon; |
|||
|
|||
/** |
|||
* 最小经验值 |
|||
*/ |
|||
@TableField(value = "min_exp") |
|||
@ApiModelProperty(value="最小经验值") |
|||
private Integer minExp; |
|||
|
|||
/** |
|||
* 最大经验值 |
|||
*/ |
|||
@TableField(value = "max_exp") |
|||
@ApiModelProperty(value="最大经验值") |
|||
private Integer maxExp; |
|||
|
|||
/** |
|||
* 等级类型(0->用户;1->创作者) |
|||
*/ |
|||
@TableField(value = "type") |
|||
@ApiModelProperty(value="等级类型(0->用户;1->创作者)") |
|||
private String type; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
} |
|||
@ -0,0 +1,91 @@ |
|||
package com.bnyer.common.core.domain; |
|||
|
|||
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.fasterxml.jackson.databind.annotation.JsonSerialize; |
|||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.Getter; |
|||
import lombok.NoArgsConstructor; |
|||
import lombok.Setter; |
|||
import lombok.ToString; |
|||
|
|||
@ApiModel(value="com-bnyer-common-core-domain-PaintCdk") |
|||
@Getter |
|||
@Setter |
|||
@ToString |
|||
@AllArgsConstructor |
|||
@NoArgsConstructor |
|||
@TableName(value = "img_paint_cdk") |
|||
public class PaintCdk implements Serializable { |
|||
/** |
|||
* 主键Id |
|||
*/ |
|||
@ApiModelProperty(value="主键Id") |
|||
@TableId(value = "id", type = IdType.ASSIGN_ID) |
|||
private Long id; |
|||
|
|||
/** |
|||
* 兑换码 |
|||
*/ |
|||
@TableField(value = "cdk") |
|||
@ApiModelProperty(value="兑换码") |
|||
private String cdk; |
|||
|
|||
/** |
|||
* 兑换次数 |
|||
*/ |
|||
@TableField(value = "paint_num") |
|||
@ApiModelProperty(value="兑换次数") |
|||
private int paintNum; |
|||
|
|||
/** |
|||
* 是否显示 (0->隐藏;1->显示) |
|||
*/ |
|||
@TableField(value = "is_show") |
|||
@ApiModelProperty(value="是否显示 (0->隐藏;1->显示)") |
|||
private String isShow; |
|||
|
|||
/** |
|||
* 是否使用 (0->未使用;1->已使用) |
|||
*/ |
|||
@TableField(value = "is_use") |
|||
@ApiModelProperty(value="是否使用 (0->未使用;1->已使用)") |
|||
private String isUse; |
|||
|
|||
/** |
|||
* 平台(0->Hub;1->抖音;2->快手;3->微信) |
|||
*/ |
|||
@TableField(value = "`source`") |
|||
@ApiModelProperty(value="平台(0->Hub;1->抖音;2->快手;3->微信)") |
|||
private String source; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
@TableField(value = "create_time") |
|||
@ApiModelProperty(value="创建时间") |
|||
private Date createTime; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
@TableField(value = "update_time") |
|||
@ApiModelProperty(value="更新时间") |
|||
private Date updateTime; |
|||
|
|||
/** |
|||
* 序号 |
|||
*/ |
|||
@TableField(value = "sort") |
|||
@ApiModelProperty(value="序号") |
|||
private Integer sort; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
} |
|||
@ -0,0 +1,52 @@ |
|||
package com.bnyer.common.core.domain; |
|||
|
|||
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 io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.*; |
|||
|
|||
/** |
|||
* 绘画-模型风格表 |
|||
*/ |
|||
@ApiModel(value="com-bnyer-common-core-domain-PaintStyle") |
|||
@Getter |
|||
@Setter |
|||
@ToString |
|||
@AllArgsConstructor |
|||
@NoArgsConstructor |
|||
@TableName(value = "img_paint_style") |
|||
public class PaintStyle extends BaseDomain { |
|||
|
|||
/** |
|||
* 模型风格名称 |
|||
*/ |
|||
@TableField(value = "`name`") |
|||
@ApiModelProperty(value="模型风格名称") |
|||
private String name; |
|||
|
|||
/** |
|||
* 模型名称 |
|||
*/ |
|||
@TableField(value = "model_name") |
|||
@ApiModelProperty(value="模型名称") |
|||
private String modelName; |
|||
|
|||
/** |
|||
* 模型风格图片 |
|||
*/ |
|||
@TableField(value = "img_url") |
|||
@ApiModelProperty(value="模型风格图片") |
|||
private String imgUrl; |
|||
|
|||
/** |
|||
* 是否热门(0->正常;1->热门) |
|||
*/ |
|||
@TableField(value = "is_hot") |
|||
@ApiModelProperty(value="是否热门(0->正常;1->热门)") |
|||
private String isHot; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
} |
|||
@ -0,0 +1,93 @@ |
|||
package com.bnyer.common.core.domain; |
|||
|
|||
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 io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.*; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
@ApiModel(value="com-bnyer-common-core-domain-Product") |
|||
@Getter |
|||
@Setter |
|||
@ToString |
|||
@AllArgsConstructor |
|||
@NoArgsConstructor |
|||
@TableName(value = "img_product") |
|||
public class Product extends BaseDomain { |
|||
|
|||
/** |
|||
* 商品名称 |
|||
*/ |
|||
@TableField(value = "product_name") |
|||
@ApiModelProperty(value="商品名称") |
|||
private String productName; |
|||
|
|||
/** |
|||
* 商品原价 |
|||
*/ |
|||
@TableField(value = "product_origin_price") |
|||
@ApiModelProperty(value="商品原价") |
|||
private BigDecimal productOriginPrice; |
|||
|
|||
/** |
|||
* 商品售价 |
|||
*/ |
|||
@TableField(value = "product_sale_price") |
|||
@ApiModelProperty(value="商品售价") |
|||
private BigDecimal productSalePrice; |
|||
|
|||
/** |
|||
* 折扣 |
|||
*/ |
|||
@TableField(value = "product_discount") |
|||
@ApiModelProperty(value="折扣") |
|||
private String productDiscount; |
|||
|
|||
/** |
|||
* 节省钱数 |
|||
*/ |
|||
@TableField(value = "product_saved_money") |
|||
@ApiModelProperty(value="节省钱数") |
|||
private String productSavedMoney; |
|||
|
|||
/** |
|||
* 库存量 |
|||
*/ |
|||
@TableField(value = "product_num") |
|||
@ApiModelProperty(value="库存量") |
|||
private Integer productNum; |
|||
|
|||
/** |
|||
* 商品描述 |
|||
*/ |
|||
@TableField(value = "product_desc") |
|||
@ApiModelProperty(value="商品描述") |
|||
private String productDesc; |
|||
|
|||
/** |
|||
* 商品图片 |
|||
*/ |
|||
@TableField(value = "product_img") |
|||
@ApiModelProperty(value="商品图片") |
|||
private String productImg; |
|||
|
|||
/** |
|||
* 商品类型(0->直充;1->卡密) |
|||
*/ |
|||
@TableField(value = "product_type") |
|||
@ApiModelProperty(value="商品类型(0->直充;1->卡密)") |
|||
private String productType; |
|||
|
|||
/** |
|||
* 商品使用说明 |
|||
*/ |
|||
@TableField(value = "product_use_desc") |
|||
@ApiModelProperty(value="商品使用说明") |
|||
private String productUseDesc; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
} |
|||
@ -0,0 +1,127 @@ |
|||
package com.bnyer.common.core.domain; |
|||
|
|||
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.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
|||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.*; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
@ApiModel(value="com-bnyer-common-core-domain-ProductOrder") |
|||
@Getter |
|||
@Setter |
|||
@ToString |
|||
@AllArgsConstructor |
|||
@NoArgsConstructor |
|||
@TableName(value = "img_product_order") |
|||
public class ProductOrder implements Serializable { |
|||
/** |
|||
* id |
|||
*/ |
|||
@ApiModelProperty(value="id") |
|||
@TableId(value = "id", type = IdType.ASSIGN_ID) |
|||
private Long id; |
|||
|
|||
/** |
|||
* 订单流水号 |
|||
*/ |
|||
@TableField(value = "order_id") |
|||
@ApiModelProperty(value="订单流水号") |
|||
private String orderId; |
|||
|
|||
/** |
|||
* 平台用户唯一id |
|||
*/ |
|||
@TableField(value = "user_code") |
|||
@ApiModelProperty(value="平台用户唯一id") |
|||
private String userCode; |
|||
|
|||
/** |
|||
* 商品价格 |
|||
*/ |
|||
@TableField(value = "product_price") |
|||
@ApiModelProperty(value="商品价格") |
|||
private BigDecimal productPrice; |
|||
|
|||
/** |
|||
* 支付价格 |
|||
*/ |
|||
@TableField(value = "pay_price") |
|||
@ApiModelProperty(value="支付价格") |
|||
private BigDecimal payPrice; |
|||
|
|||
/** |
|||
* 充值账号 |
|||
*/ |
|||
@TableField(value = "account_num") |
|||
@ApiModelProperty(value="充值账号") |
|||
private String accountNum; |
|||
|
|||
/** |
|||
* 订单类型(0->直充;1->卡密) |
|||
*/ |
|||
@TableField(value = "order_type") |
|||
@ApiModelProperty(value="订单类型(0->直充;1->卡密)") |
|||
private String orderType; |
|||
|
|||
/** |
|||
* 订单状态(0->待支付;1->支付中;2->已完成;3->已失效;4->支付失败) |
|||
*/ |
|||
@TableField(value = "order_status") |
|||
@ApiModelProperty(value="订单状态(0->待支付;1->支付中;2->已完成;3->已失效;4->支付失败)") |
|||
private String orderStatus; |
|||
|
|||
/** |
|||
* 账号类型(0->手机号;1->QQ号) |
|||
*/ |
|||
@TableField(value = "account_type") |
|||
@ApiModelProperty(value="账号类型(0->手机号;1->QQ号)") |
|||
private String accountType; |
|||
|
|||
/** |
|||
* 来源平台(0->抖音;1->快手;2->微信) |
|||
*/ |
|||
@TableField(value = "platform") |
|||
@ApiModelProperty(value="来源平台(0->抖音;1->快手;2->微信)") |
|||
private String platform; |
|||
|
|||
/** |
|||
* 支付方式(0->支付宝;1->微信支付) |
|||
*/ |
|||
@TableField(value = "pay_type") |
|||
@ApiModelProperty(value="支付方式(0->支付宝;1->微信支付)") |
|||
private String payType; |
|||
|
|||
/** |
|||
* 是否展示(0->否;1->是) |
|||
*/ |
|||
@TableField(value = "is_show") |
|||
@ApiModelProperty(value="是否展示(0->否;1->是)") |
|||
private String isShow; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
@TableField(value = "create_time") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@ApiModelProperty(value="创建时间") |
|||
private Date createTime; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
@TableField(value = "update_time") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@ApiModelProperty(value="更新时间") |
|||
private Date updateTime; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
} |
|||
@ -0,0 +1,38 @@ |
|||
package com.bnyer.common.core.domain; |
|||
|
|||
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 io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.*; |
|||
|
|||
/** |
|||
* 绘画-提示词表 |
|||
*/ |
|||
@ApiModel(value="com-bnyer-common-core-domain-Prompt") |
|||
@Getter |
|||
@Setter |
|||
@ToString |
|||
@AllArgsConstructor |
|||
@NoArgsConstructor |
|||
@TableName(value = "img_prompt") |
|||
public class Prompt extends BaseDomain { |
|||
|
|||
/** |
|||
* 提示词 |
|||
*/ |
|||
@TableField(value = "`text`") |
|||
@ApiModelProperty(value="提示词") |
|||
private String text; |
|||
|
|||
/** |
|||
* 类型(0->绘画;1->gpt) |
|||
*/ |
|||
@TableField(value = "`type`") |
|||
@ApiModelProperty(value="类型(0->绘画;1->gpt)") |
|||
private String type; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
} |
|||
@ -0,0 +1,79 @@ |
|||
package com.bnyer.common.core.domain; |
|||
|
|||
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 io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.*; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
@ApiModel(value="com-bnyer-common-core-domain-UserVip") |
|||
@Getter |
|||
@Setter |
|||
@ToString |
|||
@AllArgsConstructor |
|||
@NoArgsConstructor |
|||
@TableName(value = "img_user_vip") |
|||
public class UserVip extends BaseDomain { |
|||
|
|||
/** |
|||
* vip名称 |
|||
*/ |
|||
@TableField(value = "vip_name") |
|||
@ApiModelProperty(value="vip名称") |
|||
private String vipName; |
|||
|
|||
/** |
|||
* vip编码 |
|||
*/ |
|||
@TableField(value = "vip_code") |
|||
@ApiModelProperty(value="vip编码") |
|||
private String vipCode; |
|||
|
|||
/** |
|||
* 原价 |
|||
*/ |
|||
@TableField(value = "origin_price") |
|||
@ApiModelProperty(value="原价") |
|||
private BigDecimal originPrice; |
|||
|
|||
/** |
|||
* 售价 |
|||
*/ |
|||
@TableField(value = "price") |
|||
@ApiModelProperty(value="售价") |
|||
private BigDecimal price; |
|||
|
|||
/** |
|||
* 描述 |
|||
*/ |
|||
@TableField(value = "description") |
|||
@ApiModelProperty(value="描述") |
|||
private String description; |
|||
|
|||
/** |
|||
* 热门描述 |
|||
*/ |
|||
@TableField(value = "hot_sign_desc") |
|||
@ApiModelProperty(value="热门描述") |
|||
private String hotSignDesc; |
|||
|
|||
/** |
|||
* 时长天数 |
|||
*/ |
|||
@TableField(value = "days") |
|||
@ApiModelProperty(value="时长天数") |
|||
private Integer days; |
|||
|
|||
/** |
|||
* 是否到期自动续费(0>否;1->是) |
|||
*/ |
|||
@TableField(value = "is_delay") |
|||
@ApiModelProperty(value="是否到期自动续费(0>否;1->是)") |
|||
private String isDelay; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
} |
|||
@ -0,0 +1,83 @@ |
|||
package com.bnyer.common.core.domain; |
|||
|
|||
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.fasterxml.jackson.annotation.JsonFormat; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.*; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
@ApiModel(value="com-bnyer-common-core-domain-UserVipRecord") |
|||
@Getter |
|||
@Setter |
|||
@ToString |
|||
@AllArgsConstructor |
|||
@NoArgsConstructor |
|||
@TableName(value = "img_user_vip_record") |
|||
public class UserVipRecord extends BaseDomain { |
|||
|
|||
/** |
|||
* 订单id |
|||
*/ |
|||
@TableField(value = "order_id") |
|||
@ApiModelProperty(value="订单id") |
|||
private String orderId; |
|||
|
|||
/** |
|||
* 用户手机号 |
|||
*/ |
|||
@TableField(value = "phone") |
|||
@ApiModelProperty(value="用户手机号") |
|||
private String phone; |
|||
|
|||
/** |
|||
* 用户vip表id |
|||
*/ |
|||
@TableField(value = "user_vip_id") |
|||
@ApiModelProperty(value="用户vip表id") |
|||
private Long userVipId; |
|||
|
|||
/** |
|||
* 开始时间 |
|||
*/ |
|||
@TableField(value = "start_time") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@ApiModelProperty(value="开始时间") |
|||
private Date startTime; |
|||
|
|||
/** |
|||
* 到期时间 |
|||
*/ |
|||
@TableField(value = "end_time") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@ApiModelProperty(value="到期时间") |
|||
private Date endTime; |
|||
|
|||
/** |
|||
* 支付金额 |
|||
*/ |
|||
@TableField(value = "price") |
|||
@ApiModelProperty(value="支付金额") |
|||
private BigDecimal price; |
|||
|
|||
/** |
|||
* vip类型状态(0->月卡;1->季卡;2->年卡) |
|||
*/ |
|||
@TableField(value = "type") |
|||
@ApiModelProperty(value="vip类型状态(0->月卡;1->季卡;2->年卡)") |
|||
private String type; |
|||
|
|||
/** |
|||
* 支付状态(0->待支付;1->已支付;2->支付失败;3->支付异常) |
|||
*/ |
|||
@TableField(value = "status") |
|||
@ApiModelProperty(value="支付状态(0->待支付;1->已支付;2->支付失败;3->支付异常)") |
|||
private String status; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
} |
|||
@ -0,0 +1,23 @@ |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Getter; |
|||
import lombok.Setter; |
|||
|
|||
import javax.validation.constraints.NotEmpty; |
|||
import javax.validation.constraints.NotNull; |
|||
|
|||
@Getter |
|||
@Setter |
|||
@ApiModel("ai绘画前端分页接收类") |
|||
public class AiPaintPageDto extends BasePageDto { |
|||
|
|||
@NotEmpty(message = "平台渠道不能为空!") |
|||
@ApiModelProperty(value="平台渠道") |
|||
private String source; |
|||
|
|||
@NotNull(message = "绘图者id不能为空!") |
|||
@ApiModelProperty(value="绘图者id") |
|||
private Long painterId; |
|||
} |
|||
@ -0,0 +1,31 @@ |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.Getter; |
|||
import lombok.NoArgsConstructor; |
|||
import lombok.Setter; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
|
|||
@Getter |
|||
@Setter |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
@ApiModel("支付宝支付参数接收类") |
|||
public class AlipayParamDto implements Serializable { |
|||
|
|||
@ApiModelProperty(value="商户订单号") |
|||
private String outTradeNo; |
|||
|
|||
@ApiModelProperty(value="订单名称") |
|||
private String subject; |
|||
|
|||
@ApiModelProperty(value="付款金额") |
|||
private String totalAmount; |
|||
|
|||
@ApiModelProperty(value="备注") |
|||
private String body; |
|||
} |
|||
@ -1,7 +1,9 @@ |
|||
package com.bnyer.img.dto; |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import com.bnyer.common.core.domain.Banner; |
|||
import com.bnyer.common.core.utils.bean.BeanUtils; |
|||
import com.bnyer.img.domain.Banner; |
|||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
|||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Getter; |
|||
@ -1,4 +1,4 @@ |
|||
package com.bnyer.img.dto; |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
@ -1,4 +1,4 @@ |
|||
package com.bnyer.img.dto; |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
@ -0,0 +1,26 @@ |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Getter; |
|||
import lombok.Setter; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
|
|||
@Getter |
|||
@Setter |
|||
@ApiModel("批量状态接收类") |
|||
public class BatchStatusDto implements Serializable { |
|||
|
|||
@ApiModelProperty(value="主键Ids") |
|||
private List<Long> ids; |
|||
|
|||
@NotNull(message = "状态不能为空!") |
|||
@ApiModelProperty(value="状态") |
|||
private String status; |
|||
|
|||
|
|||
} |
|||
@ -1,4 +1,4 @@ |
|||
package com.bnyer.img.dto; |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
@ -0,0 +1,26 @@ |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Getter; |
|||
import lombok.Setter; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
|
|||
|
|||
@Getter |
|||
@Setter |
|||
@ApiModel("卡密下单接收类") |
|||
public class CardBuyOrderDto implements Serializable { |
|||
|
|||
@NotNull(message = "商品id不能为空!") |
|||
@ApiModelProperty(value="商品id") |
|||
private Integer skuId; |
|||
|
|||
@NotNull(message = "购买数量不能为空!") |
|||
@ApiModelProperty(value="购买数量") |
|||
private Integer buyQuantity; |
|||
|
|||
|
|||
} |
|||
@ -1,4 +1,4 @@ |
|||
package com.bnyer.img.dto; |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
@ -1,4 +1,4 @@ |
|||
package com.bnyer.img.dto; |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
@ -1,5 +1,7 @@ |
|||
package com.bnyer.img.dto; |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
|||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Getter; |
|||
@ -0,0 +1,25 @@ |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Getter; |
|||
import lombok.Setter; |
|||
|
|||
import javax.validation.constraints.NotEmpty; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
|
|||
@Getter |
|||
@Setter |
|||
@ApiModel("公共素材库接收类") |
|||
public class CommonImgsDto implements Serializable { |
|||
|
|||
@NotEmpty(message = "类型不能为空!") |
|||
@ApiModelProperty(value="类型") |
|||
private String type; |
|||
|
|||
@NotEmpty(message = "图片地址不能为空!") |
|||
@ApiModelProperty(value="图片地址") |
|||
private List<String> imgUrls; |
|||
} |
|||
@ -0,0 +1,19 @@ |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Getter; |
|||
import lombok.Setter; |
|||
|
|||
|
|||
@Getter |
|||
@Setter |
|||
@ApiModel("公共素材库图片分页接收类") |
|||
public class CommonImgsPageDto extends BasePageDto { |
|||
|
|||
@ApiModelProperty(value="图片类型(0->头像;1->壁纸;2->插画)") |
|||
private String type; |
|||
|
|||
@ApiModelProperty(value="是否显示 (0->隐藏;1->显示)") |
|||
private String isShow; |
|||
} |
|||
@ -0,0 +1,26 @@ |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import com.bnyer.common.core.annotation.Desensitized; |
|||
import com.bnyer.common.core.enums.SensitiveTypeEnum; |
|||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
|||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Getter; |
|||
import lombok.Setter; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
|
|||
@Getter |
|||
@Setter |
|||
@ApiModel("艺术家账户存在接收类") |
|||
public class CreatorAccountExistDto implements Serializable { |
|||
|
|||
@ApiModelProperty(value="艺术家id") |
|||
private Long creatorId; |
|||
|
|||
@Desensitized(type = SensitiveTypeEnum.MOBILE_PHONE) |
|||
@ApiModelProperty(value="账户账号(加密)") |
|||
private String accountNo; |
|||
} |
|||
@ -1,4 +1,4 @@ |
|||
package com.bnyer.img.dto; |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
@ -1,5 +1,7 @@ |
|||
package com.bnyer.img.dto; |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
|||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Getter; |
|||
@ -1,5 +1,7 @@ |
|||
package com.bnyer.img.dto; |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
|||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Getter; |
|||
@ -1,5 +1,7 @@ |
|||
package com.bnyer.img.dto; |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
|||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Getter; |
|||
@ -1,4 +1,4 @@ |
|||
package com.bnyer.img.dto; |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
@ -0,0 +1,19 @@ |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Getter; |
|||
import lombok.Setter; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
@Getter |
|||
@Setter |
|||
@ApiModel("艺术家登出入参") |
|||
public class CreatorLogoutDto implements Serializable { |
|||
|
|||
@NotBlank(message = "手机号不能为空!") |
|||
@ApiModelProperty(value = "手机号") |
|||
private String phone; |
|||
} |
|||
@ -1,7 +1,9 @@ |
|||
package com.bnyer.img.dto; |
|||
package com.bnyer.common.core.dto; |
|||
|
|||
import com.bnyer.common.core.domain.Creator; |
|||
import com.bnyer.common.core.utils.bean.BeanUtils; |
|||
import com.bnyer.img.domain.Creator; |
|||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
|||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Getter; |
|||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue