-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from k-hackathon-bloom/feature/#59_purchase
아이템 구매 로직 추가
- Loading branch information
Showing
49 changed files
with
1,561 additions
and
413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
= API 문서 | ||
BloomBackend Team | ||
2024-08-27 | ||
:toc: left | ||
:toclevels: 2 | ||
:source-highlighter: highlightjs | ||
:sectlinks: | ||
|
||
== 크레딧 API | ||
|
||
=== 1. 아이템 구매 api | ||
|
||
==== HTTP request | ||
|
||
include::{snippets}/api-credit-test/purchase/http-request.adoc[] | ||
|
||
==== request body | ||
|
||
include::{snippets}/api-credit-test/purchase/request-fields.adoc[] | ||
|
||
==== HTTP response | ||
|
||
include::{snippets}/api-credit-test/purchase/http-response.adoc[] | ||
|
||
==== response body | ||
|
||
include::{snippets}/api-credit-test/purchase/response-fields.adoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
src/main/generated/com/example/bloombackend/achievement/entity/QFlowerEntity.java
This file was deleted.
Oops, something went wrong.
47 changes: 47 additions & 0 deletions
47
src/main/generated/com/example/bloombackend/credit/entity/QPurchaseLogEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package com.example.bloombackend.credit.entity; | ||
|
||
import static com.querydsl.core.types.PathMetadataFactory.*; | ||
|
||
import com.querydsl.core.types.dsl.*; | ||
|
||
import com.querydsl.core.types.PathMetadata; | ||
import javax.annotation.processing.Generated; | ||
import com.querydsl.core.types.Path; | ||
|
||
|
||
/** | ||
* QPurchaseLogEntity is a Querydsl query type for PurchaseLogEntity | ||
*/ | ||
@Generated("com.querydsl.codegen.DefaultEntitySerializer") | ||
public class QPurchaseLogEntity extends EntityPathBase<PurchaseLogEntity> { | ||
|
||
private static final long serialVersionUID = 969509316L; | ||
|
||
public static final QPurchaseLogEntity purchaseLogEntity = new QPurchaseLogEntity("purchaseLogEntity"); | ||
|
||
public final NumberPath<Integer> amount = createNumber("amount", Integer.class); | ||
|
||
public final NumberPath<Integer> balance = createNumber("balance", Integer.class); | ||
|
||
public final EnumPath<CreditType> creditType = createEnum("creditType", CreditType.class); | ||
|
||
public final NumberPath<Long> id = createNumber("id", Long.class); | ||
|
||
public final NumberPath<Long> itemId = createNumber("itemId", Long.class); | ||
|
||
public final NumberPath<Long> userId = createNumber("userId", Long.class); | ||
|
||
public QPurchaseLogEntity(String variable) { | ||
super(PurchaseLogEntity.class, forVariable(variable)); | ||
} | ||
|
||
public QPurchaseLogEntity(Path<? extends PurchaseLogEntity> path) { | ||
super(path.getType(), path.getMetadata()); | ||
} | ||
|
||
public QPurchaseLogEntity(PathMetadata metadata) { | ||
super(PurchaseLogEntity.class, metadata); | ||
} | ||
|
||
} | ||
|
55 changes: 55 additions & 0 deletions
55
src/main/generated/com/example/bloombackend/credit/entity/QUserCreditEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package com.example.bloombackend.credit.entity; | ||
|
||
import static com.querydsl.core.types.PathMetadataFactory.*; | ||
|
||
import com.querydsl.core.types.dsl.*; | ||
|
||
import com.querydsl.core.types.PathMetadata; | ||
import javax.annotation.processing.Generated; | ||
import com.querydsl.core.types.Path; | ||
import com.querydsl.core.types.dsl.PathInits; | ||
|
||
|
||
/** | ||
* QUserCreditEntity is a Querydsl query type for UserCreditEntity | ||
*/ | ||
@Generated("com.querydsl.codegen.DefaultEntitySerializer") | ||
public class QUserCreditEntity extends EntityPathBase<UserCreditEntity> { | ||
|
||
private static final long serialVersionUID = 1485991529L; | ||
|
||
private static final PathInits INITS = PathInits.DIRECT2; | ||
|
||
public static final QUserCreditEntity userCreditEntity = new QUserCreditEntity("userCreditEntity"); | ||
|
||
public final NumberPath<Integer> balance = createNumber("balance", Integer.class); | ||
|
||
public final EnumPath<CreditType> creditType = createEnum("creditType", CreditType.class); | ||
|
||
public final NumberPath<Long> id = createNumber("id", Long.class); | ||
|
||
public final com.example.bloombackend.user.entity.QUserEntity user; | ||
|
||
public QUserCreditEntity(String variable) { | ||
this(UserCreditEntity.class, forVariable(variable), INITS); | ||
} | ||
|
||
public QUserCreditEntity(Path<? extends UserCreditEntity> path) { | ||
this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS)); | ||
} | ||
|
||
public QUserCreditEntity(PathMetadata metadata) { | ||
this(metadata, PathInits.getFor(metadata, INITS)); | ||
} | ||
|
||
public QUserCreditEntity(PathMetadata metadata, PathInits inits) { | ||
this(UserCreditEntity.class, metadata, inits); | ||
} | ||
|
||
public QUserCreditEntity(Class<? extends UserCreditEntity> type, PathMetadata metadata, PathInits inits) { | ||
super(type, metadata, inits); | ||
this.user = inits.isInitialized("user") ? new com.example.bloombackend.user.entity.QUserEntity(forProperty("user")) : null; | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
src/main/generated/com/example/bloombackend/item/entity/QUserItemEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package com.example.bloombackend.item.entity; | ||
|
||
import static com.querydsl.core.types.PathMetadataFactory.*; | ||
|
||
import com.querydsl.core.types.dsl.*; | ||
|
||
import com.querydsl.core.types.PathMetadata; | ||
import javax.annotation.processing.Generated; | ||
import com.querydsl.core.types.Path; | ||
import com.querydsl.core.types.dsl.PathInits; | ||
|
||
|
||
/** | ||
* QUserItemEntity is a Querydsl query type for UserItemEntity | ||
*/ | ||
@Generated("com.querydsl.codegen.DefaultEntitySerializer") | ||
public class QUserItemEntity extends EntityPathBase<UserItemEntity> { | ||
|
||
private static final long serialVersionUID = -443148835L; | ||
|
||
private static final PathInits INITS = PathInits.DIRECT2; | ||
|
||
public static final QUserItemEntity userItemEntity = new QUserItemEntity("userItemEntity"); | ||
|
||
public final NumberPath<Long> id = createNumber("id", Long.class); | ||
|
||
public final QItemEntity item; | ||
|
||
public final NumberPath<Long> userId = createNumber("userId", Long.class); | ||
|
||
public QUserItemEntity(String variable) { | ||
this(UserItemEntity.class, forVariable(variable), INITS); | ||
} | ||
|
||
public QUserItemEntity(Path<? extends UserItemEntity> path) { | ||
this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS)); | ||
} | ||
|
||
public QUserItemEntity(PathMetadata metadata) { | ||
this(metadata, PathInits.getFor(metadata, INITS)); | ||
} | ||
|
||
public QUserItemEntity(PathMetadata metadata, PathInits inits) { | ||
this(UserItemEntity.class, metadata, inits); | ||
} | ||
|
||
public QUserItemEntity(Class<? extends UserItemEntity> type, PathMetadata metadata, PathInits inits) { | ||
super(type, metadata, inits); | ||
this.item = inits.isInitialized("item") ? new QItemEntity(forProperty("item")) : null; | ||
} | ||
|
||
} | ||
|
59 changes: 59 additions & 0 deletions
59
src/main/generated/com/example/bloombackend/item/entity/items/QSeedEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package com.example.bloombackend.item.entity.items; | ||
|
||
import static com.querydsl.core.types.PathMetadataFactory.*; | ||
|
||
import com.querydsl.core.types.dsl.*; | ||
|
||
import com.querydsl.core.types.PathMetadata; | ||
import javax.annotation.processing.Generated; | ||
import com.querydsl.core.types.Path; | ||
|
||
|
||
/** | ||
* QSeedEntity is a Querydsl query type for SeedEntity | ||
*/ | ||
@Generated("com.querydsl.codegen.DefaultEntitySerializer") | ||
public class QSeedEntity extends EntityPathBase<SeedEntity> { | ||
|
||
private static final long serialVersionUID = -2120067970L; | ||
|
||
public static final QSeedEntity seedEntity = new QSeedEntity("seedEntity"); | ||
|
||
public final com.example.bloombackend.item.entity.QItemEntity _super = new com.example.bloombackend.item.entity.QItemEntity(this); | ||
|
||
public final StringPath bigIconUrl = createString("bigIconUrl"); | ||
|
||
//inherited | ||
public final DatePath<java.time.LocalDate> endDate = _super.endDate; | ||
|
||
//inherited | ||
public final NumberPath<Long> id = _super.id; | ||
|
||
//inherited | ||
public final BooleanPath isDefault = _super.isDefault; | ||
|
||
//inherited | ||
public final StringPath name = _super.name; | ||
|
||
//inherited | ||
public final NumberPath<Integer> price = _super.price; | ||
|
||
public final StringPath smallIconUrl = createString("smallIconUrl"); | ||
|
||
//inherited | ||
public final StringPath thumbnailImgUrl = _super.thumbnailImgUrl; | ||
|
||
public QSeedEntity(String variable) { | ||
super(SeedEntity.class, forVariable(variable)); | ||
} | ||
|
||
public QSeedEntity(Path<? extends SeedEntity> path) { | ||
super(path.getType(), path.getMetadata()); | ||
} | ||
|
||
public QSeedEntity(PathMetadata metadata) { | ||
super(SeedEntity.class, metadata); | ||
} | ||
|
||
} | ||
|
Oops, something went wrong.