更新密码找回uniapp
This commit is contained in:
1 parent
7f9a66da0f
commit
3fdda89833
1304 files changed
+3503
-26132
No files matched your search
@@ -10,10 +10,6 @@ import (
|
||||
"server/services/dailyreport"
|
||||
)
|
||||
|
||||
// OA 工作日报(小程序端)。与后台 /backend/oa/dailyreport/* 共用
|
||||
// services/dailyreport 的权限与校验逻辑,仅在响应包装与上传入口上有差异。
|
||||
|
||||
// dailyReportCtx 解析移动端令牌并组装日报身份。
|
||||
func (c *AppOaController) dailyReportCtx() (*dailyreport.UserContext, bool) {
|
||||
claims, err := c.oaClaims()
|
||||
if err != nil {
|
||||
@@ -52,7 +48,6 @@ func (c *AppOaController) dailyReportID() uint64 {
|
||||
return id
|
||||
}
|
||||
|
||||
// DailyReportProfile GET /api/oa/dailyreport/profile
|
||||
func (c *AppOaController) DailyReportProfile() {
|
||||
u, ok := c.dailyReportCtx()
|
||||
if !ok {
|
||||
@@ -76,7 +71,6 @@ func (c *AppOaController) DailyReportProfile() {
|
||||
})
|
||||
}
|
||||
|
||||
// DailyReportMineList GET /api/oa/dailyreport/mine/list
|
||||
func (c *AppOaController) DailyReportMineList() {
|
||||
u, ok := c.dailyReportCtx()
|
||||
if !ok {
|
||||
@@ -97,8 +91,6 @@ func (c *AppOaController) DailyReportMineList() {
|
||||
c.oaOk(res)
|
||||
}
|
||||
|
||||
// DailyReportCalendar GET /api/oa/dailyreport/calendar
|
||||
// 我的日报近期热力图:months 默认 3,返回区间内逐日状态(草稿/已提交)。
|
||||
func (c *AppOaController) DailyReportCalendar() {
|
||||
u, ok := c.dailyReportCtx()
|
||||
if !ok {
|
||||
@@ -113,7 +105,6 @@ func (c *AppOaController) DailyReportCalendar() {
|
||||
c.oaOk(res)
|
||||
}
|
||||
|
||||
// DailyReportSave POST /api/oa/dailyreport/save
|
||||
func (c *AppOaController) DailyReportSave() {
|
||||
u, ok := c.dailyReportCtx()
|
||||
if !ok {
|
||||
@@ -133,7 +124,6 @@ func (c *AppOaController) DailyReportSave() {
|
||||
c.oaOk(item)
|
||||
}
|
||||
|
||||
// DailyReportDetail GET /api/oa/dailyreport/detail/:id
|
||||
func (c *AppOaController) DailyReportDetail() {
|
||||
u, ok := c.dailyReportCtx()
|
||||
if !ok {
|
||||
@@ -151,7 +141,6 @@ func (c *AppOaController) DailyReportDetail() {
|
||||
c.oaOk(detail)
|
||||
}
|
||||
|
||||
// DailyReportDelete DELETE /api/oa/dailyreport/delete/:id
|
||||
func (c *AppOaController) DailyReportDelete() {
|
||||
u, ok := c.dailyReportCtx()
|
||||
if !ok {
|
||||
@@ -168,8 +157,6 @@ func (c *AppOaController) DailyReportDelete() {
|
||||
c.oaOk(map[string]interface{}{"id": id})
|
||||
}
|
||||
|
||||
// DailyReportWithdraw POST /api/oa/dailyreport/withdraw/:id
|
||||
// 撤销提交:已提交日报退回草稿并留存本次提交的内容快照,改完需重新提交。
|
||||
func (c *AppOaController) DailyReportWithdraw() {
|
||||
u, ok := c.dailyReportCtx()
|
||||
if !ok {
|
||||
@@ -187,7 +174,6 @@ func (c *AppOaController) DailyReportWithdraw() {
|
||||
c.oaOk(item)
|
||||
}
|
||||
|
||||
// DailyReportTeamStatus GET /api/oa/dailyreport/team/status
|
||||
func (c *AppOaController) DailyReportTeamStatus() {
|
||||
u, ok := c.dailyReportCtx()
|
||||
if !ok {
|
||||
@@ -210,7 +196,6 @@ func (c *AppOaController) DailyReportTeamStatus() {
|
||||
c.oaOk(res)
|
||||
}
|
||||
|
||||
// DailyReportTeamOrgs GET /api/oa/dailyreport/team/orgs
|
||||
func (c *AppOaController) DailyReportTeamOrgs() {
|
||||
u, ok := c.dailyReportCtx()
|
||||
if !ok {
|
||||
@@ -224,7 +209,6 @@ func (c *AppOaController) DailyReportTeamOrgs() {
|
||||
c.oaOk(map[string]interface{}{"list": orgs})
|
||||
}
|
||||
|
||||
// DailyReportComment POST /api/oa/dailyreport/comment
|
||||
func (c *AppOaController) DailyReportComment() {
|
||||
u, ok := c.dailyReportCtx()
|
||||
if !ok {
|
||||
@@ -248,7 +232,6 @@ func (c *AppOaController) DailyReportComment() {
|
||||
c.oaOk(comment)
|
||||
}
|
||||
|
||||
// DailyReportCommentDelete DELETE /api/oa/dailyreport/comment/:id
|
||||
func (c *AppOaController) DailyReportCommentDelete() {
|
||||
u, ok := c.dailyReportCtx()
|
||||
if !ok {
|
||||
@@ -265,8 +248,6 @@ func (c *AppOaController) DailyReportCommentDelete() {
|
||||
c.oaOk(map[string]interface{}{"id": id})
|
||||
}
|
||||
|
||||
// DailyReportUpload POST /api/oa/dailyreport/upload(multipart,字段名 file)
|
||||
// 复用 OA 附件上传:图片 / PDF,单个文件 ≤10MB,落入租户文件管理。
|
||||
func (c *AppOaController) DailyReportUpload() {
|
||||
c.uploadTenantImage()
|
||||
}
|
||||
Reference in new issue
Block a user