SWM-Codection / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
0 stars 0 forks source link

Discussion 기능 제작 #2

Open cloudchamb3r opened 2 months ago

cloudchamb3r commented 2 months ago

db 테이블:

sangcheol12 commented 2 months ago
스크린샷 2024-07-09 오후 3 56 19

현재 구조 샘플)

apigateway-service/.gitignore
apigateway-service/build.gradle
apigateway-service/gradle/wrapper/gradle-wrapper.jar
apigateway-service/gradle/wrapper/gradle-wrapper.properties
"apigateway-service": {
        ".gitignore": {},
        "build.gradle": {},
        "gradle": {
            "wrapper": {
                "gradle-wrapper.jar": {},
                "gradle-wrapper.properties": {}
            }
        }
    }
}

Trie 자료구조로 저장이 되어 있는 상태인데 파일 구조를 트리로 반환하는 json 값 입니다. 사용성 측면에서 변경이 필요하다면 예시 샘플 대략적으로 알려주세요

cloudchamb3r commented 2 months ago

@sangcheol12 디렉토리인지 혹은 파일인지에 대해 타입이 명시가 되었으면 좋겠어요 추가로 안에 있는 정보를 가져오려면 어떤식으로 요청을 날려야하는지에 대한 정보도 있으면 좋을 것 같습니다

sangcheol12 commented 2 months ago

반영해서 수정해 놓을게요! 파일 안의 내용을 가져오기 위한 라우터 url은 아래와 같습니다. GET /{username}/{reponame}/{filepath}/discussions/contents

sangcheol12 commented 2 months ago

Discussion 컬럼 모음

val id: Long, val repoId: Long, val index: Long? = null, val posterId: Long, val commitHash: String, val name: String? = null, val content: String? = null, val isClosed: Boolean? = null, val numComments: Int? = null, val pinOrder: Int? = null, val deadlineUnix: Long? = null, val closedUnix: Long? = null, val isLocked: Boolean?