service

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: 16 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

This section is empty.

Types

type Admin

type Admin struct{}

Admin 管理員頁面資料結構

func (*Admin) GetItem

func (a *Admin) GetItem(search *dto.PrSearch) (*dto.ResultObject, *dto.PrListResult, *[]dto.PrDetail)

GetItem 取得請購單資料

func (*Admin) GetList

func (a *Admin) GetList(search *dto.PrSearch) (*dto.ResultObject, *[]dto.GetList)

GetList 取得請購單列表

func (Admin) New

func (a Admin) New() *Admin

New 建構式

type Company

type Company struct{}

Company 廠商資料結構

func (*Company) GetCompany

func (c *Company) GetCompany() (*dto.ResultObject, *[]dto.Company)

GetCompany 取得廠商資料

func (Company) New

func (c Company) New() *Company

New 建構式

type CreditType

type CreditType struct{}

CreditType 入帳類別資料結構

func (*CreditType) GetCreditType

func (ct *CreditType) GetCreditType() (*dto.ResultObject, *[]dto.CreditType)

GetCreditType 取得入帳類別

func (CreditType) New

func (ct CreditType) New() *CreditType

New 建構式

type Curl

type Curl interface {
	Post(url string, params []byte, header map[string]string) []byte
}

Curl 物件介面

type Currency

type Currency struct{}

Currency 貨幣檔案資料結構

func (*Currency) GetCurrency

func (c *Currency) GetCurrency() (*dto.ResultObject, *[]dto.Currency)

GetCurrency 取得貨幣資料

func (Currency) New

func (c Currency) New() *Currency

New 建構式

type Download

type Download struct{}

Download 下載檔案資料結構

func (*Download) GetFile

func (d *Download) GetFile(token string, fileName string) *dto.ResultObject

GetFile 取得佐証檔

func (Download) New

func (d Download) New() *Download

New 建構式

type MySQL

type MySQL interface {
	GetAdater() *gorm.DB
}

MySQL 物件介面

type Organization

type Organization struct{}

Organization 單位資料結構

func (*Organization) GetOrganization

func (o *Organization) GetOrganization() (*dto.ResultObject, *[]dto.Organization)

GetOrganization 取得單位資料

func (Organization) New

func (o Organization) New() *Organization

New 建構式

type PR

type PR struct{}

PR 請購單資料結構

func (*PR) Add

func (pr *PR) Add(params *dto.PR, files *multipart.Form) *dto.ResultObject

Add 新增請購單

func (*PR) GetItem

func (pr *PR) GetItem(search *dto.PrSearch, user *dto.Users) (*dto.ResultObject, *dto.PrListResult, *[]dto.PrDetail)

GetItem 取得請購單資料

func (*PR) GetList

func (pr *PR) GetList(search *dto.PrSearch, user *dto.Users) (*dto.ResultObject, *[]dto.GetList)

GetList 取得請購單列表

func (PR) New

func (pr PR) New() *PR

New 建構式

func (*PR) SetCancel

func (pr *PR) SetCancel(u *dto.Users, id string) *dto.ResultObject

SetCancel 作廢請購單

type PayMethod

type PayMethod struct{}

PayMethod 支付方式資料結構

func (*PayMethod) GetPayMethod

func (pm *PayMethod) GetPayMethod() (*dto.ResultObject, *[]dto.PayMethod)

GetPayMethod 取得支付方式

func (PayMethod) New

func (pm PayMethod) New() *PayMethod

New 建構式

type PrItem

type PrItem struct{}

PrItem 應付項目資料結構

func (*PrItem) GetPrItem

func (pi *PrItem) GetPrItem() (*dto.ResultObject, *[]dto.PrItem)

GetPrItem 取得應付項目資料

func (PrItem) New

func (pi PrItem) New() *PrItem

New 建構式

type Redis

type Redis interface {
	Get(key string) string
	Set(key, value string) bool
}

Redis 物件介面

type Users

type Users struct{}

Users 使用者相關資料結構

func (*Users) CheckLogin

func (u *Users) CheckLogin(hash string) *dto.ResultObject

CheckLogin 檢查是否處於登入狀態

func (*Users) GetUser

func (u *Users) GetUser(hash string) (*dto.ResultObject, *dto.Users)

GetUser 取得使用者資訊

func (*Users) Login

func (u *Users) Login(login, password string) (*dto.ResultObject, string)

Login 登入

func (*Users) Logout

func (u *Users) Logout(hash string)

Logout 登出

func (Users) New

func (u Users) New() *Users

New 建構式

type Zip

type Zip interface {
	Compress(files []string, dst string) int
}

Zip 物件介面

Jump to

Keyboard shortcuts

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