Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
罗彬
messaging
Commits
b11f4abe
Commit
b11f4abe
authored
5 years ago
by
luob
Browse files
Options
Download
Email Patches
Plain Diff
公众号简介
parent
5602eaa2
release
ios6native
pt_chat
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/chat/client/app/net/rpc.ts
+2
-1
src/chat/client/app/net/rpc.ts
src/chat/server/data/db/community.rs
+1
-0
src/chat/server/data/db/community.rs
src/chat/server/data/rpc/community.r.ts
+1
-0
src/chat/server/data/rpc/community.r.ts
src/chat/server/data/rpc/community.rs
+1
-0
src/chat/server/data/rpc/community.rs
with
5 additions
and
1 deletion
+5
-1
src/chat/client/app/net/rpc.ts
+
2
-
1
View file @
b11f4abe
...
...
@@ -448,10 +448,11 @@ export const friendLinks = (uuid: string) => {
/**
* 创建公众号
*/
export
const
addCommunityNum
=
(
name
:
string
,
comm_type
:
number
)
=>
{
export
const
addCommunityNum
=
(
name
:
string
,
comm_type
:
number
,
desc
:
string
)
=>
{
const
arg
=
new
CreateCommunity
();
arg
.
comm_type
=
comm_type
;
arg
.
name
=
name
;
arg
.
desc
=
desc
;
clientRpcFunc
(
createCommunityNum
,
arg
,(
r
:
string
)
=>
{
if
(
r
)
{
console
.
log
(
r
);
...
...
This diff is collapsed.
Click to expand it.
src/chat/server/data/db/community.rs
+
1
-
0
View file @
b11f4abe
...
...
@@ -5,6 +5,7 @@
struct
CommunityBase
{
num
:
String
,
//社区编号
name
:
String
,
//社区名
desc
:
String
,
//简介
comm_type
:
u8
,
//社区类型-公众号、个人、好嗨号
property
:
String
,
//属性 公共、登录即可访问、私有
owner
:
u32
,
//所有者(创建者)
...
...
This diff is collapsed.
Click to expand it.
src/chat/server/data/rpc/community.r.ts
+
1
-
0
View file @
b11f4abe
...
...
@@ -19,6 +19,7 @@ export const createCommunityNum = (arg:CreateCommunity):string => {
const
communityBase
=
new
CommunityBase
();
communityBase
.
num
=
num
;
communityBase
.
name
=
arg
.
name
;
communityBase
.
desc
=
arg
.
desc
;
communityBase
.
owner
=
uid
;
communityBase
.
property
=
''
;
communityBase
.
createtime
=
Date
.
now
();
...
...
This diff is collapsed.
Click to expand it.
src/chat/server/data/rpc/community.rs
+
1
-
0
View file @
b11f4abe
...
...
@@ -5,6 +5,7 @@ use community.s::{CommunityBase, Post, Comment, PostKey};
struct
CreateCommunity
{
name
:
String
,
//社区名
comm_type
:
u8
,
//社区类型-公众号、个人、好嗨号
desc
:
String
,
//简介
}
//发帖
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help