Commit Graph

6 Commits (cb940c4312981893fdb54cbd0e07520546776b34)

Author SHA1 Message Date
KN4CK3R f8335444de
Add Active and ProhibitLogin to API ()
* Added active and prohibit_login.

* Do not omit fields for normal users.
KN4CK3R 67e10397af
Add Location, Website and Biography to API ()
6543 290cf75f93
[refactor] Unify the export of user data via API ()
* [refactor] unify how user data is exported via API

* test time via unix timestamp
6543 8d5c795cc4
[API] Add Restricted Field to User ()
* Expose Restricted field for User

* Add Option to Change Restricted on User via adminEditUser API

* Add test who change restricted & test if it changed it ...

* make generate-swagger

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
6543 d453533beb
[Refactor] Move APIFormat functions into convert package ()
* USER APIFormat -> ToUser

* Migrate more and mark APIFormat deprecated

* models.Comment APIFormat() -> convert.ToComment

* models.Release APIFormat() -> convert.ToRelease

* models.Attachments APIFormat() -> convert.ToReleaseAttachments

* models.CommitStatus APIFormat() -> convert.ToCommitStatus

* finish migration to convert.ToUser

* Move Test

* Imprufe Test

* fix test

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
6543 06480af472
Convert User expose ID each time ()
* git blame tells me a lot of gitea things happen here around 2018, add header

* move user code int its own file

* expose user id

* adopt things from APIFormat

* fix test

* CI.restart()