CN112131017B - Interface design method for calendar service - Google Patents

Interface design method for calendar service Download PDF

Info

Publication number
CN112131017B
CN112131017B CN202010976528.8A CN202010976528A CN112131017B CN 112131017 B CN112131017 B CN 112131017B CN 202010976528 A CN202010976528 A CN 202010976528A CN 112131017 B CN112131017 B CN 112131017B
Authority
CN
China
Prior art keywords
calendar
interface
message
protocol
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010976528.8A
Other languages
Chinese (zh)
Other versions
CN112131017A (en
Inventor
黄政
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zhidemai Technology Co ltd
Original Assignee
Beijing Zhidemai Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zhidemai Technology Co ltd filed Critical Beijing Zhidemai Technology Co ltd
Priority to CN202010976528.8A priority Critical patent/CN112131017B/en
Publication of CN112131017A publication Critical patent/CN112131017A/en
Application granted granted Critical
Publication of CN112131017B publication Critical patent/CN112131017B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/109Time management, e.g. calendars, reminders, meetings or time accounting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Tourism & Hospitality (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses an interface design method of calendar service, comprising the following steps: analyzing a message for a calendar function in an abstract rfc5545 protocol; converting the message of the calendar function abstracted by the S1, and replacing the message by a json format; the Token authentication mode based on JWT is used for replacing the existing http+basic interface authentication mode; exposing a new restful interface style; each type of client uses the calendar service interface according to the new interface style; the invention uses protocol simplification as a core, simplifies the complex rfc5545 message protocol into json format to express, and greatly improves the access convenience of calendar service; the http stateless distributed technology is used, so that the stability and reliability of the whole system are greatly ensured, and meanwhile, the http stateless distributed system can be easily handled in the aspects of horizontal capacity expansion and capacity reduction.

Description

Interface design method for calendar service
Technical Field
The invention relates to the technical field of computer networks, in particular to an interface design method of calendar service.
Background
With the development of internet technology, online office work and mobile office work are also becoming popular. As an indispensable module of an office OA system, the calendar provides very convenient functions, such as various event reminding, alarm clock, travel setting and the like. There is an increasing demand for calendar services by various systems outside and inside the enterprise. The design of the calendar service interface is particularly important for more efficient, more convenient and safer access to the calendar service.
Existing calendar service design-like technologies also provide interfaces in compliance with the rfc5545 protocol specification, windows, mac, iOS, and android, and various calendar clients of mail need to interface with the calendar service in compliance with the aforementioned protocols.
The method for presenting the calendar with the publication number of CN104408607B comprises the following steps: acquiring a user name; updating a database according to the user name, establishing a longitudinal month time axis, a week time axis and a year time axis, and displaying the week time axis of the current week in a display window; switching a month time axis, a week time axis and a year time axis by rotating the time axis; the system event interface generated by pushing the user event interface and the Internet remote server is arranged. The design of a longitudinal time axis is adopted, and month, week and day time are adopted in a fulcrum way, so that compared with the calendar in the current table form, the calendar has good user embodiment; user events and system events generated by pushing by an Internet remote server are set in the calendar.
The creation of calendars using the rfc5545 protocol specification described in the above manner is not very developer friendly, updating and deleting calendars, and the obsolete messaging protocol presents a significant impediment to systems requiring calendar services in the current state of the art. Meanwhile, the method is a comparatively simple http+basic mode in the aspect of security authentication. Hidden danger is brought to the stability of the calendar service system.
Disclosure of Invention
The embodiment of the invention provides an interface design method of calendar service. The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview and is intended to neither identify key/critical elements nor delineate the scope of such embodiments. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
According to an embodiment of the present invention, there is provided an interface design method for calendar service, including:
S1: analyzing a message for a calendar function in an abstract rfc5545 protocol;
S2: converting the message of the calendar function abstracted by the S1, and replacing the message by a json format;
s3: the Token authentication mode based on JWT is used for replacing the existing http+basic interface authentication mode;
S4: exposing a new restful interface style;
S5: the types of clients use the calendar service interface according to the new interface style.
Preferably, the analysis abstracts the rfc5545 protocol: according to the rfc5545 protocol, a four-layer data structure may be abstracted, calendar attribution, calendar attributes, and time attributes.
Preferably, the four-layer data structure can abstract the following three models, namely a calendar model, a schedule model schedule and a time model.
Preferably, the calendar attribution comprises, creating a calendar and deleting a calendar.
Preferably, the schedule includes newly adding a schedule, modifying a schedule, and deleting a schedule.
Preferably, the schedule attribute includes a schedule name, a location, a time, an invitee, notes, and url, an accessory.
Preferably, the time attributes include a start time, an end time, a repetition, a travel time, and a reminder.
Preferably, the JWT is a string, and is composed of payload, header, and signature, where payload and header are spliced together after base64, and then encrypted by HS256 algorithm to generate signature.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects:
(1) The invention uses protocol simplification as a core, and simplifies the complex rfc5545 message protocol into json format for expression. The access convenience of calendar service is greatly improved. In current mobile offices, the various calendar clients involved can be accessed quickly.
(2) The invention ensures the stability of the interface using calendar service through the adjustment of the security authentication strategy.
(3) The invention uses http stateless distributed technology, and the stability and reliability of the whole system are greatly ensured. Meanwhile, the horizontal expansion and contraction can be easily handled.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a method of interface design for a calendar service according to an exemplary embodiment;
FIG. 2 is a schematic diagram of an analysis abstraction process flow, shown in accordance with an example embodiment;
FIG. 3 is a block diagram of an interface design method for a calendar service, shown in accordance with an exemplary embodiment;
FIG. 4 is a diagram illustrating a jwt character string component structure, according to one example embodiment;
Detailed Description
The following description and the drawings sufficiently illustrate specific embodiments of the invention to enable those skilled in the art to practice them. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in, or substituted for, those of others. The scope of embodiments of the invention encompasses the full ambit of the claims, as well as all available equivalents of the claims. Embodiments may be referred to herein, individually or collectively, by the term "invention" merely for convenience and without intending to voluntarily limit the scope of this application to any single invention or inventive concept if more than one is in fact disclosed. Relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed. Various embodiments are described herein in a progressive manner, each embodiment focusing on differences from other embodiments, and identical and similar parts between the various embodiments are sufficient to be seen with each other. The structures, products and the like disclosed in the embodiments correspond to the parts disclosed in the embodiments, so that the description is relatively simple, and the relevant parts refer to the description of the method parts.
It should be noted that: the relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless it is specifically stated otherwise.
It should be noted that although the steps of the methods of the present disclosure are illustrated in a particular order in the figures, this does not require or imply that the steps must be performed in that particular order or that all of the illustrated steps must be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
The invention is further described below with reference to the accompanying drawings and examples:
a method of interface design for a calendar service, as shown in fig. 1 and 3, includes,
S1: analyzing a message for a calendar function in an abstract rfc5545 protocol;
S2: converting the message of the calendar function abstracted by the S1, and replacing the message by a json format;
s3: the Token authentication mode based on JWT is used for replacing the existing http+basic interface authentication mode;
S4: exposing a new restful interface style;
S5: the types of clients use the calendar service interface according to the new interface style.
According to the above scheme, further, as shown in fig. 2, the analysis abstract rfc5545 protocol: according to the rfc5545 protocol, a four-layer data structure may be abstracted, calendar attribution, calendar attributes, and time attributes.
According to the scheme, the four-layer data structure can abstract the following three models, namely a calendar model, a schedule model schedule and a time model, perform mutual conversion from a complex protocol message to a simple protocol, express the three data models by json data format and then convert the data models into rfc5545 protocol for storage.
According to the scheme, further, the calendar attribution comprises creating a calendar and deleting the calendar; the schedules comprise newly-added schedules, modified schedules and deleted schedules; the schedule attribute comprises a schedule name, a position, time, invitees, notes and url and accessories; the time attributes include, start time, end time, repetition, travel time, and reminder.
According to the above scheme, further, in the http+basic mode, the user name and the password are stored in the message header after passing through the base64, so that hidden danger is brought to sensitive information leakage, as shown in fig. 4, the JWT is a character string and consists of payload, header and signature, the payload and the header are spliced together after passing through the base64, and then the signature is generated by the HS256 algorithm encryption, so that the interface is sufficiently safe and stable.
It is to be understood that the invention is not limited to the arrangements and instrumentality shown in the drawings and described above, and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (4)

1. A method for designing an interface of a calendar service, comprising,
S1: the analysis abstract rfc5545 protocol message for calendar functions includes: according to the rfc5545 protocol, a four-layer data structure, calendar attribution, schedule attribute and time attribute are abstracted, wherein the four-layer data structure abstracts the following three models, namely a calendar model, a schedule model schedule and a time model;
The calendar attribution comprises, creating a calendar and deleting the calendar;
The schedules comprise newly-added schedules, modified schedules and deleted schedules;
s2: converting the calendar function abstracted in the step S1 into a message, replacing the message with a json format, and converting the message into an rfc5545 protocol for storage;
s3: the Token authentication mode based on JWT is used for replacing the existing http+basic interface authentication mode;
S4: exposing a new restful interface style;
S5: the types of clients use the calendar service interface according to the new interface style.
2. The interface design method of calendar service according to claim 1, wherein the calendar attribute includes calendar name, location, time, invitees, notes and url, attachment.
3. The interface design method of calendar service according to claim 1, wherein the time attributes include a start time, an end time, a repetition, a travel time, and a reminder.
4. The interface design method of calendar service according to claim 1, wherein the JWT is a string composed of payload, header, and signature, and the payload and header are spliced together after base64 and then encrypted by HS256 algorithm to generate the signature.
CN202010976528.8A 2020-09-15 2020-09-15 Interface design method for calendar service Active CN112131017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010976528.8A CN112131017B (en) 2020-09-15 2020-09-15 Interface design method for calendar service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010976528.8A CN112131017B (en) 2020-09-15 2020-09-15 Interface design method for calendar service

Publications (2)

Publication Number Publication Date
CN112131017A CN112131017A (en) 2020-12-25
CN112131017B true CN112131017B (en) 2024-06-14

Family

ID=73846380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010976528.8A Active CN112131017B (en) 2020-09-15 2020-09-15 Interface design method for calendar service

Country Status (1)

Country Link
CN (1) CN112131017B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954453A (en) * 2015-06-02 2015-09-30 浙江工业大学 Data mining REST service platform based on cloud computing
CN109347888A (en) * 2018-12-21 2019-02-15 北京博明信德科技有限公司 Method for authenticating, gateway and authentication device based on RESTful
CN111064722A (en) * 2019-12-12 2020-04-24 山西云时代技术有限公司 Data sharing method for realizing protocol conversion of set in API mode

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227412B (en) * 2008-02-05 2010-09-29 华为技术有限公司 Apparatus and method for message conversion
CN106657232A (en) * 2016-09-29 2017-05-10 山东浪潮商用系统有限公司 Distributed server configuration and service method thereof
JP2018067090A (en) * 2016-10-18 2018-04-26 日本電信電話株式会社 Creation system, creation method and creation program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954453A (en) * 2015-06-02 2015-09-30 浙江工业大学 Data mining REST service platform based on cloud computing
CN109347888A (en) * 2018-12-21 2019-02-15 北京博明信德科技有限公司 Method for authenticating, gateway and authentication device based on RESTful
CN111064722A (en) * 2019-12-12 2020-04-24 山西云时代技术有限公司 Data sharing method for realizing protocol conversion of set in API mode

Also Published As

Publication number Publication date
CN112131017A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
US11790417B1 (en) Multiple data store authentication
Mendling et al. From inter-organizational workflows to process execution: Generating BPEL from WS-CDL
US7130885B2 (en) Methods and apparatus providing electronic messages that are linked and aggregated
JP4688813B2 (en) Synchronization and merge engine
US20230259247A1 (en) Data entry for an application
CA2819359C (en) Using text messages to interact with spreadsheets
US20100004921A1 (en) Auto-generated to-do list
CN101938430B (en) Processing method and processing system of electronic mail
WO2005015432A1 (en) Collaborative email
RU2662405C2 (en) Certification documents automatic generation
US20190363986A1 (en) Reconstructing message flows based on hash values
WO2011051548A1 (en) Method and apparatus for generating a polymorphic note
US8843587B2 (en) Retrieving availability information from published calendars
Fidler et al. Metadata, infrastructure, and computer‐mediated communication in historical perspective
CN112131017B (en) Interface design method for calendar service
US20120011164A1 (en) Life cycle based data coordination
Yuan et al. Formalization and Verification of REST on HTTP Using CSP
JP2020046959A (en) Information processing system, information processing device, control method, and control program
US20120216105A1 (en) System and method for creating non-functional requirements for implemented technology
US20120054071A1 (en) Optimizing purchase order processing for learning management system (lms) course
Barnes et al. CCMP: a novel standard protocol for conference management in the XCON framework
CN110191048A (en) A kind of customer service information management method and system
Sun Web services for human interaction
Daniëls API integration development: case Lyyti RESTful API
WO2022192627A1 (en) Data processing systems and methods for synching privacy-related user consent across multiple computing devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant