Commit Graph

178 Commits

Author SHA1 Message Date
kumfo c3f42f1d9e fix: search sql parse error when query words is empty 2022-11-01 17:20:34 +08:00
LinkinStar c10930d160 fix: revision use created_at as the condition 2022-11-01 16:27:33 +08:00
LinkinStar 425159ecc3 merge: repo unit test 2022-11-01 16:22:51 +08:00
LinkinStar cec446047d Merge branch 'main' into feat/repo-unit-test
# Conflicts:
#	cmd/answer/wire_gen.go
#	go.mod
#	go.sum
#	internal/controller/user_controller.go
#	internal/repo/notification/notification_repo.go
#	internal/repo/revision/revision_repo.go
#	internal/repo/tag/tag_rel_repo.go
#	internal/repo/tag/tag_repo.go
#	internal/schema/user_schema.go
2022-11-01 16:17:03 +08:00
LinkinStar e91ef5c444 feat: add sqlite3 and update go mod 2022-11-01 15:41:21 +08:00
LinkinStar 8232e1ec2d style: formatting naming 2022-11-01 15:38:06 +08:00
LinkinStar 6e5d89d593 Merge branch 'github-main'
# Conflicts:
#	go.mod
#	internal/entity/answer_entity.go
#	internal/schema/question_schema.go
#	internal/service/user_service.go
2022-11-01 15:37:22 +08:00
LinkinStar 014472a37b style: formatting naming 2022-11-01 15:27:37 +08:00
Tai Groot 59e2e1f304
Running gofumpt against repo (#49)
* starting on gofumpt

* continuing on gofumpt

* continuing on gofumpt

* finish gofumpt review

* added changes requested by LinkinStars' review

Co-authored-by: LinkinStars <linkinstar@foxmail.com>
2022-11-01 15:25:44 +08:00
edocevol c8175744aa refactor: repo code should procees error 2022-11-01 15:12:20 +08:00
kumfo 81083af8ea Merge branch 'main' into feat/backyard-search 2022-11-01 09:12:41 +08:00
kumfo bd888c121a feat: admin's question, answer and user search 2022-11-01 09:12:12 +08:00
linkinstar 494abd9d5b Merge branch 'ai_update_user_avatar' into 'main'
update user change email

See merge request opensource/answer!136
2022-10-31 08:59:47 +00:00
aichy126 220eefc2e7 update user change email 2022-10-31 16:53:59 +08:00
aichy126 302150aa6e update user change email 2022-10-31 16:50:38 +08:00
linkinstar 0eb6d16e55 Merge branch 'feat/sqlite3-default' into 'main'
feat: use sqlite for default initialization database

See merge request opensource/answer!135
2022-10-31 08:35:55 +00:00
LinkinStar 05986a3249 feat: use sqlite for default initialization database 2022-10-31 16:20:58 +08:00
aichy126 beed798aa6 fix userlist update avatar 2022-10-31 16:13:01 +08:00
aichy126 0ec198bad0 update AvatarInfo to show img 2022-10-31 11:04:51 +08:00
linkinstar 67b59cf1df Merge branch 'ci/sqlite' into 'main'
ci: update dockerfile and makefile for sqlite embed issue

See merge request opensource/answer!121
2022-10-29 02:54:36 +00:00
LinkinStar 1cd83f4e87 feat: change default cache dir to data, create dir if not exist. 2022-10-28 20:24:04 +08:00
LinkinStar 95cb136e3f feat: add user repo unit test 2022-10-28 19:28:08 +08:00
LinkinStar 9c1df37e82 feat: user info api allow no login user use and return empty data 2022-10-28 17:13:49 +08:00
kumfo d353b8519b Merge remote-tracking branch 'origin/feat/repo-unit-test' into feat/repo-unit-test 2022-10-28 17:12:32 +08:00
kumfo ddb612fac7 feat: revision repo test 2022-10-28 17:12:22 +08:00
LinkinStar 915f3d1c94 feat: add reason repo unit test 2022-10-28 17:02:24 +08:00
LinkinStar ccbf42c685 feat: add tag-rel repo unit test 2022-10-28 16:36:08 +08:00
linkinstar bf1a165554 Merge branch 'feat/change-email' into 'main'
Feat/change email

See merge request opensource/answer!127
2022-10-28 08:26:53 +00:00
aichy126 9f2799996a ChangeEmail add email status 2022-10-28 16:21:09 +08:00
aichy126 f8f35a39b1 ChangeEmail add email status 2022-10-28 16:07:14 +08:00
linkinstar a613315f4f Merge branch 'ai_user_avatar' into 'main'
update userinfo  show user set avatar

See merge request opensource/answer!125
2022-10-28 07:53:27 +00:00
aichy126 8fb4474052 update swagger 2022-10-28 15:46:05 +08:00
aichy126 5ecac4dda3 update userinfo show user set avatar 2022-10-28 15:43:37 +08:00
linkinstar 5e89f4031b Merge branch 'ai_user_avatar' into 'main'
user avatar save

See merge request opensource/answer!123
2022-10-28 07:37:07 +00:00
aichy126 9b6a35d88b update set user avatar 2022-10-28 15:21:23 +08:00
aichy126 d41fd7a467 add Captcha 2022-10-28 15:07:19 +08:00
aichy126 90deaf027b user avatar save 2022-10-28 14:53:44 +08:00
LinkinStar b162fcbee0 feat: user can change email when email hasn't been verified. 2022-10-28 14:42:27 +08:00
aichy126 7f66bb3262 fix user api ErrorResponse 2022-10-28 14:14:20 +08:00
aichy126 1563c6b583 update avatar img size 2022-10-28 11:15:46 +08:00
linkinstar 273325db31 Merge branch 'ai_fix_something' into 'main'
add avatar Thumbnail image

See merge request opensource/answer!117
2022-10-28 02:49:24 +00:00
aichy126 7496897855 fix img upload 2022-10-28 10:43:53 +08:00
aichy126 8b399dbe66 update img upload 2022-10-28 10:29:26 +08:00
aichy126 bab71a28eb fix AvatarThumbFile 2022-10-28 09:52:10 +08:00
aichy126 a4c7517280 add avatar Thumbnail image
add avatar Thumbnail image
2022-10-27 22:01:53 +08:00
LinkinStar 473cdc374b fix: current sqlite3 compilation problem, temporarily removed. wait to merge with the set CGO_CFLAGS branch. 2022-10-27 21:26:27 +08:00
LinkinStar dcf14df50a feat: add tag repo unit test 2022-10-27 19:21:49 +08:00
aichy126 3f48de2fe9 add avatar middleware 2022-10-27 18:09:27 +08:00
LinkinStar 792ef23218 style: repo change directories 2022-10-27 15:40:11 +08:00
LinkinStar 3c8bdcde29 feat: add config repo unit test 2022-10-27 12:00:03 +08:00