Skip to content

Commit 61f8827

Browse files
committed
Update Org
1 parent beacbe0 commit 61f8827

File tree

11 files changed

+15
-5
lines changed

11 files changed

+15
-5
lines changed

.github/workflows/coding-service-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919
cancel-in-progress: true
2020

2121
jobs:
22-
#########
22+
##########
2323
build-push:
2424
runs-on: ubuntu-latest
2525

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ concurrency:
1717
cancel-in-progress: false
1818

1919
jobs:
20-
##
20+
###
2121
deploy:
2222
if: >
2323
(github.event_name == 'workflow_dispatch') ||

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ concurrency:
1616

1717

1818
jobs:
19-
#########
19+
##########
2020
build-push:
2121
runs-on: ubuntu-latest
2222
strategy:

.github/workflows/file-service-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919
cancel-in-progress: true
2020

2121
jobs:
22-
#########
22+
##########
2323
build-push:
2424
runs-on: ubuntu-latest
2525

.github/workflows/sandbox-image-build-on-server.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
contents: read
1313

1414
jobs:
15-
###
15+
####
1616
build-on-server:
1717
runs-on: ubuntu-latest
1818
steps:

common-events/src/main/java/events/org/data/OrganizationPayload.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
public class OrganizationPayload {
1414
String name;
1515
String description;
16+
String ownerId;
1617
String logoUrl;
1718
String email;
1819
String phone;

org-service/src/main/java/com/codecampus/organization/dto/response/OrganizationResponse.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public class OrganizationResponse {
1818
String id;
1919
String name;
2020
String description;
21+
String ownerId;
2122
String logoUrl;
2223
String email;
2324
String phone;

org-service/src/main/java/com/codecampus/organization/entity/Organization.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public class Organization extends AuditMetadata {
3737
@Column(length = 2000)
3838
String description;
3939

40+
String ownerId;
41+
4042
@Column(length = 512)
4143
String logoUrl;
4244

org-service/src/main/java/com/codecampus/organization/service/OrganizationService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,14 @@ public class OrganizationService {
4141
public void create(
4242
CreateOrganizationForm form) {
4343

44+
String userId = AuthenticationHelper.getMyUserId();
45+
4446
String logoUrl = organizationHelper.uploadIfAny(form.getLogo());
4547

4648
Organization o = Organization.builder()
4749
.name(form.getName())
4850
.description(form.getDescription())
51+
.ownerId(userId)
4952
.logoUrl(logoUrl)
5053
.email(form.getEmail())
5154
.phone(form.getPhone())

search-service/src/main/java/com/codecampus/search/dto/response/OrganizationSearchResponse.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public class OrganizationSearchResponse {
1818
String id;
1919
String name;
2020
String description;
21+
String ownerId;
2122
String logoUrl;
2223
String email;
2324
String phone;

0 commit comments

Comments
 (0)