[add] 新增Line登入
This commit is contained in:
parent
0d799db21c
commit
c89cac38f8
@ -1,5 +1,7 @@
|
|||||||
|
import { ILiffData } from "../define/interface";
|
||||||
|
|
||||||
export interface ReqLogin {
|
export interface ReqLogin {
|
||||||
name: string
|
token: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ResLogin = number
|
export type ResLogin = ILiffData
|
7
define/interface.ts
Normal file
7
define/interface.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
// Liff資料
|
||||||
|
export interface ILiffData {
|
||||||
|
userId: string;
|
||||||
|
displayName: string;
|
||||||
|
statusMessage: string;
|
||||||
|
pictureUrl: string;
|
||||||
|
}
|
@ -1 +1,3 @@
|
|||||||
export type MsgGoToGame = number
|
import { ILiffData } from "../define/interface";
|
||||||
|
|
||||||
|
export type MsgGoToGame = [number, [ILiffData, ILiffData]]
|
@ -51,7 +51,7 @@ export interface ServiceType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const serviceProto: ServiceProto<ServiceType> = {
|
export const serviceProto: ServiceProto<ServiceType> = {
|
||||||
"version": 3,
|
"version": 6,
|
||||||
"services": [
|
"services": [
|
||||||
{
|
{
|
||||||
"id": 0,
|
"id": 0,
|
||||||
@ -114,8 +114,8 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
|||||||
"type": "Interface",
|
"type": "Interface",
|
||||||
"properties": [
|
"properties": [
|
||||||
{
|
{
|
||||||
"id": 0,
|
"id": 1,
|
||||||
"name": "name",
|
"name": "token",
|
||||||
"type": {
|
"type": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
@ -123,7 +123,41 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"account/PtlLogin/ResLogin": {
|
"account/PtlLogin/ResLogin": {
|
||||||
"type": "Number"
|
"type": "Reference",
|
||||||
|
"target": "define/interface/ILiffData"
|
||||||
|
},
|
||||||
|
"define/interface/ILiffData": {
|
||||||
|
"type": "Interface",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"id": 0,
|
||||||
|
"name": "userId",
|
||||||
|
"type": {
|
||||||
|
"type": "String"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"name": "displayName",
|
||||||
|
"type": {
|
||||||
|
"type": "String"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 2,
|
||||||
|
"name": "statusMessage",
|
||||||
|
"type": {
|
||||||
|
"type": "String"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 3,
|
||||||
|
"name": "pictureUrl",
|
||||||
|
"type": {
|
||||||
|
"type": "String"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"MsgChat/MsgChat": {
|
"MsgChat/MsgChat": {
|
||||||
"type": "Interface",
|
"type": "Interface",
|
||||||
@ -154,8 +188,26 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
|||||||
"type": "Number"
|
"type": "Number"
|
||||||
},
|
},
|
||||||
"room/MsgGoToGame/MsgGoToGame": {
|
"room/MsgGoToGame/MsgGoToGame": {
|
||||||
|
"type": "Tuple",
|
||||||
|
"elementTypes": [
|
||||||
|
{
|
||||||
"type": "Number"
|
"type": "Number"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "Tuple",
|
||||||
|
"elementTypes": [
|
||||||
|
{
|
||||||
|
"type": "Reference",
|
||||||
|
"target": "define/interface/ILiffData"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "Reference",
|
||||||
|
"target": "define/interface/ILiffData"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"room/PtlChangeState/ReqChangeState": {
|
"room/PtlChangeState/ReqChangeState": {
|
||||||
"type": "Interface",
|
"type": "Interface",
|
||||||
"properties": [
|
"properties": [
|
||||||
|
Loading…
Reference in New Issue
Block a user