<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 小打卡模型文檔 [TOC] ## 打卡計劃[Plan] ### 所有屬性 ``` { "id": 16, "user_id": 45, "name": "這是一個加班打卡", // 打卡名稱 "content": "\n 加入打卡有以下規則:1xxxxxxx", // 打卡簡述 "description": "\n 大家一定要堅持打卡哦", // 打卡簡介 "is_free": 1, //是否收費 "start": "0000-00-00", //開始時間 "end": "0000-00-00", // 結束時間 "is_infinite": 1, // 是否有結束時間 "price": 0, // 收費嗎? "pic": "/static/admin/img/none.png", // 首圖 "pics": [], // 圖集 "voice": null, "is_recommend": 0, // 是否被推薦 "video": null, "delete_time": null, "update_time": 1516592374, "create_time": 1516592374, "users_count": 100, // 參加的人數 "is_sign": 1 // 是否已經打卡 } ``` ### With 關聯 |字段|備注| |-|-| |owner|打卡的所有者/創建者| |comments.user | 打卡計劃中的評論| |joiner|參與打卡的人| |tags|打卡的標簽| ### Attr 附加屬性 |字段|備注| |-|-| |duration|打卡持續的時間| |joiner_passed|打卡已通過的人數| ### Function 函數 #### 創建一個打卡 ``` create({ plan_name:"planname", // 計劃名稱 | 必須 | 字符串 | 長度大于6 is_free:"1" // 是否收費 | 必須 | 1代表收費 0代表免費 ..... }); ``` 返回的是剛創建的打卡信息 ``` { "name":"planname", ...... } ``` #### 刪除一個打卡 ``` deleteOne({ id:"128" // 打卡的id | 必須 }); ``` 返回: ``` { "result":1 // 1代表操作成功 } ``` #### 給打卡點贊 ``` fav({ plan_id:"125" // 被點贊的打卡 }); ``` 返回內容如下 ``` { "id": 16, "user_id": 45, "name": "加班", "content": "\n 啊實打實大", "description": "\n 啊實打實大", "is_free": 1 } ``` ## 用戶[User] ### 所有屬性 ``` { "id": 45, "openid": "oJ97C1feQaljdjsAo_lEWqLOuI9E", // 微信openid "nickname": "Ant", //昵稱 "headimgurl": "http://wx.qlogo.cn/mmopen/ERQdplgm8JPpBmTJEJ8sxibtukoTd36PAbibvfD7PxkMtb5sDzcVwiasTIrpjHTCB9SGHmKq1f393mCO0hm1U3eK8PFh7WY1QC2/132", // 頭像地址 "create_time": 1516592287, // 創建時間 "update_time": 1523624342, "delete_time": null } ``` ### With 關聯 |字段|關聯| |-|-| |my_plan|我創建的所有打卡| |joined_plan|我參加的所有打卡| |comments|我發表的評論| |sign|我發表的簽到信息| ### Attr 附加屬性 |字段|備注| |-|-| |rank|我的排行| |earned_money|我總共賺了多少錢| ### Function 函數 #### 注冊 ``` create({ username:"planname", // 昵稱 | 必須 | 字符串 | 長度大于5 password:"******" // 密碼 | 必須 | 字符串 | 長度大于6 ..... }); ``` 返回 ``` { result:1 } ``` #### 簽到 ``` sign(); ``` 返回 ``` { result:1 // 1代表簽到成功 如果是0 則顯示下面的錯誤信息 error:"已經簽到過了" } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看