Skip to content

Commit

Permalink
๐Ÿž BugFix/#60 - Store์˜ Title, Introduction, Name ํ•„๋“œ ํฌ๊ธฐ ์ œํ•œ์œผ๋กœ ๋ฐœ์ƒํ•œ ๋ฒ„๊ทธ ํ•ด๊ฒฐ (#โ€ฆ
Browse files Browse the repository at this point in the history
  • Loading branch information
dongkyeomjang authored Nov 22, 2024
1 parent edeb653 commit a4c295b
Show file tree
Hide file tree
Showing 2 changed files with 231 additions and 4 deletions.
229 changes: 228 additions & 1 deletion http/auth/AuthControllerHttpRequest.http
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,231 @@ Content-Type: application/json
### 2.2 ํƒˆํ‡ดํ•˜๊ธฐ
// @no-log
DELETE {{host_url}}/api/v1/auth
Authorization: Bearer {{access_token}}
Authorization: Bearer {{access_token}}

### ๋”๋ฏธ1 ์‚ฝ์ž…
// @no-log
POST {{host_url}}/api/v1/auth/sign-up
Content-Type: multipart/form-data; boundary=boundary

--boundary
Content-Disposition: form-data; name="logo"; filename="image.jpeg"
Content-Type: image/png

< /Users/kyeom/Desktop/1_profile.jpeg

--boundary
Content-Disposition: form-data; name="banner"; filename="image.png"
Content-Type: image/png

< /Users/kyeom/Desktop/1_banner.png

--boundary
Content-Disposition: form-data; name="body"
Content-Type: application/json

{
"serial_id" : "{{dummy.dummy1.serial_id}}",
"password" : "{{dummy.dummy1.password}}",
"store_info" :
{
"onjung_tag" : ["{{dummy.dummy1.store_info.onjung_tag[0]}}"],
"title" : "{{dummy.dummy1.store_info.title}}",
"youtube_url" : "{{dummy.dummy1.store_info.youtube_url}}",
"name" : "{{dummy.dummy1.store_info.name}}",
"category" : "{{dummy.dummy1.store_info.category}}",
"introduction" : "{{dummy.dummy1.store_info.introduction}}"
},
"ocr_info" :
{
"store_name" : "{{dummy.dummy1.ocr_info.store_name}}",
"address_name" : "{{dummy.dummy1.ocr_info.address_name}}"
},
"bank_info" :
{
"name": "{{dummy.dummy1.bank_info.name}}",
"account_number" : "{{dummy.dummy1.bank_info.account_number}}"
}
}

### ๋”๋ฏธ2 ์‚ฝ์ž…
// @no-log
POST {{host_url}}/api/v1/auth/sign-up
Content-Type: multipart/form-data; boundary=boundary

--boundary
Content-Disposition: form-data; name="logo"; filename="image.png"
Content-Type: image/png

< /Users/kyeom/Desktop/2_profile.jpeg

--boundary
Content-Disposition: form-data; name="banner"; filename="image.png"
Content-Type: image/png

< /Users/kyeom/Desktop/2_banner.png

--boundary
Content-Disposition: form-data; name="body"
Content-Type: application/json


{
"serial_id" : "{{dummy.dummy2.serial_id}}",
"password" : "{{dummy.dummy2.password}}",
"store_info" :
{
"onjung_tag" : ["{{dummy.dummy2.store_info.onjung_tag[0]}}"],
"title" : "{{dummy.dummy2.store_info.title}}",
"youtube_url" : "{{dummy.dummy2.store_info.youtube_url}}",
"name" : "{{dummy.dummy2.store_info.name}}",

"category" : "{{dummy.dummy2.store_info.category}}",
"introduction" : "{{dummy.dummy2.store_info.introduction}}"
},
"ocr_info" :
{
"store_name" : "{{dummy.dummy2.ocr_info.store_name}}",
"address_name" : "{{dummy.dummy2.ocr_info.address_name}}"
},
"bank_info" :
{
"name": "{{dummy.dummy2.bank_info.name}}",
"account_number" : "{{dummy.dummy2.bank_info.account_number}}"
}
}

### ๋”๋ฏธ3 ์‚ฝ์ž…
// @no-log
POST {{host_url}}/api/v1/auth/sign-up
Content-Type: multipart/form-data; boundary=boundary

--boundary
Content-Disposition: form-data; name="logo"; filename="image.png"
Content-Type: image/png

< /Users/kyeom/Desktop/3_profile.jpeg

--boundary
Content-Disposition: form-data; name="banner"; filename="image.png"
Content-Type: image/png

< /Users/kyeom/Desktop/3_banner.png

--boundary
Content-Disposition: form-data; name="body"
Content-Type: application/json

{
"serial_id" : "{{dummy.dummy3.serial_id}}",
"password" : "{{dummy.dummy3.password}}",
"store_info" :
{
"onjung_tag" : ["{{dummy.dummy3.store_info.onjung_tag[0]}}"],
"title" : "{{dummy.dummy3.store_info.title}}",
"youtube_url" : "{{dummy.dummy3.store_info.youtube_url}}",
"name" : "{{dummy.dummy3.store_info.name}}",
"category" : "{{dummy.dummy3.store_info.category}}",
"introduction" : "{{dummy.dummy3.store_info.introduction}}"
},
"ocr_info" :
{
"store_name" : "{{dummy.dummy3.ocr_info.store_name}}",
"address_name" : "{{dummy.dummy3.ocr_info.address_name}}"
},
"bank_info" :
{
"name": "{{dummy.dummy3.bank_info.name}}",
"account_number" : "{{dummy.dummy3.bank_info.account_number}}"
}
}

### ๋”๋ฏธ4 ์‚ฝ์ž…
// @no-log
POST {{host_url}}/api/v1/auth/sign-up
Content-Type: multipart/form-data; boundary=boundary

--boundary
Content-Disposition: form-data; name="logo"; filename="image.png"
Content-Type: image/png

< /Users/kyeom/Desktop/4_profile.png

--boundary
Content-Disposition: form-data; name="banner"; filename="image.png"
Content-Type: image/png

< /Users/kyeom/Desktop/4_banner.png

--boundary
Content-Disposition: form-data; name="body"
Content-Type: application/json

{
"serial_id" : "{{dummy.dummy4.serial_id}}",
"password" : "{{dummy.dummy4.password}}",
"store_info" :
{
"onjung_tag" : ["{{dummy.dummy4.store_info.onjung_tag[0]}}"],
"title" : "{{dummy.dummy4.store_info.title}}",
"youtube_url" : "{{dummy.dummy4.store_info.youtube_url}}",
"name" : "{{dummy.dummy4.store_info.name}}",
"category" : "{{dummy.dummy4.store_info.category}}",
"introduction" : "{{dummy.dummy4.store_info.introduction}}"
},
"ocr_info" :
{
"store_name" : "{{dummy.dummy4.ocr_info.store_name}}",
"address_name" : "{{dummy.dummy4.ocr_info.address_name}}"
},
"bank_info" :
{
"name": "{{dummy.dummy4.bank_info.name}}",
"account_number" : "{{dummy.dummy4.bank_info.account_number}}"
}
}

### ๋”๋ฏธ5 ์‚ฝ์ž…
// @no-log
POST {{host_url}}/api/v1/auth/sign-up
Content-Type: multipart/form-data; boundary=boundary

--boundary
Content-Disposition: form-data; name="logo"; filename="image.png"
Content-Type: image/png

< /Users/kyeom/Desktop/5_profile.jpeg

--boundary
Content-Disposition: form-data; name="banner"; filename="image.png"
Content-Type: image/png

< /Users/kyeom/Desktop/5_banner.png

--boundary
Content-Disposition: form-data; name="body"
Content-Type: application/json

{
"serial_id" : "{{dummy.dummy5.serial_id}}",
"password" : "{{dummy.dummy5.password}}",
"store_info" :
{
"onjung_tag" : ["{{dummy.dummy5.store_info.onjung_tag[0]}}"],
"title" : "{{dummy.dummy5.store_info.title}}",
"youtube_url" : "{{dummy.dummy5.store_info.youtube_url}}",
"name" : "{{dummy.dummy5.store_info.name}}",
"category" : "{{dummy.dummy5.store_info.category}}",
"introduction" : "{{dummy.dummy5.store_info.introduction}}"
},
"ocr_info" :
{
"store_name" : "{{dummy.dummy5.ocr_info.store_name}}",
"address_name" : "{{dummy.dummy5.ocr_info.address_name}}"
},
"bank_info" :
{
"name": "{{dummy.dummy5.bank_info.name}}",
"account_number" : "{{dummy.dummy5.bank_info.account_number}}"
}
}
6 changes: 3 additions & 3 deletions src/main/java/com/daon/onjung/account/domain/Store.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class Store {
@Column(name = "onjung_tags")
private Set<EOnjungTag> onjungTags = new HashSet<>();

@Column(name = "title", length = 30, nullable = false)
@Column(name = "title", length = 100, nullable = false)
private String title;

@Column(name = "youtube_url", length = 2080, nullable = false)
Expand All @@ -49,14 +49,14 @@ public class Store {
@Column(name = "logo_img_url", length = 2080, nullable = false)
private String logoImgUrl;

@Column(name = "name", length = 15, nullable = false)
@Column(name = "name", length = 100, nullable = false)
private String name;

@Enumerated(EnumType.STRING)
@Column(name = "category")
private ECategory category;

@Column(name = "introduction", length = 100, nullable = false)
@Column(name = "introduction", length = 2000, nullable = false)
private String introduction;

@Column(name = "ocr_store_name", length = 50, nullable = false)
Expand Down

0 comments on commit a4c295b

Please sign in to comment.