|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- definitions:
- param.CommunityParams:
- properties:
- avatar:
- type: string
- email:
- type: string
- name:
- type: string
- required:
- - avatar
- - email
- - name
- type: object
- param.CreateUserParams:
- properties:
- avatar:
- type: string
- email:
- type: string
- nickname:
- type: string
- password:
- type: string
- required:
- - avatar
- - email
- - nickname
- - password
- type: object
- param.RegisterAdminParams:
- properties:
- code:
- type: string
- community_info:
- $ref: '#/definitions/param.CommunityParams'
- user_info:
- $ref: '#/definitions/param.CreateUserParams'
- required:
- - code
- - community_info
- - user_info
- type: object
- param.RegisterStaffParams:
- properties:
- community_id:
- type: integer
- user_info:
- $ref: '#/definitions/param.CreateUserParams'
- required:
- - community_id
- - user_info
- type: object
- param.SendToParams:
- properties:
- email:
- type: string
- required:
- - email
- type: object
- response.Response:
- properties:
- code:
- type: integer
- data: {}
- msg:
- type: string
- type: object
- info:
- contact: {}
- paths:
- /api/v1/community/create:
- post:
- description: Create a new community
- parameters:
- - description: Community
- in: body
- name: data
- required: true
- schema:
- $ref: '#/definitions/param.CommunityParams'
- produces:
- - application/json
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- summary: CreateCommunity
- tags:
- - community
- /api/v1/email/code:
- post:
- description: Use email to send verification code
- parameters:
- - description: Email address
- in: body
- name: data
- required: true
- schema:
- $ref: '#/definitions/param.SendToParams'
- produces:
- - application/json
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- summary: SendCode
- tags:
- - mail
- /api/v1/openim/callback:
- post:
- description: Support OpenIM callback
- produces:
- - application/json
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- summary: OpenIMCallback
- tags:
- - openim
- /api/v1/register/admin:
- post:
- description: Create a new admin
- parameters:
- - description: RegisterAdminParams
- in: body
- name: data
- required: true
- schema:
- $ref: '#/definitions/param.RegisterAdminParams'
- produces:
- - application/json
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- summary: AdminRegister
- tags:
- - user
- /api/v1/register/staff:
- post:
- description: Create a new staff
- parameters:
- - description: RegisterStaffParams
- in: body
- name: data
- required: true
- schema:
- $ref: '#/definitions/param.RegisterStaffParams'
- produces:
- - application/json
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- summary: StaffRegister
- tags:
- - user
- swagger: "2.0"
|