Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit7830d71

Browse files
committed
wip
1 parent511f9a2 commit7830d71

File tree

5 files changed

+27
-6
lines changed

5 files changed

+27
-6
lines changed

‎config/mock.exs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ config :mastani_server, MastaniServer.Repo,
2222

2323
config:mastani_server,:github_oauth,
2424
client_id:"3b4281c5e54ffd801f85",
25-
client_secret:"51f04dd8239b27f00a39a647ef3704de4c5ddc26"
25+
client_secret:"68462fdbab195251bb71662eb2bc9dd2cb083305"

‎lib/mastani_server/accounts/user.ex‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,27 @@ defmodule MastaniServer.Accounts.User do
1010
field(:bio,:string)
1111
field(:from_github,:boolean)
1212
has_one(:github_profile,GithubUser)
13+
# [use Middleware] Analysis.Post...
14+
# [use Middleware] Logger.userActivity
15+
# TODO ? 在 logger/history/timeMachine 中间件中调用 Analysis
16+
# [use Middleware] Analysis.UserHeatmap
17+
# Logger context
18+
# |___ User
19+
# |___ Post-timeline
20+
# |___ Jobs
21+
# |___ Tuts
22+
#
23+
# Statistics
24+
# |___ UserHeatMap
25+
# |___ Post
26+
# |___ Jobs
27+
# |___ Tuts
28+
#
29+
# post schema
30+
# |___ ...
31+
# |___ ...
32+
# |___ timeline / timemachine --> only record CURD, Tag, ..
33+
1334

1435
timestamps(type::utc_datetime)
1536
end

‎lib/mastani_server_web/schema/account/account_queries.ex‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule MastaniServerWeb.Schema.Account.Queries do
22
useAbsinthe.Schema.Notation
33
useAbsinthe.Ecto,repo:MastaniServerWeb.Repo
44
# import Absinthe.Resolution.Helpers
5-
aliasMastaniServerWeb.Resolvers
5+
aliasMastaniServerWeb.{Resolvers,Middleware}
66

77
object:account_queriesdo
88
# @desc "hehehef: Get all links"
@@ -15,9 +15,10 @@ defmodule MastaniServerWeb.Schema.Account.Queries do
1515
# resolve(&Resolvers.Accounts.all_users2/3)
1616
# end
1717

18-
@desc"getall users"
18+
@desc"getuser by id"
1919
field:user,:userdo
2020
arg(:id,non_null(:id))
21+
arg(:test,:date)
2122

2223
resolve(&Resolvers.Accounts.user/3)
2324
end

‎lib/mastani_server_web/schema/account/account_types.ex‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ defmodule MastaniServerWeb.Schema.Account.Types do
3636
field(:id,:id)
3737
field(:nickname,:string)
3838
field(:bio,:string)
39-
field(:company,:string)
39+
field(:avatar,:string)
4040
field(:inserted_at,:datetime)
4141
field(:updated_at,:datetime)
4242
field(:from_github,:boolean)

‎lib/mastani_server_web/schema/cms/cms_mutations.ex‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ defmodule MastaniServerWeb.Schema.CMS.Mutations do
22
useAbsinthe.Schema.Notation
33
useAbsinthe.Ecto,repo:MastaniServer.Repo
44

5-
aliasMastaniServerWeb.Resolvers
6-
aliasMastaniServerWeb.Middleware
5+
aliasMastaniServerWeb.{Resolvers,Middleware}
76

87
object:cms_mutationsdo
98
@desc"create a user"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp