controller

package
v0.0.0-...-f62e3b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RO = libs.ResultObject{}.New()

RO 資料回傳物件

View Source
var TimeFormat = "2006/01/02 15:04:05"

TimeFormat 時間格式

Functions

func PrintRO

func PrintRO(w http.ResponseWriter, dtoRO *dto.ResultObject, message string)

PrintRO 輸出RO物件到網頁

Types

type Admin

type Admin struct{}

Admin 管理員頁面資料結構

func (*Admin) GetItem

func (a *Admin) GetItem(w http.ResponseWriter, r *http.Request)

GetItem 取得請購單資訊

func (*Admin) GetList

func (a *Admin) GetList(w http.ResponseWriter, r *http.Request)

GetList 取得請購單列表

func (Admin) New

func (a Admin) New() *Admin

New 建構式

type Company

type Company struct{}

Company 廠商資料結構

func (*Company) GetCompany

func (c *Company) GetCompany(w http.ResponseWriter, r *http.Request)

GetCompany 取得廠商列表

func (Company) New

func (c Company) New() *Company

New 建構式

type CreditType

type CreditType struct{}

CreditType 入帳類別資料結構

func (*CreditType) GetCreditType

func (ct *CreditType) GetCreditType(w http.ResponseWriter, r *http.Request)

GetCreditType 取得入帳類別

func (CreditType) New

func (ct CreditType) New() *CreditType

New 建構式

type Currency

type Currency struct{}

Currency 貨幣檔案資料結構

func (*Currency) GetCurrency

func (c *Currency) GetCurrency(w http.ResponseWriter, r *http.Request)

GetCurrency 取得貨幣資料

func (Currency) New

func (c Currency) New() *Currency

New 建構式

type Download

type Download struct{}

Download 下載檔案資料結構

func (*Download) GetFile

func (d *Download) GetFile(w http.ResponseWriter, r *http.Request)

GetFile 下載檔案

func (Download) New

func (d Download) New() *Download

New 建構式

type Organization

type Organization struct{}

Organization 單位資料結構

func (*Organization) GetOrganization

func (o *Organization) GetOrganization(w http.ResponseWriter, r *http.Request)

GetOrganization 取得部門項目

func (Organization) New

func (o Organization) New() *Organization

New 建構式

type PR

type PR struct{}

PR 請購單資料結構

func (*PR) Add

func (pr *PR) Add(w http.ResponseWriter, r *http.Request)

Add 新增請購單

func (*PR) GetItem

func (pr *PR) GetItem(w http.ResponseWriter, r *http.Request)

GetItem 取得請購單資訊

func (*PR) GetList

func (pr *PR) GetList(w http.ResponseWriter, r *http.Request)

GetList 取得請購單列表

func (PR) New

func (pr PR) New() *PR

New 建構式

func (*PR) SetCancel

func (pr *PR) SetCancel(w http.ResponseWriter, r *http.Request)

SetCancel 作廢請購單

type PayMethod

type PayMethod struct{}

PayMethod 支付方式資料結構

func (*PayMethod) GetPayMethod

func (pm *PayMethod) GetPayMethod(w http.ResponseWriter, r *http.Request)

GetPayMethod 取得支付方式

func (PayMethod) New

func (pm PayMethod) New() *PayMethod

New 建構式

type PrItem

type PrItem struct{}

PrItem 應收項目資料結構

func (*PrItem) GetPrItem

func (pi *PrItem) GetPrItem(w http.ResponseWriter, r *http.Request)

GetPrItem 取得應付項目

func (PrItem) New

func (pi PrItem) New() *PrItem

New 建構式

type Users

type Users struct{}

Users 使用者相關資料結構

func (*Users) CheckLogin

func (u *Users) CheckLogin(w http.ResponseWriter, r *http.Request)

CheckLogin 檢查是否處於登入狀態

func (*Users) GetUser

func (u *Users) GetUser(w http.ResponseWriter, r *http.Request)

GetUser 取得使用者

func (*Users) Login

func (u *Users) Login(w http.ResponseWriter, r *http.Request)

Login 登入

func (*Users) Logout

func (u *Users) Logout(w http.ResponseWriter, r *http.Request)

Logout 登出

func (Users) New

func (u Users) New() *Users

New 建構式

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL