Commit b11f4abe authored by luob's avatar luob
Browse files

公众号简介

No related merge requests found
Showing with 5 additions and 1 deletion
+5 -1
......@@ -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);
......
......@@ -5,6 +5,7 @@
struct CommunityBase {
num: String, //社区编号
name: String, //社区名
desc: String, //简介
comm_type: u8, //社区类型-公众号、个人、好嗨号
property: String, //属性 公共、登录即可访问、私有
owner: u32, //所有者(创建者)
......
......@@ -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();
......
......@@ -5,6 +5,7 @@ use community.s::{CommunityBase, Post, Comment, PostKey};
struct CreateCommunity {
name: String, //社区名
comm_type: u8, //社区类型-公众号、个人、好嗨号
desc: String, //简介
}
//发帖
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment