update auth.go, database.go, docs.go, forum.go, go.mod, go.sum, main.go, post_schema.go, role.go, server.go, service.go, swagger.json, swagger.yaml, thread_schema.go

This commit is contained in:
redtea committed 2024-10-21 12:00:00 +03:00
1 parent 42c7f5795d
commit 43505548f7
14 files changed
+855

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs
import "github.com/swaggo/swag"
const docTemplate = `{
"schemes": {{ marshal .Schemes }},
"swagger": "2.0",
"info": {
"description": "{{escape .Description}}",
"title": "{{.Title}}",
"contact": {
"name": "API Support",
"email": "red.tea.dev@gmail.com"
},
"version": "{{.Version}}"
},
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {}
}`
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "1.0",
Host: "forum.easystartup.su",
BasePath: "/api",
Schemes: []string{},
Title: "EasyStartup Forum",
Description: "Forum service for EasyStartup.",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
}
func init() {
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
}
+15
View File
@@ -0,0 +1,15 @@
{
"swagger": "2.0",
"info": {
"description": "Forum service for EasyStartup.",
"title": "EasyStartup Forum",
"contact": {
"name": "API Support",
"email": "red.tea.dev@gmail.com"
},
"version": "1.0"
},
"host": "forum.easystartup.su",
"basePath": "/api",
"paths": {}
}
+11
View File
@@ -0,0 +1,11 @@
basePath: /api
host: forum.easystartup.su
info:
contact:
email: red.tea.dev@gmail.com
name: API Support
description: Forum service for EasyStartup.
title: EasyStartup Forum
version: "1.0"
paths: {}
swagger: "2.0"