| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144 |
- // 注意是否使用 gql
- // apollo client 需要使用 gql
- // graphql-request 不需要使用 gql
- // import gql from "graphql-tag";
- const GET_USER = `
- query USER($id: ID!) {
- user_by_id(id: $id) {
- email
- updatedAt
- password
- telephone
- nickname
- username
- createdAt
- openid
- id
- avatar
- }
- }
- `;
- const SEARCH_USER = `
- query USER($username: String) {
- user_by_props(username: $username) {
- email
- updatedAt
- password
- telephone
- nickname
- username
- createdAt
- openid
- id
- avatar
- }
- }
- `;
- const ADD_USER = `
- mutation USER($email: String, $language: String, $updatedAt: String, $password: String, $telephone: String, $nickname: String, $username: String, $createdAt: String, $openid: String, $id: ID!, $avatar: String) {
- create_user(
- language: $language
- email: $email
- updatedAt: $updatedAt
- password: $password
- telephone: $telephone
- nickname: $nickname
- username: $username
- createdAt: $createdAt
- openid: $openid
- id: $id
- avatar: $avatar
- ) {
- language
- email
- updatedAt
- password
- telephone
- nickname
- username
- createdAt
- openid
- id
- avatar
- }
- }
- `;
- const UPDATE_USER = `
- mutation USER($email: String, $language: String, $updatedAt: String, $telephone: String, $nickname: String, $openid: String, $id: ID!, $avatar: String) {
- update_user(
- id: $id
- language: $language
- email: $email
- updatedAt: $updatedAt
- telephone: $telephone
- nickname: $nickname
- openid: $openid
- avatar: $avatar
- ) {
- language
- email
- updatedAt
- password
- telephone
- nickname
- username
- createdAt
- openid
- id
- avatar
- }
- }
- `;
- const SHOW_SCHEMA = `
- query SCHEMA($user_id: ID) {
- schema_by_props(user_id: $user_id) {
- schemaData
- schemaName
- id
- reference
- schemaState
- }
- }
- `;
- const SHOW_CASE_SCHEMA = `
- query SHOW_CASE_SCHEMA {
- caseSchema:schema_by_props(user_id: "ioobot") {
- schemaData
- schemaName
- id
- reference
- schemaState
- }
- }
- `;
- const SHOW_ALL_SCHEMA = `
- query SCHEMA($user_id: ID) {
- userSchema:schema_by_props(user_id: $user_id) {
- schemaData
- schemaName
- id
- reference
- schemaState
- }
- caseSchema:schema_by_props(user_id: "ioobot") {
- schemaData
- schemaName
- id
- reference
- schemaState
- }
- }
- `;
- const SEARCH_SCHEMA = `
- query SCHEMA($id: ID!) {
- schema_by_id(id: $id) {
- schemaName
- schemaData
- id
- reference
- schemaState
- }
- }
- `;
- const ADD_SCHEMA = `
- mutation SCHEMA($id: ID!, $user_id: ID!, $schemaName: String!, $schemaData: String!, $createdAt: String, $updatedAt: String, $schemaState: String, $reference: String) {
- create_schema(
- id: $id,
- user_id: $user_id,
- schemaName: $schemaName,
- createdAt: $createdAt,
- updatedAt: $updatedAt,
- schemaData: $schemaData,
- schemaState: $schemaState
- reference: $reference
- ) {
- schemaName,
- schemaData
- id
- reference
- schemaState
- }
- }
- `;
- const DELETE_SCHEMA = `
- mutation SCHEMA($schemaName: String, $user_id: ID) {
- delete_schema(schemaName: $schemaName, user_id: $user_id)
- }
- `;
- const UPDATE_SCHEMA = `
- mutation SCHEMA($id: ID!, $schemaData: String!, $updatedAt: String, $schemaState: String) {
- update_schema(
- id: $id,
- updatedAt: $updatedAt,
- schemaData: $schemaData,
- schemaState: $schemaState
- ) {
- schemaName,
- schemaData
- id
- schemaState
- }
- }
- `;
- const UPDATE_SCHEMA_PROJECT_NAME = `
- mutation UPDATE_SCHEMA_PROJECT_NAME($schemaID: ID!, $projectID: ID, $schemaName: String, $updatedAt: String) {
- update_schema(
- id: $schemaID,
- updatedAt: $updatedAt,
- schemaName: $schemaName,
- ) {
- schemaName,
- id
- schemaState
- }
-
- update_project(
- id: $projectID,
- updatedAt: $updatedAt,
- projectName: $schemaName,
- ){
- projectName,
- id,
- schema_id{
- id
- }
- }
- }
- `;
- const ADD_PROJECT_AND_SCHEMA = `
- mutation ADD_PROJECT_AND_SCHEMA($schemaId: ID!, $user_id: ID!, $schemaName: String!, $schemaData: String!, $schemaCreatedAt: String, $schemaUpdatedAt: String, $schemaState: String, $reference: String,
- , $projectStatus: String, $projectCreatedAt: String, $projectUpdatedAt: String, $database_id: ID, $case_id: ID, $apiGWGroup_id: ID, $projectName: String, $deploy_id: ID, $projectId: ID!, $projectType: String, $cloud_id: ID, $user_id: ID, $wxConfig_id: ID, $schema_id: ID) {
- create_schema(
- id: $schemaId,
- user_id: $user_id,
- schemaName: $schemaName,
- createdAt: $schemaCreatedAt,
- updatedAt: $schemaUpdatedAt,
- schemaData: $schemaData,
- schemaState: $schemaState
- reference: $reference
- ) {
- schemaName,
- schemaData
- id
- reference
- schemaState
- }
-
- create_project(
- createdAt: $projectCreatedAt,
- updatedAt: $projectUpdatedAt,
- database_id: $database_id,
- apiGWGroup_id: $apiGWGroup_id,
- projectName: $projectName,
- deploy_id: $deploy_id,
- id: $projectId,
- projectType: $projectType,
- cloud_id: $cloud_id,
- user_id: $user_id,
- wxConfig_id: $wxConfig_id,
- schema_id: $schema_id
- projectStatus: $projectStatus
- case_id: $case_id
- ) {
- projectStatus
- updatedAt
- createdAt
- projectName
- id
- projectType
- schema_id {
- updatedAt
- schemaState
- authWrite
- authReadObjects
- createdAt
- authRead
- schemaName
- reference
- id
- schemaData
- authReadWrite
- authWriteObjects
- }
- }
- }
- `;
- const ADD_PROJECT = `
- mutation createproject($updatedAt: String, $database_id: ID, $apiGWGroup_id: ID, $case_id: ID, $createdAt: String, $projectStatus: String, $projectName: String, $deploy_id: ID, $notification_id: ID, $id: ID!, $projectType: String, $cloud_id: ID, $user_id: ID, $wxConfig_id: ID, $schema_id: ID) {
- createproject: create_project(updatedAt: $updatedAt database_id: $database_id case_id: $case_id apiGWGroup_id: $apiGWGroup_id createdAt: $createdAt projectStatus: $projectStatus projectName: $projectName deploy_id: $deploy_id notification_id: $notification_id id: $id projectType: $projectType cloud_id: $cloud_id user_id: $user_id wxConfig_id: $wxConfig_id schema_id: $schema_id) {
- projectStatus
- updatedAt
- createdAt
- projectName
- id
- projectType
- }
- }
- `;
- const ADD_PROJECT_AND_WX = `
- mutation ADD_PROJECT_AND_WX($wxUpdatedAt: String, $mch_id: String, $appName: String, $notify_url: String, $appSecret: String, $wxCreatedAt: String, $appID: String, $token: String, $spbill_create_ip: String, $enter_url: String, $wxConfigId: ID!, $pay_api_key: String, $user_id: ID, $body: String, $welcome_words: String, $attach: String
- , $projectStatus: String, $projectCreatedAt: String, $projectUpdatedAt: String, $database_id: ID, $case_id: ID, $apiGWGroup_id: ID, $projectName: String, $deploy_id: ID, $projectId: ID!, $projectType: String, $cloud_id: ID, $user_id: ID, $wxConfig_id: ID, $schema_id: ID) {
- create_wxConfig(
- createdAt: $wxCreatedAt
- updatedAt: $wxUpdatedAt
- mch_id: $mch_id
- appName: $appName
- notify_url: $notify_url
- appSecret: $appSecret
- appID: $appID
- token: $token
- spbill_create_ip: $spbill_create_ip
- enter_url: $enter_url
- id: $wxConfigId
- pay_api_key: $pay_api_key
- user_id: $user_id
- body: $body
- welcome_words: $welcome_words
- attach: $attach
- ) {
- mch_id
- appName
- notify_url
- appSecret
- appID
- token
- spbill_create_ip
- enter_url
- id
- pay_api_key
- body
- welcome_words
- attach
- }
-
- create_project(
- createdAt: $projectCreatedAt,
- updatedAt: $projectUpdatedAt,
- database_id: $database_id,
- apiGWGroup_id: $apiGWGroup_id,
- projectName: $projectName,
- deploy_id: $deploy_id,
- id: $projectId,
- projectType: $projectType,
- cloud_id: $cloud_id,
- user_id: $user_id,
- wxConfig_id: $wxConfig_id,
- schema_id: $schema_id
- projectStatus: $projectStatus
- case_id: $case_id
- ) {
- projectStatus
- updatedAt
- createdAt
- projectName
- id
- projectType
- schema_id {
- updatedAt
- schemaState
- authWrite
- authReadObjects
- createdAt
- authRead
- schemaName
- reference
- id
- schemaData
- authReadWrite
- authWriteObjects
- }
- }
- }
- `;
- const CASE_AND_PROJECT = `
- query CASE_AND_PROJECT($user_id: ID, $projectType: String ) {
- caseProject:project_by_props(
- projectType: $projectType,
- user_id: "ioobot"
- ) {
- updatedAt
- apiGWGroup_id {
- id
- }
- createdAt
- projectName
- id
- projectType
- wxConfig_id {
- id
- appName
- }
- schema_id {
- schemaData
- schemaName
- id
- reference
- schemaState
- }
- }
-
- project:project_by_props(
- projectType: $projectType,
- user_id: $user_id
- ) {
- updatedAt
- apiGWGroup_id {
- id
- }
- createdAt
- projectName
- id
- case_id {
- id
- }
- projectType
- wxConfig_id {
- id
- appName
- }
- schema_id {
- id
- }
- }
- }
- `;
- const SHOW_PROJECT = `
- query PROJECT_BY_PROPS($projectType: String, $user_id: ID) {
- project:project_by_props(
- projectType: $projectType,
- user_id: $user_id
- ) {
- updatedAt
- apiGWGroup_id {
- id
- }
- createdAt
- projectName
- id
- case_id {
- id
- }
- projectType
- wxConfig_id {
- id
- }
- schema_id {
- id
- }
- }
- }
- `;
- const DELETE_PROJECT = `
- mutation DELETE_PROJECT($id: ID, $user_id: ID) {
- delete_project(id: $id, user_id: $user_id)
- }
- `;
- const SHOW_TABLE = `
- query TABLE($schema_id: ID!) {
- schema_by_id(id: $schema_id) {
- schemaData
- schemaName
- reference
- schemaState
- }
- }
- `;
- const ADD_CLOUD = `
- mutation CLOUD($id: ID!, $user_id: ID, $cloudName: String, $secretId: String, $secretKey: String, $updatedAt: String, $createdAt: String, $appId: String) {
- create_cloud(
- id: $id
- user_id: $user_id
- cloudName: $cloudName
- secretId: $secretId
- secretKey: $secretKey
- createdAt: $createdAt
- updatedAt: $updatedAt
- appId: $appId
- ) {
- id
- cloudName
- secretId
- secretKey
- appId
- }
- }
- `;
- const SHOW_CLOUD = `
- query CLOUD($user_id: ID!) {
- cloud_by_props(user_id: $user_id) {
- id
- cloudName
- secretId
- secretKey
- appId
- }
- }
- `;
- const UPDATE_CLOUD = `
- mutation updatecloud($id: ID, $secretId: String, $secretKey: String $updatedAt: String, $appId: String) {
- update_cloud(
- id: $id
- secretId: $secretId
- secretKey: $secretKey
- updatedAt: $updatedAt
- appId: $appId
- ) {
- id
- cloudName
- secretId
- secretKey
- appId
- }
- }
- `;
- const ADD_DEPLOY = `
- mutation DEPLOY($serviceName:String, $description: String, $updatedAt: String, $cosBucketName: String, $memorySize: Int, $fc_id: ID, $createdAt: String, $subnetId: String, $cosObjectName: String, $region: String, $vpcId: String, $cosBucketRegion: String, $id: ID!, $cloud_id: ID, $user_id: ID, $timeout: Int, $handler: String, $functionName: String) {
- create_deploy(
- id: $id
- description: $description
- cosBucketName: $cosBucketName
- memorySize: $memorySize
- fc_id: $fc_id
- subnetId: $subnetId
- cosObjectName: $cosObjectName
- region: $region
- vpcId: $vpcId
- cosBucketRegion: $cosBucketRegion
- cloud_id: $cloud_id
- user_id: $user_id
- timeout: $timeout
- handler: $handler
- functionName: $functionName
- serviceName: $serviceName
- createdAt: $createdAt
- updatedAt: $updatedAt
- ) {
- id
- }
- }
- `;
- const UPDATE_DEPLOY = `
- mutation DEPLOY($id: ID!, $description: String, $updatedAt: String, $cosBucketName: String, $subnetId: String, $cosObjectName: String, $region: String, $vpcId: String, $cosBucketRegion: String, $functionName: String) {
- update_deploy(
- id: $id
- description: $description
- cosBucketName: $cosBucketName
- subnetId: $subnetId
- cosObjectName: $cosObjectName
- region: $region
- vpcId: $vpcId
- cosBucketRegion: $cosBucketRegion
- functionName: $functionName
- updatedAt: $updatedAt
- ) {
- id
- }
- }
- `;
- const SEARCH_APIGROUP = `
- query apiGWGroupbyid($id: ID) {
- apiGWGroupbyid: apiGWGroup_by_id(id: $id) {
- environmentName
- userStatus
- defaultDomain
- updatedAt
- userDomain
- groupName
- createdAt
- frontType
- region
- serviceId
- status
- id
- }
- }
- `;
- const SHOW_APIGROUP = `
- query apiGWGroupbyprops($user_id: ID, $groupName: String, $status: String) {
- apiGWGroupbyprops: apiGWGroup_by_props(user_id: $user_id, groupName: $groupName, status: $status) {
- environmentName
- userStatus
- defaultDomain
- updatedAt
- userDomain
- groupName
- createdAt
- frontType
- region
- serviceId
- status
- id
- cloud_id {
- cloudName
- }
- }
- }
- `;
- const ADD_APIGROUP = `
- mutation GROUP($serviceId: String, $environmentName: String, $userStatus: String, $defaultDomain: String, $updatedAt: String, $userDomain: String, $groupName: String, $createdAt: String, $frontType: String, $region: String, $status: String, $id: ID!, $cloud_id: ID, $user_id: ID) {
- create_apiGWGroup(
- id: $id
- userStatus: $userStatus
- defaultDomain: $defaultDomain
- updatedAt: $updatedAt
- userDomain: $userDomain
- groupName: $groupName
- createdAt: $createdAt
- frontType: $frontType
- region: $region
- status: $status
- cloud_id: $cloud_id
- user_id: $user_id
- environmentName: $environmentName
- serviceId: $serviceId
- ) {
- id
- userStatus
- }
- }
- `;
- const UPDATE_APIGROUP = `
- mutation GROUP($id:ID!, $environmentName: String, $userStatus: String, $updatedAt: String, $userDomain: String, $groupName: String, $frontType: String, $region: String, $status: String) {
- update_apiGWGroup(
- id: $id
- userStatus: $userStatus
- status: $status
- userDomain: $userDomain
- groupName: $groupName
- frontType: $frontType
- region: $region
- environmentName: $environmentName
- updatedAt: $updatedAt
- ) {
- id
- userStatus
- }
- }
- `;
- const DELETE_APIGROUP = `
- mutation deleteapiGWGroup($id: ID, $user_id: ID) {
- delete_apiGWGroup(id: $id user_id: $user_id)
- }
- `;
- const SHOW_APIGWPATH = `
- query PATH($apiGWGroup_id: ID!) {
- apiGWPath_by_props(apiGWGroup_id: $apiGWGroup_id) {
- id
- apiGWName
- apiGWDesc
- requestMethod
- apiGWPath
- }
- }
- `;
- const ADD_APIGWPATH = `
- mutation PATH($apiId: String, $apiGWName: String, $updatedAt: String, $apiGWGroup_id: ID, $createdAt: String, $deploy_id: ID, $serviceType: String, $id: ID!, $apiGWPath: String, $user_id: ID, $timeout: Int, $apiGWDesc: String, $requestMethod: String) {
- create_apiGWPath(
- apiGWName: $apiGWName
- updatedAt: $updatedAt
- apiGWGroup_id: $apiGWGroup_id
- createdAt: $createdAt
- deploy_id: $deploy_id
- serviceType: $serviceType
- id: $id
- apiGWPath: $apiGWPath
- user_id: $user_id
- timeout: $timeout
- apiGWDesc: $apiGWDesc
- requestMethod: $requestMethod
- apiId: $apiId
- ) {
- id
- }
- }
- `;
- const UPDATE_APIGWPATH = `
- mutation PATH($apiGWName: String, $updatedAt: String, $apiGWDesc: String, $requestMethod: String) {
- update_apiGWPath(
- apiGWName: $apiGWName
- apiGWDesc: $apiGWDesc
- requestMethod: $requestMethod
- updatedAt: $updatedAt
- ) {
- id
- }
- }
- `;
- const DELETE_APIGWPATH = `
- mutation deleteapiGWPath($id: ID, $user_id: ID) {
- delete_apiGWPath(id: $id user_id: $user_id)
- }
- `;
- const SHOW_ALL_WXCONFIG = `
- query WXCONFIG($user_id: ID) {
- userWxConfig:wxConfig_by_props(user_id: $user_id) {
- appID
- appName
- appSecret
- attach
- body
- enter_url
- id
- mch_id
- notify_url
- pay_api_key
- spbill_create_ip
- token
- welcome_words
- }
- caseWxConfig:wxConfig_by_props(user_id: "ioobot") {
- appID
- appName
- appSecret
- attach
- body
- enter_url
- id
- mch_id
- notify_url
- pay_api_key
- spbill_create_ip
- token
- welcome_words
- }
- }
- `;
- const SHOW_WXCONFIG = `
- query WXCONFIG($user_id: ID) {
- wxConfig_by_props(user_id: $user_id) {
- appID
- appName
- appSecret
- attach
- body
- enter_url
- id
- mch_id
- notify_url
- pay_api_key
- spbill_create_ip
- token
- welcome_words
- }
- }
- `;
- const ADD_WXCONFIG = `
- mutation createwxConfig($updatedAt: String, $mch_id: String, $appName: String, $notify_url: String, $appSecret: String, $createdAt: String, $appID: String, $token: String, $spbill_create_ip: String, $enter_url: String, $id: ID!, $pay_api_key: String, $user_id: ID, $body: String, $welcome_words: String, $attach: String) {
- create_wxConfig(
- updatedAt: $updatedAt
- mch_id: $mch_id
- appName: $appName
- notify_url: $notify_url
- appSecret: $appSecret
- createdAt: $createdAt
- appID: $appID
- token: $token
- spbill_create_ip: $spbill_create_ip
- enter_url: $enter_url
- id: $id
- pay_api_key: $pay_api_key
- user_id: $user_id
- body: $body
- welcome_words: $welcome_words
- attach: $attach
- ) {
- mch_id
- appName
- notify_url
- appSecret
- appID
- token
- spbill_create_ip
- enter_url
- id
- pay_api_key
- body
- welcome_words
- attach
- }
- }
- `;
- const SHOW_WXCONTENT = `
- query wxConfigbyid($id: ID) {
- wxConfig_by_id(id: $id) {
- mch_id
- appName
- notify_url
- appSecret
- appID
- token
- spbill_create_ip
- enter_url
- id
- pay_api_key
- body
- welcome_words
- attach
- }
- }
- `;
- const UPDATE_WXCONFIG = `
- mutation updatewxConfig($id: ID, $updatedAt: String, $mch_id: String, $appName: String, $notify_url: String, $appSecret: String, $appID: String, $token: String, $spbill_create_ip: String, $enter_url: String, $pay_api_key: String, $body: String, $welcome_words: String, $attach: String) {
- update_wxConfig(
- id: $id
- updatedAt: $updatedAt
- mch_id: $mch_id
- appName: $appName
- notify_url: $notify_url
- appSecret: $appSecret
- appID: $appID
- token: $token
- spbill_create_ip: $spbill_create_ip
- enter_url: $enter_url
- pay_api_key: $pay_api_key
- body: $body
- welcome_words: $welcome_words
- attach: $attach
- ) {
- id
- mch_id
- appName
- notify_url
- appSecret
- appID
- token
- spbill_create_ip
- enter_url
- pay_api_key
- body
- welcome_words
- attach
- }
- }
- `;
- const DELETE_WXCONFIG = `
- mutation deletewxConfig($id: ID) {
- delete_wxConfig(id: $id)
- }
- `;
- const GET_PROJECT = `
- query projectbyid($id: ID) {
- project_by_id(id: $id) {
- updatedAt
- projectStatus
- database_id {
- id
- }
- apiGWGroup_id {
- id
- groupName
- region
- frontType
- defaultDomain
- userStatus
- userDomain
- serviceId
- environmentName
- }
- projectName
- deploy_id {
- description
- updatedAt
- cosBucketName
- memorySize
- createdAt
- subnetId
- cosObjectName
- region
- vpcId
- cosBucketRegion
- id
- serviceName
- timeout
- handler
- functionName
- }
- case_id {
- id
- }
- id
- projectType
- cloud_id {
- id
- cloudName
- secretId
- secretKey
- appId
- createdAt
- updatedAt
- }
- user_id {
- id
- }
- wxConfig_id {
- id
- updatedAt
- mch_id
- appName
- notify_url
- appSecret
- createdAt
- appID
- token
- spbill_create_ip
- enter_url
- id
- pay_api_key
- body
- welcome_words
- attach
- }
- schema_id {
- updatedAt
- schemaState
- createdAt
- schemaName
- reference
- id
- schemaData
- }
- notification_id {
- id
- type
- webhook
- name
- }
- }
- }
- `;
- const UPDATE_PROJECT_GROUP = `
- mutation updateproject($id: ID, $updatedAt: String, $apiGWGroup_id: ID, $projectStatus: String) {
- update_project(id: $id updatedAt: $updatedAt apiGWGroup_id: $apiGWGroup_id projectStatus: $projectStatus) {
- projectStatus
- updatedAt
- projectName
- id
- projectType
- }
- }
- `;
- const UPDATE_PROJECT_DEPLOY = `
- mutation updateproject($id: ID, $updatedAt: String, $deploy_id: ID, $projectStatus: String) {
- update_project(id: $id updatedAt: $updatedAt deploy_id: $deploy_id projectStatus: $projectStatus) {
- projectStatus
- updatedAt
- projectName
- id
- projectType
- }
- }
- `;
- const UPDATE_PROJECT_CLOUD = `
- mutation updateproject($id: ID, $updatedAt: String, $cloud_id: ID, $projectStatus: String) {
- update_project(id: $id updatedAt: $updatedAt cloud_id: $cloud_id projectStatus: $projectStatus) {
- projectStatus
- updatedAt
- projectName
- id
- projectType
- }
- }
- `;
- const UPDATE_PROJECT_DATABASE = `
- mutation updateproject($id: ID, $updatedAt: String, $database_id: ID, $projectStatus: String) {
- update_project(id: $id updatedAt: $updatedAt database_id: $database_id projectStatus: $projectStatus) {
- projectStatus
- updatedAt
- projectName
- id
- projectType
- }
- }
- `;
- const UPDATE_PROJECT_DEPLOY_AND_CLOUD = `
- mutation updateproject($id: ID, $updatedAt: String, $deploy_id: ID, $cloud_id: ID, $projectStatus: String) {
- update_project(id: $id updatedAt: $updatedAt deploy_id: $deploy_id cloud_id: $cloud_id projectStatus: $projectStatus) {
- projectStatus
- updatedAt
- projectName
- id
- projectType
- }
- }
- `;
- const UPDATE_PROJECT_ONLY_STATUS = `
- mutation updateproject($id: ID, $updatedAt: String, $projectStatus: String) {
- update_project(id: $id updatedAt: $updatedAt projectStatus: $projectStatus) {
- projectStatus
- updatedAt
- projectName
- id
- projectType
- }
- }
- `;
- const ADD_NOTIFICATION = `
- mutation createnotification($id: ID!, $type: String, $webhook: String, $name: String, $user_id: ID) {
- create_notification(id: $id type: $type webhook: $webhook name: $name user_id: $user_id) {
- id
- type
- webhook
- name
- user_id {
- id
- }
- }
- }
- `;
- const UPDATE_NOTIFICATION = `
- mutation updatenotification($id: ID, $type: String, $webhook: String, $name: String) {
- update_notification(id: $id type: $type webhook: $webhook name: $name) {
- id
- type
- webhook
- name
- }
- }
- `;
- const SHOW_CASE = `
- query CASE($id: ID!) {
- case_by_id(id: $id) {
- id
- schema_id {
- id
- }
- img
- detailDescription
- detailImages
- user_id {
- id
- nickname
- email
- }
- detailAttention
- codeAddress
- }
- }
- `;
- const SHOW_ALL_CASE = `
- query CASE($user_id: ID) {
- case_by_props(user_id: $user_id) {
- id
- img
- deployedNum
- title
- description
- user_id {
- id
- avatar
- }
- like
- }
- }
- `;
- export {
- ADD_USER,
- GET_USER,
- SEARCH_USER,
- UPDATE_USER,
- SEARCH_SCHEMA,
- ADD_SCHEMA,
- SHOW_CASE_SCHEMA,
- SHOW_ALL_SCHEMA,
- SHOW_SCHEMA,
- UPDATE_SCHEMA,
- UPDATE_SCHEMA_PROJECT_NAME,
- DELETE_SCHEMA,
- DELETE_PROJECT,
- SHOW_TABLE,
- ADD_PROJECT_AND_SCHEMA,
- CASE_AND_PROJECT,
- SHOW_PROJECT,
- ADD_CLOUD,
- SHOW_CLOUD,
- UPDATE_CLOUD,
- ADD_DEPLOY,
- UPDATE_DEPLOY,
- SEARCH_APIGROUP,
- SHOW_APIGROUP,
- ADD_APIGROUP,
- UPDATE_APIGROUP,
- DELETE_APIGROUP,
- SHOW_APIGWPATH,
- ADD_APIGWPATH,
- UPDATE_APIGWPATH,
- DELETE_APIGWPATH,
- ADD_PROJECT_AND_WX,
- SHOW_ALL_WXCONFIG,
- SHOW_WXCONFIG,
- ADD_WXCONFIG,
- SHOW_WXCONTENT,
- UPDATE_WXCONFIG,
- DELETE_WXCONFIG,
- GET_PROJECT,
- UPDATE_PROJECT_GROUP,
- UPDATE_PROJECT_DEPLOY,
- UPDATE_PROJECT_CLOUD,
- UPDATE_PROJECT_DATABASE,
- UPDATE_PROJECT_DEPLOY_AND_CLOUD,
- UPDATE_PROJECT_ONLY_STATUS,
- ADD_NOTIFICATION,
- UPDATE_NOTIFICATION,
- SHOW_CASE,
- SHOW_ALL_CASE,
- ADD_PROJECT
- }
|